As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
--colour | |
-I app |
if Rails.env.development? | |
class XipIoMiddleware | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
%w{HTTP_HOST SERVER_NAME SERVER_ADDR HTTP_X_FORWARDED_HOST}.each do |key| | |
env[key] = env[key].sub(/myapp\.\d+\.\d+\.\d+\.\d+\.xip\.io/, "myapp.dev") if env[key].present? | |
end |
class ActiveRecord::Base | |
mattr_accessor :shared_connection | |
@@shared_connection = nil | |
def self.connection | |
@@shared_connection || ConnectionPool::Wrapper.new(:size => 1) { retrieve_connection } | |
end | |
end | |
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
* Script to record and tag spotify tracks, by Lloyd Moore *) | |
(* Make sure you are already recording in Audio Hijack Pro with a session called 'spotifySession' *) | |
tell application "Spotify" | |
set currentTrack to (current track) | |
set trackName to (name of currentTrack) | |
tell application "Audio Hijack Pro" | |
set theSession to my getSession() | |
end tell | |
repeat |
Connect the SD card to your computer and open the terminal.
df -h
<project> | |
<properties> | |
<jetty.port>8123</jetty.port> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> |
#!/bin/sh | |
# tunnel.sh | |
# Configure | |
LOCAL_HOST=127.0.0.1; | |
USERNAME="your_username"; | |
# set your remote address and SSH port. | |
TUNNEL_PORT="2022" | |
REMOTE_HOST="my.homedomainorip.com -p $TUNNEL_PORT"; |