I hereby claim:
- I am stephen-hill on github.
- I am stephenhill (https://keybase.io/stephenhill) on keybase.
- I have a public key whose fingerprint is CC3E 4529 85AC 469E 869E 940F BC2B 6754 C461 5BF4
To claim this, I am signing this object:
<?php | |
set_time_limit(0); | |
// List of fetch styles to test | |
$fetchStyles = array( | |
'Assoc' => PDO::FETCH_ASSOC, | |
'Both' => PDO::FETCH_BOTH, | |
'Lazy' => PDO::FETCH_LAZY, | |
'Num' => PDO::FETCH_NUM, |
<?php | |
header('Content-Type: text/plain'); | |
$total = 0; | |
$id = 0; | |
$apps = array(); | |
set_time_limit(0); | |
// Get a list of all valid apps | |
$applist = file_get_contents('http://api.steampowered.com/ISteamApps/GetAppList/v2'); | |
$applist = json_decode($applist); |
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions\SESSION_NAME] | |
"Colour21"="255,255,255" | |
"Colour20"="245,222,179" | |
"Colour19"="200,240,240" | |
"Colour18"="0,217,217" | |
"Colour17"="179,146,239" | |
"Colour16"="174,129,255" | |
"Colour15"="122,204,218" |
sudo apt-get update | |
sudo apt-get install munin-plugins-extra | |
cd /etc/munin/plugins | |
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_bytes | |
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_counters | |
sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_rates | |
sudo aptitude install libcache-memcached-perl | |
sudo /etc/init.d/munin-node restart | |
sudo tail -f /var/log/munin/munin-node.log |
<?php | |
/** | |
* Copy Photos | |
* | |
* I made this script to copy photographs from my memory card to my network storage device. | |
* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2014 Stephen Hill <stephen@gatekiller.co.uk> |
I hereby claim:
To claim this, I am signing this object:
<?php | |
# Code ported from http://code.activestate.com/recipes/578838-rsa-a-simple-and-easy-to-read-implementation/ | |
function getPrimes($start, $stop) | |
{ | |
$primes = array(2); | |
$range = range(3, $stop + 1, 2); | |
foreach ($range as $n) { |
openssl req -x509 -nodes -days 36500 -newkey rsa:4096 -sha256 -keyout private.key -out certificate.crt |
[ | |
{ "keys": ["ctrl+alt+d"], "command": "delete_trailing_spaces" } | |
] |
############ | |
# Settings # | |
############ | |
background yes | |
use_xft yes | |
xftfont Droid Sans:size=9 | |
xftalpha 1 | |
update_interval 5 | |
total_run_times 0 | |
own_window yes |