http://barclayperkins.blogspot.com/2013/11/lets-brew-wednesday-1923-courage-stout.html
- Lyle's Golden Syrup
- Fireplace Lighter
- Wall plug adapter
- SS 'L' female-to-female
$.observable = function(model) { | |
model.Vent = $({}); | |
var handleEvent = function(vent, args) { | |
var argArr = Array.prototype.slice.call(args); | |
model.Vent[vent].apply(model.Vent, argArr); | |
return model; | |
}; | |
model.trigger = function() { return handleEvent('trigger', arguments); }; |
#!/usr/bin/env bash | |
ipcs=$(ipcs -m | grep root | grep -c 666) | |
if (( $ipcs > 1 )); then | |
echo "ROOT KIT DETECTED" | mail -s "ROOTKIT ON CCREMIX" thcipriani@gmail.com | |
else | |
echo "we're cool" | |
fi |
http://barclayperkins.blogspot.com/2013/11/lets-brew-wednesday-1923-courage-stout.html
#!/usr/bin/env python | |
# http://blog.vrypan.net/2012/12/20/dynamic-dns-with-route53/ | |
from area53 import route53 | |
from boto.route53.exception import DNSServerError | |
import subprocess | |
import sys | |
def get_ip(): | |
p = subprocess.Popen("/usr/bin/dig +short @resolver1.opendns.com myip.opendns.com", stdout=subprocess.PIPE, shell=True) | |
(output, err) = p.communicate() |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<style type="text/css"> | |
.ef0,.f0 { color: #000000; } .eb0,.b0 { background-color: #000000; } | |
.ef1,.f1 { color: #AA0000; } .eb1,.b1 { background-color: #AA0000; } | |
.ef2,.f2 { color: #00AA00; } .eb2,.b2 { background-color: #00AA00; } | |
.ef3,.f3 { color: #AA5500; } .eb3,.b3 { background-color: #AA5500; } | |
.ef4,.f4 { color: #0000AA; } .eb4,.b4 { background-color: #0000AA; } | |
.ef5,.f5 { color: #AA00AA; } .eb5,.b5 { background-color: #AA00AA; } |
-- Lamest answer to http://www.seas.upenn.edu/~cis194/lectures.html HW1 | |
toDigits :: Integer -> [Integer] | |
toDigits x | |
| x <= 0 = [] | |
| otherwise = toDigits a ++ [b] | |
where | |
a = div x 10 | |
b = mod x 10 | |
double2nd :: [Integer] -> [Integer] |
#!/usr/bin/env bash | |
while read line; do | |
if (( $(echo $line | wc -w) > 5 )); then | |
echo "$line is greater than 5 words" | |
fi | |
done < "$1" |
I made a quick shortcut to share my public keys quickly and easily. This shortcut likely brought you to this place.
#!/bin/bash | |
printf "Enter OpenStack cloud password: " | |
read pass | |
# With the addition of Keystone, to use an openstack cloud you should | |
# authenticate against keystone, which returns a **Token** and **Service | |
# Catalog**. The catalog contains the endpoint for all services the | |
# user/tenant has access to - including nova, glance, keystone, swift. | |
# |