I hereby claim:
- I am dliggat on github.
- I am dliggat (https://keybase.io/dliggat) on keybase.
- I have a public key whose fingerprint is A683 E518 CE53 D80E E0AE ABF3 E913 BB24 FEDA BC07
To claim this, I am signing this object:
# Note 1: Necessary to reproduce $PATH so that the boxen location for wget is picked up by the cron daemon. | |
# Note 2: Pick an appropriate output location - currently this is set to a logging directory in Dropbox | |
PATH=/opt/boxen/nodenv/shims:/opt/boxen/nodenv/bin:bin:/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:/opt/boxen/rbenv/plugins/ruby-build/bin:/opt/boxen/bin:/opt/boxen/homebrew/bin:/opt/boxen/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin | |
0 8,13,18,23 * * * wget --output-document=/dev/null --report-speed=bits http://speedtest.wdc01.softlayer.com/downloads/test10.zip 2>&1 | grep ') -' >> /Users/$USER/Dropbox/Logging/`hostname`-bandwidth.log |
vals = "255,0,0,0.8".split(',') | |
transparency = vals.pop.to_f | |
hex = "#%02x%02x%02x" % vals.map(&:to_i) |
#!/usr/bin/env ruby | |
require 'date' | |
require 'fileutils' | |
raise ArgumentError.new "Usage: #{$0} directory" unless ARGV.count == 1 | |
root_dir = File.expand_path ARGV.first | |
Dir.glob "#{root_dir}/*.jpg" do |file| |
I hereby claim:
To claim this, I am signing this object:
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_match_enabled": false, | |
"binary_file_patterns": | |
[ | |
"*.doc", | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", |
2014-05
: No financial news, checking portfolio performance, etc
2014-06
: Hit 10,000 steps a daymodule Foo | |
def blar | |
puts 'blar!' | |
end | |
end | |
module Bar | |
def blar | |
puts 'barry!' | |
end |
{ | |
"Id": "Policy1407525880036", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1407525872165", | |
"Action": [ | |
"s3:GetObject" | |
], | |
"Effect": "Allow", | |
"Resource": "arn:aws:s3:::$BUCKET_NAME/*", |
namespace :production do | |
task sync: :environment do |t, args| | |
user_at_host = 'ubuntu@aws-host.com' | |
user_keypair = '-i ~/.ec2/gsg-keypair' | |
filename = Time.now.strftime "production_dump_%Y-%m-%d_%H-%M-%S.psql" | |
dump_path = "/tmp/#{filename}" | |
project = 'project' | |
# Dumping the table (excluding schema_migrations) on the server. | |
dump_command = ["pg_dump --exclude-table=schema_migrations", |
0 * * * * echo `date` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam diam elit, pellentesque eget mattis vitae, sodales quis quam. Aenean et bibendum felis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque sed metus odio. Cras fermentum tincidunt gravida. Nullam tincidunt, quam at pretium adipiscing, leo lacus condimentum lorem, vitae euismod nisi erat ut dui. Pellentesque malesuada elementum nisl ut sagittis. Nulla sit amet odio leo. Phasellus consectetur lorem sed justo mattis cursus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. >> /tmp/foobar |