For mass destruction (j/k I mean powerful data gathering)
-
Install Boto
-
Install GNU Parallel
| for ruby in ~/.rbenv/versions/*; do | |
| rbenv uninstall -f ${ruby##*/} | |
| rbenv install ${ruby##*/} | |
| done |
For mass destruction (j/k I mean powerful data gathering)
Install Boto
Install GNU Parallel
| #!/usr/bin/env bash | |
| # File name | |
| readonly PROGNAME=$(basename $0) | |
| # File name, without the extension | |
| readonly PROGBASENAME=${PROGNAME%.*} | |
| # File directory | |
| readonly PROGDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | |
| # Arguments | |
| readonly ARGS="$@" |
| GitHub RCE by Environment variable injection Bug Bounty writeup | |
| Disclaimer: I'll keep this really short but I hope you'll get the key points. | |
| GitHub blogged a while ago about some internal tool called gerve: | |
| https://github.com/blog/530-how-we-made-github-fast | |
| Upon git+sshing to github.com gerve basically looks up your permission | |
| on the repo you want to interact with. Then it bounces you further in | |
| another forced SSH session to the back end where the repo actually is. |
| Ruby 2.1.0 in Production: known bugs and patches | |
| Last week, we upgraded the github.com rails app to ruby 2.1.0 in production. | |
| While testing the new build for rollout, we ran into a number of bugs. Most of | |
| these have been fixed on trunk already, but I've documented them below to help | |
| anyone else who might be testing ruby 2.1 in production. | |
| @naruse I think we should backport these patches to the ruby_2_1 branch and | |
| release 2.1.1 sooner rather than later, as some of the bugs are quite critical. | |
| I'm happy to offer any assistance I can to expedite this process. |
| { | |
| "title": "Apache and Tomcat Logs", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "apache !tomcat !static", | |
| "alias": "", | |
| "color": "#7EB26D", | |
| "id": 0, |
| import os | |
| import os.path | |
| import sys | |
| from carbon.hashing import ConsistentHashRing | |
| instances = [] | |
| unwelcome_instances = [] | |
| for arg in sys.argv[1:]: | |
| unwelcome = False |
| require 'optparse' | |
| options = OptionParser.new("usage: #{$0}") do |opts| | |
| opts.on('-f','--file FILE','loads a file') do |file| | |
| puts "loading file #{file}" | |
| opts.separator "#{file} options:" | |
| opts.on('-c','--custom') do | |
| puts "custom option defined by file #{file}" | |
| end |
Note: total experiment and hack, looks nasty, could be awesome:
kitchen.local.yml into $HOME/.kitchen/config.ymlbrew install polipo, with Ubuntu: apt-get install polipo)polipo-start and polipo-console somewhere useful (perhaps $HOME/bin?)| #!/bin/bash | |
| # Set the ROOM_ID & AUTH_TOKEN variables below. | |
| # Further instructions at https://www.hipchat.com/docs/apiv2/auth | |
| ROOM_ID=XXX | |
| AUTH_TOKEN=XXX | |
| MESSAGE="Hello world!" | |
| curl -H "Content-Type: application/json" \ |