Skip to content

Instantly share code, notes, and snippets.

View davidbanham's full-sized avatar

David Banham davidbanham

View GitHub Profile
traceroute to 27.50.71.5 (27.50.71.5), 64 hops max, 52 byte packets
1 home.gateway (10.10.0.254) 17.412 ms 1.023 ms 0.860 ms
2 lns20.syd7.internode.on.net (150.101.199.219) 69.530 ms 71.082 ms 75.901 ms
3 te3-3.cor2.syd7.internode.on.net (150.101.195.13) 70.798 ms 74.532 ms 71.016 ms
4 gi2-0-0.bdr1.syd6.internode.on.net (150.101.120.238) 72.384 ms 72.754 ms 73.819 ms
5 te2-0-0.bdr1.syd4.internode.on.net (150.101.197.2) 81.832 ms 79.512 ms 78.986 ms
6 45671.syd.equinix.com (202.167.228.22) 73.608 ms * 63.979 ms
7 27.50.71.5 (27.50.71.5) 69.171 ms 71.244 ms 76.514 ms
@davidbanham
davidbanham / gist:3234107
Created August 2, 2012 05:44
ND Update fail
gameservers@kermit:~$ /home/gameservers/steam -command update -game nucleardawn -dir /home/gameservers/nucleardawn/
Checking bootstrapper version ...
removing stale semaphore last operated on by process 1371 with name 0eBlobRegistryMutex_528E09C8780F0A9ADB2C6BA99A64426D
removing stale semaphore last operated on by process 1371 with name 0eBlobRegistrySignal_528E09C8780F0A9ADB2C6BA99A64426D
Updating Installation
Determining which depot(s) to install/update...
3 depot(s) will be installed/updated
0:01 Checking local files and building download list for depot 17711 'nucleardawn_content' version 128
0:01 Connecting content server session for version 128
0:03 [111.119.10.2:27030] Connecting...
@davidbanham
davidbanham / gist:3292528
Created August 8, 2012 05:49
Cloudfiles marker
fetchList = (containerName, marker, files, soFar) ->
if typeof soFar == 'undefined'
soFar = []
client.getFiles containerName,marker, (err, serverFiles) ->
return console.log "ERROR", err if err
# Default max return for the rackspace API is 10000.
if serverFiles.length == 10000
marker = serverFiles[serverFiles.length - 1].name
soFar = soFar.concat(serverFiles)
fetchList containerName, marker, files, soFar
@davidbanham
davidbanham / errorhandling.coffee
Created October 10, 2012 21:39 — forked from jpallen/errorhandling.js
errorhandling (express)
respondWithError (response, namespace, message, status) ->
status = 500 if status?
console.log namespace, message
response.send "Mising guid", status
handleDelete (request, response) ->
return respondWithError response, 'Blogs', 'Error - Missing guid in handleDelete', 400 if request.url.query.guid
getBlogByGuid request.url.query.guid, (err, blog) ->
return respondWithError(response, 'Blogs', 'Error in getBlogByGuid callback in handleDelete') if err
@davidbanham
davidbanham / gist:3902771
Created October 16, 2012 23:36
RSS fetch
function fetchRSS() {
$.ajax({
url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=http%3A%2F%2Fblog.counter-strike.net%2Findex.php%2Fcategory%2Fmotd%2Ffeed%2F',
dataType: 'json',
success: function(data) {
var post = data.responseData.feed.entries[0];
$('.title').text(post.title);
$('#post_content').html(post.content);
}
});
@davidbanham
davidbanham / gist:3916231
Created October 19, 2012 04:24
Example nginx conf
server {
listen localhost:81;
location /RPC2 {
auth_basic "Restricted";
auth_basic_user_file htpasswd;
include scgi_params;
scgi_pass localhost:5000;
}
}
@davidbanham
davidbanham / gist:3997775
Created November 2, 2012 00:11
Serverinfo blob
{ fgscsgo1:
{ start: 'cd /usr/games/csgo/fgscsgo1 && sudo -u csgo HOME=/home/csgo ./srcds_run -console -game csgo -ip 107.6.93.170 -port 25014+## +clientport 26004+## +map de_dust +exec server_##.cfg -pidfile /var/run/csgo/fgscsgo1.pid -fork 20 +sv_region 255 -tickrate 100 -usercon +rcon_password xxx >> /var/log/csgo/fgscsgo1.log 2>&1',
pidFile: '/var/run/csgo/fgscsgo1.pid',
writePidFile: false,
cwd: '/home/csgo',
ip: '107.6.93.170',
region: 'TEST',
steam: { steamDir: '/home/csgo/Steam/' },
srcds:
{ '25015': [Object],
@davidbanham
davidbanham / gist:3997781
Created November 2, 2012 00:13
spool8 blob
{ fgscsgo1:
{ start: 'cd /usr/games/csgo/fgscsgo1 && sudo -u csgo HOME=/home/csgo ./srcds_run -console -game csgo -ip 10.79.28.72 -port 25014+## +clientport 26004+## +map de_dust +exec server_##.cfg -pidfile /var/run/csgo/fgscsgo1.pid -fork 20 +sv_region 255 -tickrate 100 -usercon +rcon_password xxx >> /var/log/csgo/fgscsgo1.log 2>&1',
pidFile: '/var/run/csgo/fgscsgo1.pid',
writePidFile: false,
cwd: '/home/csgo',
ip: '10.79.28.72',
region: 'TEST',
steam: { steamDir: '/home/csgo/Steam/' },
srcds:
{ '25015': [Object],
├── async@0.1.22
├─┬ coffeecup@0.3.18
│ ├── coffee-script@1.4.0
│ ├── optparse@1.0.3
│ ├─┬ stylus@0.27.2
│ │ ├── cssom@0.2.5
│ │ ├── debug@0.7.0
│ │ └── mkdirp@0.3.4
│ └── uglify-js@1.2.6
├─┬ liverail-api@0.0.6
@davidbanham
davidbanham / gist:4082280
Created November 15, 2012 23:19
CORS set, no response from 302 target
Request URL:http://ads.intergi.com/adrawdata/3.0/5205/2408430/0/2898/ADTECH;referring_url=http%3A%2F%2Fmotd.pinion.gg%2Fmotd%2Foffice%2Fintergihtml5wcookie.html;number=1353021331;time=1353021331;cors=yes;acao=motd.pinion.gg
Request Method:GET
Status Code:302 Moved Temporarily
Request Headers
GET /adrawdata/3.0/5205/2408430/0/2898/ADTECH;referring_url=http%3A%2F%2Fmotd.pinion.gg%2Fmotd%2Foffice%2Fintergihtml5wcookie.html;number=1353021331;time=1353021331;cors=yes;acao=motd.pinion.gg HTTP/1.1
Host: ads.intergi.com
Connection: keep-alive
Origin: http://motd.pinion.gg
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11