Skip to content

Instantly share code, notes, and snippets.

View ChristopherA's full-sized avatar

Christopher Allen ChristopherA

View GitHub Profile
@ChristopherA
ChristopherA / keybase.md
Last active October 15, 2015 18:01
keybase.md

Keybase proof

I hereby claim:

  • I am ChristopherA on github.
  • I am christophera (https://keybase.io/christophera) on keybase.
  • I have a public key whose fingerprint is FDFE 14A5 4ECB 30FC 5D22 74EF F8D3 6C91 3574 05ED

To claim this, I am signing this object:

LICENSE-CC-BY-SA-4.0.md

UNLESS OTHERWISE NOTED, THE CONTENTS OF THIS REPOSITORY ARE LICENSED UNDER THE CREATIVE COMMONS ATTRIBUTION - SHARE ALIKE 4.0 INTERNATIONAL LICENSE

https://creativecommons.org/licenses/by-sa/4.0/

License Summary of CC-BY-SA 4.0 International

This section is a human-readable summary of (and not a substitute for) the full license included below.

LICENSE-CC-BY-4.0.md

UNLESS OTHERWISE NOTED, THE CONTENTS OF THIS DIRECTORY ARE LICENSED UNDER THE CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE.

https://creativecommons.org/licenses/by/4.0/ Approved for Free Cultural Works

License Summary of CC-BY 4.0 International

This section is a human-readable summary of (and not a substitute for) the full license included below.

@ChristopherA
ChristopherA / curl-edit-bash.sh
Last active October 3, 2016 00:56
alternatives to curl | bash -> curl to editor to bash
file=$(mktemp); curl -s "$url" > $file; $EDITOR $file; sh $file; rm $file
curl $URL | ( cat > $HOME/tmp/source; read REPLY; [[ ! $REPLY =~ ^[Yy]$ ]] && cat $HOME/tmp/source ) | sh ; rm $HOME/tmp/source
#need some cross platform way to hashpipe check.
if [[ `uname` == 'Darwin' ]]; then
alias sha256sum='openssl dgst -sha256'
fi
@ChristopherA
ChristopherA / dotfiles-ideas.md
Last active October 1, 2016 07:44
Various useful ideas for dotfiles

shell files

at end of .bashrc

source $HOME/.bashrc_$(hostname -f)

alias completion

@ChristopherA
ChristopherA / new-repo.sh
Last active March 16, 2017 02:01
New Github repo standard commands
echo "# MY REPO TITLE #" >> README.md
git init
git add README.md
# curl https://gist.githubusercontent.com/ChristopherA/825d5841727e3c7bb6add2a65f19be51/raw/db3b4b4d08ce283e815e47d3cee105c46f8bad29/LICENSE-CC-BY-SA-4.0.md > LICENSE-CC-BY-SA-4.0.md
# curl https://gist.githubusercontent.com/ChristopherA/40acbb0276618a766badacd075d8a436/raw/1b43eaee17effa25c81cfed697ee3e18ac84de2c/LICENSE-CC-BY-4.0.md > LICENSE-CC-BY-4.0.md
git config user.name "Christopher Allen"
git config user.email "ChristopherA@LifeWithAlacrity.com"
# git config user.email "ChristopherA@Blockstream.com"
#!/usr/bin/env bash
# from https://github.com/westurner/dotfiles/tree/develop/scripts
### pbcopy
# Shim to support something like pbcopy on Linux
function pbcopy {
__IS_MAC=${__IS_MAC:-$(test "$(uname -s)" == "Darwin" && echo 'true')}
#generate key on client
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
#set permissions on client
chmod 700 .ssh; chmod 640 .ssh/authorized_keys
# start ssh-agent on client and give it new key
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
shopt -s expand_aliases
rm -r ~/elementsdir1
rm -r ~/elementsdir2
rm -r ~/bitcoindir
mkdir ~/elementsdir1
mkdir ~/elementsdir2
mkdir ~/bitcoindir

Uninstall brew package and dependencies

Remove package's dependencies (does not remove package):

brew deps [FORMULA] | xargs brew remove --ignore-dependencies

Remove package: