Skip to content

Instantly share code, notes, and snippets.


Stephen Hill stephen-hill

View GitHub Profile

Install Debian

  • Do not install a desktop environment

Minimal XFCE4

  • Login as root
  • Install sudo apt update;apt install sudo;
  • Create a user if required adduser USERNAME
  • Add your main user to sudo. usermod -a -G sudo USERNAME
  • Logout of root
View Default (Windows).sublime-mousemap
// Disable changing the font size with CTRL+SCOLL.
// Put this file in %APPDATA%\Sublime Text 3\Packages\User
{ "button": "scroll_down", "modifiers": ["ctrl"], "command": "null" },
{ "button": "scroll_up", "modifiers": ["ctrl"], "command": "null" }
stephen-hill / install
Last active Jul 9, 2016
MariaDB on Ubuntu 14.04 Minimal
View install
# Essential
apt-get update
apt-get upgrade
apt-get install dialog bsdutils software-properties-common
# MariaDB
apt-key adv --recv-keys --keyserver hkp:// 0xcbcb082a1bb943db
add-apt-repository 'deb trusty main'
apt-get update
apt-get install mariadb-server

Install disk encryption support and write random data to your device.

sudo apt-get install cryptsetup
sudo time dd if=/dev/urandom of=/dev/sdX bs=1M

Made sure the dm-crypt kernal module is installed.

stephen-hill /
Last active Aug 29, 2015
Install and Setup CouchDB
# On Vivid, enable the proposed repository
# deb vivid-proposed restricted main multiverse universe
sudo apt-get install couchdb crudini
cd /etc/couchdb
sudo openssl req -new -x509 -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem
sudo crudini --set /etc/couchdb/local.ini daemons httpsd "{couch_httpd, start_link, [https]}"
sudo crudini --set /etc/couchdb/local.ini ssl cert_file "/etc/couchdb/cert.pem"
sudo crudini --set /etc/couchdb/local.ini ssl key_file "/etc/couchdb/key.pem"
# This is buggy, set password via Futon
View OpenWithSublimeText.bat
@echo off
SET sublimePath=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CURRENT_USER\Software\Classes\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CURRENT_USER\Software\Classes\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%sublimePath%,0" /f
@reg add "HKEY_CURRENT_USER\Software\Classes\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%sublimePath% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CURRENT_USER\Software\Classes\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
View NoteController.php
namespace My\App\Controllers;
use Atto\Controller;
class NoteController extends Controller
public function note($request)
View radio.pls
Title1=SomaFM: The Trip
Title2=SomaFM: Deep Space One
Title3=Linn Radio

Curriculum vitae

Stephen Hill
1 Meadow Crescent

Telephone: 01772 672326
Mobile: 07870 311509

stephen-hill / .conkyrc
Last active Aug 29, 2015
Conky Config
View .conkyrc
# Settings #
background yes
use_xft yes
xftfont Droid Sans:size=9
xftalpha 1
update_interval 5
total_run_times 0
own_window yes
You can’t perform that action at this time.