Skip to content

Instantly share code, notes, and snippets.

View geraint0923's full-sized avatar

Mark geraint0923

  • Hunger
  • Redwood
View GitHub Profile
@geraint0923
geraint0923 / Library_LaunchDaemons_com.noatime.root.plist
Created July 6, 2018 04:11 — forked from dmitryd/Library_LaunchDaemons_com.noatime.root.plist
"noatime" for OS X on SSD. Place this file to /Library/LaunchDaemons/com.noatime.root.plist and do `sudo launchctl load -w /Library/LaunchDaemons/com.noatime.root.plist`
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.noatime.root</string>
<key>ProgramArguments</key>
<array>
<string>/sbin/mount</string>
<string>-vuwo</string>
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
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);
#!/usr/bin/env ruby
require 'rack'
include Rack
port = (ARGV[0] || 8080 ).to_i
Handler::Thin.run Builder.new { run Directory.new ''}, :Port=>port