Skip to content

Instantly share code, notes, and snippets.

View ChristopherA's full-sized avatar

Christopher Allen ChristopherA

View GitHub Profile

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.

#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
@ChristopherA
ChristopherA / README.md
Created February 13, 2017 19:00 — forked from lopezjurip/README.md
OSX Homebrew: docker-machine setup

Prerequisites

Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].

# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Install Homebrew-cask
brew install caskroom/cask/brew-cask
@ChristopherA
ChristopherA / extractemail.sh
Last active March 8, 2017 16:41
Extract Email Shell Script
#!/bin/bash
#Works as both "./extractemail.sh filename" and "cat filename | ./myscript.sh"
# Set variable input_file to either $1 or /dev/stdin, in case $1 is empty
# Note that this assumes that you are expecting the file name to operate on on $1
# # This version doesn't test if the input is a valid filename
# input_file="${1:-/dev/stdin}"
# If the script argument is provided and it is a file, then variable input_fille is
# assigned to the file name. If there is no valid argument then reads from stdin
@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"

The reStructuredText Cheat Sheet: Syntax Reminders

Info

See <http://docutils.sf.net/rst.html> for introductory docs.

Author

David Goodger <goodger@python.org>

Date

$Date: 2013-02-20 01:10:53 +0000 (Wed, 20 Feb 2013) $

Revision

$Revision: 7612 $

Description

This is a "docinfo block", or bibliographic field list

Note

If you are reading this as HTML, please read

@ChristopherA
ChristopherA / common-md-rst.md
Last active March 22, 2017 20:31 — forked from silverrain/README.rst
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

Verifying my Blockstack ID is secured with the address 1Fwaw6u32TCkmGdaxfKA1FH2th8V3Hc8r4 https://explorer.blockstack.org/address/1Fwaw6u32TCkmGdaxfKA1FH2th8V3Hc8r4
@ChristopherA
ChristopherA / homebrewfixes.md
Last active November 9, 2017 23:26
Various Homebrew related fixes…

Various Homebrew related fixes…

homebrew "missing xcrun"

How to fix homebrew error invalid active developer path after upgrade to OS X El Capitan

Run the following commands to fix the above error: