Skip to content

Instantly share code, notes, and snippets.

View davidfeldi's full-sized avatar

David Feldstein davidfeldi

View GitHub Profile
davidfeldi / ssh-config-github-multiple-deploy-keys
Created May 22, 2018 09:05
Using multiple github deploy keys from a Jenkins instance
# When using a CI server, like Jenkins, in conjunction with github, you may wish to use
# multiple deploy keys (github-speak for an rsa key pair that has been assigned to a single
# repo, rather than a user) to allow Jenkins to pull code from the github repositories
# In the example here, where three repos are used, the idea is to take advantage of ssh's config mechanism
# For use with Jenkins, do the following:
# login to your CI Server
sudo su jenkins
cd ~/.ssh/

Keybase proof

I hereby claim:

  • I am davidfeldi on github.
  • I am haromani ( on keybase.
  • I have a public key ASDPAhCd59_GdpdMjlKNKC_SkCId5bqR1cos7sQjQkDxdQo

To claim this, I am signing this object:

davidfeldi /
Created March 25, 2018 10:25 — forked from willurd/
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
davidfeldi / git-rebase.markdown
Created January 28, 2018 09:35 — forked from tmcgilchrist/git-rebase.markdown
Git rebase workflow

Checkout a new working branch

 git checkout -b <branchname>

Make Changes

 git add
 git commit -m "description of changes"

Sync with remote

davidfeldi / rvm-amazon-linux.bash
Created January 11, 2018 12:15 — forked from kainam00/rvm-amazon-linux.bash
Install RVM on Amazon Linux
# Install prerequisites
yum install -y gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel ruby-devel gcc-c++ jq git
# Import key
curl -sSL | gpg2 --import -
# Install RVM
curl -sSL | bash -s stable --ruby
davidfeldi /
Created September 2, 2016 09:34 — forked from agnoster/
My ZSH Theme


A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

davidfeldi /
Created April 7, 2016 14:09 — forked from mateusortiz/
Setup Mac OS X El Capitan.
# homebrew-cask
brew tap phinze/homebrew-cask
brew install brew-cask
# browser
brew cask install firefox-aurora
brew cask install google-chrome
brew cask install google-chrome-canary
davidfeldi / echoHttpRequest.js
Last active August 29, 2015 14:16 — forked from Marak/echoHttpRequest.js
Echo HTTP requests
module['exports'] = function echoHttp (hook) {
hook.debug("Debug messages are sent to the debug console");