Automatically find Git repositories, ask Git which directories are ignored, and add those directories to the macOS Time Machine exclusion list.
No .gitignore parsing. Git is the source of truth.
| import React from 'react'; | |
| // TYPES | |
| interface PropsCheckerProps<T> { | |
| children: (props: T) => React.ReactElement | null; | |
| childrenProps: T; | |
| compType?: ComparaisonTypes; | |
| verbose?: boolean; | |
| } |
| #!/bin/bash | |
| SCRIPT=$(basename "$0") | |
| exitWithError () { | |
| echo -e "$1" 1>&2 | |
| exit 1 | |
| } | |
| usage () { |
| #!/bin/bash | |
| SCRIPT=$(basename "$0") | |
| exitWithError () { | |
| echo -e "$1" 1>&2 | |
| exit 1 | |
| } | |
| usage () { |
| #!/bin/sh | |
| # Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh | |
| # and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
| if [ "`/usr/bin/whoami`" != "root" ]; then | |
| echo "You need to execute this script as root." | |
| exit 1 | |
| fi | |
| cat > /etc/yum.repos.d/centos.repo<<EOF |
| # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
| # Initialization code that may require console input (password prompts, [y/n] | |
| # confirmations, etc.) must go above this block; everything else may go below. | |
| if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
| source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
| fi | |
| export LC_CTYPE=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 | |
| export PATH=/Users/alexandrusavin/bin:$PATH |
| #!/bin/sh | |
| if [ `nvram get https_enable` -gt 0 ] ; then | |
| # get the absolute directory of the executable | |
| SELF_PATH=$(cd -P "$(dirname "$0")" && pwd -P) | |
| echo SELF_PATH: ${SELF_PATH} | |
| # extract the mount path |
| #!/usr/bin/env bash | |
| ~/.nvm/nvm.sh use default | |
| node $@ | ./node_modules/.bin/bunyan |
| 'use strict'; | |
| var mongoose = require('mongoose'); | |
| var _ = require('lodash'); | |
| var conn; | |
| function clearDB() { | |
| var cleaned = []; |
| input { | |
| stdin { | |
| type => "stdin-type" | |
| } | |
| udp { | |
| port => "9999" | |
| } | |
| tcp { | |
| port => "9998" | |
| } |