Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephen Hill stephen-hill

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
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)
{
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
View curriculum-vitae.md

Curriculum vitae

Stephen Hill
1 Meadow Crescent
Wesham
PR4 3BB

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

@stephen-hill
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.