This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'octokit' | |
if ARGV[0] | |
@client = Octokit::Client.new(:netrc => true, :per_page => 100, | |
:auto_traversal => true, :auto_paginate => true) | |
@client.login |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'librarian/puppet' | |
lockfile = Librarian::Puppet::Lockfile.new( | |
Librarian::Puppet::Environment.new, 'Puppetfile.lock' | |
) | |
puppet_modules = {} |
This file contains hidden or 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
alias dip="docker inspect -f '{{ .NetworkSettings.IPAddress }}'" | |
dssh() { | |
PID=$(docker inspect --format {{.State.Pid}} $1) | |
sudo /usr/bin/nsenter --target $PID --mount --uts --ipc --net --pid env -i - $(sudo cat /proc/$PID/environ | xargs -0) bash | |
} | |
drmiall() { | |
docker rmi `docker images -q -f dangling=true` | |
} |