Skip to content

Instantly share code, notes, and snippets.

View MattSturgeon's full-sized avatar

Matt Sturgeon MattSturgeon

  • United Kingdom
  • 23:19 (UTC +01:00)
View GitHub Profile
@william8th
william8th / .tmux.conf
Last active July 22, 2024 12:43
Tmux open new pane in same directory
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
set -g prefix C-space
unbind-key C-b
bind-key C-space send-prefix
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
@FeodorFitsner
FeodorFitsner / install-wix-310.ps1
Created August 5, 2015 20:45
Install WiX 3.10 RC
$exePath = "$env:USERPROFILE\wix310.exe"
(New-Object Net.WebClient).DownloadFile('http://wixtoolset.org/downloads/v3.10.0.1823/wix310.exe', $exePath)
cmd /c start "$exePath" /q
@ryanflorence
ryanflorence / static_server.js
Last active July 21, 2024 12:43
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);