bosh ssh onto running errand vm
sudo su
ps ax | grep "bin/test" | tail -n1 | awk '{print $1}' // assuming 3333 is the PID returned
tail -f /proc/3333/fd/{1,2}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sample rake tasks for deploying to cloud foundry | |
require 'fileutils' | |
namespace :cf do | |
desc 'Deploy to staging on Cloud Foundry' | |
task :deploy_staging do | |
deploy('staging') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"os/exec" | |
"path" | |
"runtime" | |
"sync" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -u | |
brew install vundle | |
ln -s ~/Dropbox/.vimrc ~/.vimrc | |
ln -s ~/Dropbox/.pairs ~/.pairs | |
ln -s ~/Dropbox/.pairs ~/.git-authors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
tronRunTime := 96 * time.Minute | |
endTime := time.Date(2016, time.August, 27, 1, 0, 0, 0, time.UTC) |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// macOS - pathing might be different on your machine
# look for the results using a lot of space (lets say it is `com.docker.driver.amd64-linux)
$ ls -la ~/Library/Containers/com.docker.docker/Data/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo apt update | |
sudo apt -y install git | |
git clone https://github.com/dbellotti/ubuntu-gpu-flasher-setup | |
cd ubuntu-gpu-flasher-setup | |
sudo ./setup.sh |