Skip to content

Instantly share code, notes, and snippets.

View stephen-hill's full-sized avatar

Stephen Hill stephen-hill

View GitHub Profile
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>

Keybase proof

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:

@stephen-hill
stephen-hill / rsa.php
Last active August 29, 2015 14:06
php-rsa
<?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) {
@stephen-hill
stephen-hill / new-ssc
Created January 27, 2015 11:12
Create a new Self-Signed OpenSSL Certificate
openssl req -x509 -nodes -days 36500 -newkey rsa:4096 -sha256 -keyout private.key -out certificate.crt
@stephen-hill
stephen-hill / Default (Windows).sublime-keymap
Last active August 29, 2015 14:14
Sublime Text Settings
[
{ "keys": ["ctrl+alt+d"], "command": "delete_trailing_spaces" }
]
@stephen-hill
stephen-hill / .conkyrc
Last active August 29, 2015 14:16
Conky Config
############
# Settings #
############
background yes
use_xft yes
xftfont Droid Sans:size=9
xftalpha 1
update_interval 5
total_run_times 0
own_window yes
@stephen-hill
stephen-hill / curriculum-vitae.md
Last active August 29, 2015 14:18
Curriculum vitae

Curriculum vitae

Stephen Hill
1 Meadow Crescent
Wesham
PR4 3BB

Telephone: 01772 672326
Mobile: 07870 311509
Email: stephen@bloggie.co.uk

[playlist]
Title1=SomaFM: The Trip
File1=http://ice.somafm.com/thetrip
Title2=SomaFM: Deep Space One
File2=http://ice.somafm.com/deepspaceone
Title3=Linn Radio
File3=http://radio.linnrecords.com/cast/tunein.php/linnradio/playlist.pls
Title4=Trance1.FM
File4=http://yp.shoutcast.com/sbin/tunein-station.pls?id=162359
Title5=Moviester
@stephen-hill
stephen-hill / NoteController.php
Last active August 29, 2015 14:21
Atto Planning
<?php
namespace My\App\Controllers;
use Atto\Controller;
class NoteController extends Controller
{
public function note($request)
{