Skip to content

Instantly share code, notes, and snippets.

View alexandrusavin's full-sized avatar
🤞
Coding

Alexandru Savin alexandrusavin

🤞
Coding
View GitHub Profile
@alexandrusavin
alexandrusavin / clissomget.sh
Last active May 6, 2020 12:13
CLI tool which enables you to login and retrieve AWS temporary credentials using clisso and 1Password
#!/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 () {
@alexandrusavin
alexandrusavin / ReactFnCompPropsChecker.tsx
Created December 23, 2020 17:27
ReactFnCompPropsChecker
import React from 'react';
// TYPES
interface PropsCheckerProps<T> {
children: (props: T) => React.ReactElement | null;
childrenProps: T;
compType?: ComparaisonTypes;
verbose?: boolean;
}

Exclude Git-Ignored Directories from Time Machine

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.


Why