I hereby claim:
- I am jalada on github.
- I am jalada (https://keybase.io/jalada) on keybase.
- I have a public key ASAQDYbixXz7raIFzButKSquHPoB5iexxEVwIEu_kWHm7go
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
import subprocess | |
import re | |
import json | |
import urllib.parse | |
from prompt_toolkit import prompt | |
from prompt_toolkit.completion import Completer, Completion, FuzzyCompleter | |
# Helper function to run subprocess commands |
const chunk = function(array, size) { | |
var length = array.length; | |
var index = length, | |
result = Array(Math.ceil(length / size)), | |
resIndex = result.length-1; | |
var start; | |
while (index > 0) { | |
start = Math.max(0, index - size); | |
result[resIndex--] = array.slice(start, index); |
#!/usr/bin/env python | |
''' | |
Send Redis connection metrics to Amazon CloudWatch | |
''' | |
import sys | |
import re | |
from subprocess import check_output | |
from boto.ec2 import cloudwatch | |
from boto.utils import get_instance_metadata |
I hereby claim:
To claim this, I am signing this object:
» curl -vv "https://www.theguardian.com" | |
* Rebuilt URL to: https://www.theguardian.com/ | |
* Trying 23.235.43.67... | |
* Connected to www.theguardian.com (23.235.43.67) port 443 (#0) | |
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | |
* Server certificate: i.ssl.fastly.net | |
* Server certificate: GlobalSign Organization Validation CA - SHA256 - G2 | |
* Server certificate: GlobalSign Root CA | |
> GET / HTTP/1.1 | |
> Host: www.theguardian.com |
// Public: Deploy to AWS. | |
gulp.task('deploy', function() { | |
var publisher = $.awspublish.create({ | |
params: { | |
Bucket: 'my-bucket' | |
}, | |
// Put credentials in .env, use dotenv | |
region: 'eu-west-1' | |
}); |
comb([[3], ['a', 'c', 'f'], [4,6], [5,9]]) | |
=> ["3a45", "3a49", "3a65", "3a69", "3c45", "3c49", "3c65", "3c69", "3f45", "3f49", "3f65", "3f69"] |
(* | |
Copyright © 2011, Scott Dollins. All rights reserved. | |
http://scottdollins.com/ | |
Redistribution and use in source and binary forms, with or without modification, are | |
permitted provided that the following conditions are met: | |
Redistributions of source code must retain the above copyright notice, this list of | |
conditions and the following disclaimer. | |
var express = require('express'); | |
var app = express(); | |
app.get('/:status_code', function (req, res) { | |
if (req.params.status_code.match(/^\d{3}$/)) { | |
res.status(req.params.status_code).send(''); | |
} else { | |
res.status(500).send('Not a code'); | |
} | |
}); |
$ ./some-custom-test-script-our-guy-wrote.sh | |
Starting test harness...this may take a while... | |
A bad group name | |
F: A key piece of functionality | |
F: Another key piece of functionality | |
P: A test that doesn't actually do anything | |
F: What, you thought there were going to be more green ones? | |
F: Nope, not this one either |