Skip to content

Instantly share code, notes, and snippets.

View philwhln's full-sized avatar

Phil Whelan philwhln

View GitHub Profile
@philwhln
philwhln / vast-ai-setup.txt
Created February 19, 2021 22:43
vast.ai setup script for model training workflow with jupyter notebook and git
apt-get update
apt-get install -y curl git-core
mkdir -p ~/.ssh && chmod 700 ~/.ssh
cat > ~/.ssh/id_rsa <<- EOM
-----BEGIN OPENSSH PRIVATE KEY-----
YOUR SSH PRIVATE KEY GOES HERE
-----END OPENSSH PRIVATE KEY-----
EOM
@philwhln
philwhln / test.sh
Created February 19, 2019 01:24
Test app to understand linkerd routes failure
#!/usr/bin/env bash
if [ -z "$REMOTE_IMAGE" ]; then
echo "Must specify REMOTE_IMAGE"
exit 1
fi
cat > main.go << GOLANG
package main
@philwhln
philwhln / updatevim.fish
Created April 9, 2018 03:29
updatevim.fish
function updatevim
set -lx SHELL (which sh)
vim +BundleInstall! +BundleClean +qall
end
@philwhln
philwhln / vim
Last active April 9, 2018 03:29
vim
#!/usr/bin/env bash
export SHELL=/bin/sh
exec /usr/local/bin/vim $*

Keybase proof

I hereby claim:

  • I am philwhln on github.
  • I am philwhln (https://keybase.io/philwhln) on keybase.
  • I have a public key whose fingerprint is 84E5 3CC2 EE37 3E16 05A6 398B 2639 2BFC 8568 A871

To claim this, I am signing this object:

@philwhln
philwhln / update_gists.rb
Last active September 26, 2018 21:15
update_gists.rb
require 'octokit'
access_token = ENV['TOKEN']
# Provide authentication credentials
client = Octokit::Client.new(:access_token => access_token)
user = client.user
[
@philwhln
philwhln / config.fish
Last active September 26, 2018 21:15
config.fish
set -x EDITOR vim
set -x PATH /usr/local/bin $PATH
set -x PATH /usr/local/sbin $PATH
set -x PATH /usr/local/opt/go/libexec/bin $PATH
set -x PATH $HOME/bin $PATH
set -x PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
set -x JAVA_HOME (/usr/libexec/java_home -v 1.8)