Skip to content

Instantly share code, notes, and snippets.

View stephen-hill's full-sized avatar

Stephen Hill stephen-hill

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:s1="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:ns="http://www.parcelforce.net/ws/ship/v14"
targetNamespace="http://www.parcelforce.net/ws/ship/v14"
name="ShipServiceDefinitions">
<types>
<xs:schema
@stephen-hill
stephen-hill / instructions.md
Last active May 14, 2018 20:32
Debian Notebook

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
[
// 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 July 9, 2016 08:27
MariaDB on Ubuntu 14.04 Minimal
# 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
@stephen-hill
stephen-hill / luks-usb.md
Last active August 29, 2015 14:26
LUKS USB

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 August 29, 2015 14:25
Install and Setup CouchDB
# 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
@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
@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)
{
[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 / 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