Skip to content

Instantly share code, notes, and snippets.

View philiph's full-sized avatar

Philip Hagen philiph

View GitHub Profile

Keybase proof

I hereby claim:

  • I am philiph on github.
  • I am philiphagen (https://keybase.io/philiphagen) on keybase.
  • I have a public key ASAl1tbfB_f0r2urhlSzM9uJJgpRbw5724e721t0EwfdPwo

To claim this, I am signing this object:

@philiph
philiph / using-asdf.md
Last active April 9, 2024 12:54
Using asdf to manage ruby, erlang, elixir, node.js, Postgres

Note: this assumes you are using ZSH shell.

Installation

Install asdf:

$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0
$ echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
$ echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
@philiph
philiph / keybase.md
Created September 5, 2017 01:56
Proof of my Github for Keybase

Keybase proof

I hereby claim:

  • I am philiph on github.
  • I am philiphagen (https://keybase.io/philiphagen) on keybase.
  • I have a public key ASBDph_iRzxVKLXhhyeGiBa-rc0zuGxL8EXAvAUsV63ndgo

To claim this, I am signing this object:

@philiph
philiph / commands.sh
Last active April 28, 2017 13:22
Using asdf to manage elixir versions on OS X (assuming zsh shell)
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.3.0
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.zshrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
# reload shell
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
asdf list elixir
asdf list-all elixir
asdf install elixir 1.2.6
@philiph
philiph / Gemfile
Created April 11, 2015 09:17
Sending an SMS with Twilio's Ruby library
source "https://rubygems.org"
ruby "2.1.2"
gem 'twilio-ruby'
@philiph
philiph / backup_js_project.sh
Created September 11, 2014 07:39
Bash script to backup a web front-end project to a timestamped .tar.gz archive.
#!/bin/bash
if [ $# -eq 0 ]; then
echo Expected: 1 arg which is the directory to backup.
exit 1
fi
project=$1
if [ ! -d "$project" ]; then
echo Directory not found: $project