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
#!/usr/bin/env ruby | |
temp = 'some-temp-file-that-doesnt-exist' | |
args = ARGV.shuffle! | |
last = args.last | |
cur = args.shift | |
unless !cur.nil? | |
# need to provide some args! |
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
Hey {{name of recruiter}}, | |
Thanks for reaching out regarding potential career opportunities with {{company}}! | |
I appreciate the offer and wish you well on your quest to find good talent. Unfortunately, I’ll have to respectfully decline. | |
Part of my job as a young professional is knowing my own worth and, on principle, I can’t pursue a lead for a tech company with a recruitment email written in Comic Sans. | |
All the best! | |
-{{your name}} |
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
#!/usr/bin/env sh | |
## sandwiches 1 file (slice.v) into another (d_ff.v) _before_ regex /endmodule/ | |
echo -e "`sed -n '/endmodule/,$!p' d_ff.v`\n`<slice.v`\n`sed -n '/endmodule/,$p' d_ff.v`" |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# From @jerodsanto | |
# http://blog.jerodsanto.net/2012/11/a-domainr-cli-in-less-than-15-lines-of-ruby/ | |
%w(json open-uri).each { |lib| require lib } | |
abort "Usage: #{File.basename __FILE__} [query]" unless ARGV.first | |
response = open("http://domai.nr/api/json/search?q=#{ARGV.first}").read |
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
var http = require('http'); | |
var sys = require('sys'); | |
var exec = require('child_process').exec; | |
var util = require('util'); | |
var fs = require('fs'); | |
http.createServer(function(request, response) { | |
var dummyContent = '<!doctype html><html><head><title>Test</title><meta charset="utf-8"></head><body><p>Hello world!</p></body></html>'; | |
var htmlFileName = "page.html", pdfFileName = "page.pdf"; | |
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
❯ curl -i -X GET -H'Accept: application/json' https://api.github.com/repos/nodejs/node/releases | |
HTTP/1.1 200 OK | |
Server: GitHub.com | |
Date: Wed, 30 Mar 2016 18:29:48 GMT | |
Content-Type: application/json; charset=utf-8 | |
Content-Length: 5 | |
Status: 200 OK | |
X-RateLimit-Limit: 60 | |
X-RateLimit-Remaining: 45 | |
X-RateLimit-Reset: 1459365215 |
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
❯ curl -i -X GET -H'Accept: application/atom+xml' https://github.com/nodejs/node/releases.atom | |
HTTP/1.1 200 OK | |
Server: GitHub.com | |
Date: Wed, 30 Mar 2016 18:32:14 GMT | |
Content-Type: application/atom+xml; charset=utf-8 | |
Transfer-Encoding: chunked | |
Status: 200 OK | |
Cache-Control: no-cache | |
Vary: X-PJAX | |
X-UA-Compatible: IE=Edge,chrome=1 |
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
{ | |
"name": "knksmith57/lnc-identity-call-stack-error", | |
"description": "example setup for reproducing LnC #235", | |
"authors": [ | |
{ | |
"name": "Kyle Smith", | |
"email": "knksmith57@gmail.com" | |
} | |
], | |
"require": { |
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
#!/usr/bin/env bash -e | |
instance_name="throw-away-$(date +%s)" | |
region=us-west1-b | |
ssh_key_dir="$(mktemp -d)" | |
cleanup() { | |
echo "removing temp dir: $ssh_key_dir" | |
rm -rf "$ssh_key_dir" |
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
#!/usr/bin/env bash | |
set -eo pipefail | |
## | |
## extract .netrc creds inspired by https://bugs.launchpad.net/python-jenkins/+bug/941400 | |
## | |
## usage: | |
## netrc_credentials example.com # // 'myuser mypassword' | |
## netrc_credentials example.com username # // 'myuser' | |
## netrc_credentials example.com password # // 'mypassword' |
OlderNewer