Skip to content

Instantly share code, notes, and snippets.

Stephen Hill stephen-hill

Block or report user

Report or block stephen-hill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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
stephen-hill /
Last active Mar 17, 2019
Minimal Ubuntu 15.04 with MATE
sudo apt-get update
sudo apt-get upgrade
# Prerequisits
mkdir ~/bin
sudo apt-get install curl
sudo apt-get install htop
sudo apt-get install mate-desktop-environment-core mate-themes plymouth-theme-ubuntu-mate-logo
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)
stephen-hill / annotation-parser.php
Last active Aug 29, 2015
Annotation Parser PoC
View annotation-parser.php
$comment = '/**
* @Document
* @Collection ( name = "users" )
* @Field(type=\'string\', length=\'128\', nullable=false)
* @var
* @Id
View radio.pls
Title1=SomaFM: The Trip
Title2=SomaFM: Deep Space One
Title3=Linn Radio
You can’t perform that action at this time.