I hereby claim:
- I am bonkydog on github.
- I am bonkydog (https://keybase.io/bonkydog) on keybase.
- I have a public key ASCx0KcEFDWyZmRPU8eBhICdzc48LQZQmbWxNOjhsbtmtQo
To claim this, I am signing this object:
aws ec2 describe-instances --query "Reservations[*].Instances[*].[PublicDnsName, (Tags[?Key=='Name'].Value)[0]]" --output=text --no-paginate |
Fantasy Heartbreaker | |
Vague Aggregate | |
I’d Ship It | |
Vargr | |
Hanzo Main | |
Horny on Main | |
Dump Stat | |
Trap Street | |
Event Horizon | |
Cherenkov Blue |
# what services are being offered by this machine? | |
netstat -lantp | grep LISTEN | |
# who is connecting to this machine? | |
netstat -alntp | awk '{ print $5 }' | grep -v ^127.0.0.1 | cut -d ':' -f 1 | sort -n | uniq |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# Uses the following Slack API methods: | |
# user.list → https://api.slack.com/methods/users.list | |
# channels.history → https://api.slack.com/methods/channels.history | |
require "open-uri" | |
require "json" | |
# Obtain a token |
I hereby claim:
To claim this, I am signing this object:
# -t is length in seconds. | |
ffmpeg -f lavfi -i anullsrc=r=44100:cl=mono -t 10 -q:a 9 -acodec libmp3lame ten-seconds-of-silence.mp3 |
Lord Meg | |
Dodger | |
Dodgem | |
Husk | |
Husker | |
Dusk | |
Drain | |
Clamp | |
Beetle | |
Bell |
(d/q | |
'[:find ?e ?a ?v ?tx ?added | |
:in $ ?e | |
:where | |
[?e ?a ?v ?tx ?added]] | |
(datomic.api/history db) | |
123123) |
# Put this in your Rails app's lib/tasks directory | |
namespace :db do | |
desc "Fix 'ERROR: must be owner of extension plpgsql' complaints from Postgresql" | |
task :fix_psql_dump do |task| | |
filename = ENV['DB_STRUCTURE'] || File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, "structure.sql") | |
sql = File.read(filename) | |
sql.sub!(/(CREATE EXTENSION IF NOT EXISTS plpgsql)/, '-- \1') | |
sql.sub!(/(COMMENT ON EXTENSION plpgsql)/, '-- \1') | |
File.open(filename, 'w') do |f| | |
f.write(sql) |
defaults write com.apple.Dock autohide-delay -float 10.0 && killall Dock |