WHAT?
<?php
function machine_forget(&$data) {
$data = null;
}
$answer = 42;
include: | |
# for backports | |
- apt | |
openssh6.6: | |
pkg.installed: | |
# backports; this number *will* change | |
- pkgs: | |
- openssh-server: 1:6.6p1-4~bpo70+1 | |
- openssh-client: 1:6.6p1-4~bpo70+1 |
WHAT?
<?php
function machine_forget(&$data) {
$data = null;
}
$answer = 42;
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Usage: $0 username | |
# e.g.: | |
# $ ./twitter_user_to_image coates | |
# https://si0.twimg.com/profile_images/1597362183/me.jpg | |
curl -sL http://twitter.com/$1 | grep profile_images | head -n1 | perl -p -e's/.*?http/http/;s/".*//;s/_bigger//' |
#!/usr/bin/env python | |
""" | |
A nagios plugin for ensuring that load balancers have at least a certain | |
number of healthy nodes. | |
Usage: | |
Nagios Command: | |
define command { | |
command_name check_elb_healthy_hosts |
alert('ownerened?') |
alert('ownenated?') |
#!/usr/bin/env python | |
import time | |
from sys import stdin, stdout, argv, exit | |
try: | |
if argv[1] == 'help' or argv[1] == '--help' or argv[1] == '-h': | |
print "%s: times each line of stdin.\n Optional parameter is a float of a threshold. (defaults to 2.0)" % argv[0] | |
exit(255); | |
else: |
> db.runCommand({ findAndModify: 'assets', query: {$or: [ { "_id" : "4ff70c97c87a97bc7f000002" }, { "_id" : ObjectId("4ff70c97c87a97bc7f000002") } ]}, update: {$set: {private: true}}, new: true, upsert: false }) | |
{ | |
"lastErrorObject" : { | |
"updatedExisting" : true, | |
"n" : 1, | |
"connectionId" : 1317, | |
"err" : null, | |
"ok" : 1 | |
}, | |
"value" : { |