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
View instructions.md

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
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://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
add-apt-repository 'deb http://lon1.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu trusty main'
apt-get update
apt-get install mariadb-server
View luks-usb.md

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
stephen-hill / couchdb.sh
Last active Aug 29, 2015
Install and Setup CouchDB
View couchdb.sh
# On Vivid, enable the proposed repository
# deb http://archive.ubuntu.com/ubuntu/ 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
stephen-hill / setup.sh
Last active Mar 17, 2019
Minimal Ubuntu 15.04 with MATE
View setup.sh
sudo apt-get update
sudo apt-get upgrade
# Prerequisits
mkdir ~/bin
sudo apt-get install curl
sudo apt-get install htop
# http://blogging.dragon.org.uk/ubuntu-minimal-install-with-mate-as-the-desktop-14-04-lts/
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
<?php
namespace My\App\Controllers;
use Atto\Controller;
class NoteController extends Controller
{
public function note($request)
{
@stephen-hill
stephen-hill / annotation-parser.php
Last active Aug 29, 2015
Annotation Parser PoC
View annotation-parser.php
<?php
$comment = '/**
* @Document
* @Collection ( name = "users" )
* @Field(type=\'string\', length=\'128\', nullable=false)
* @var
* @Id
*/';
View radio.pls
[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
You can’t perform that action at this time.