Skip to content

Instantly share code, notes, and snippets.

View jessedc's full-sized avatar

Jesse Collis jessedc

View GitHub Profile
@jessedc
jessedc / CSGO.mdown
Created February 2, 2013 23:23
CSGO Dedicated Server Configuration

List of configuration options

[Valve's GSGO Dedicated Server Page][2]

Running the game:

srcds -game csgo -console -usercon +game_type 1 +game_mode 0 +mapgroup mg_armsrace +map ar_shoots
@jessedc
jessedc / php_on_osx.mdown
Last active September 28, 2017 22:13
PHP setup instructions OSX 1.8 Mountain Lion

Setting up PHP on Mountain Lion from scratch

Editing text files from the command line is made easier with TextMate with it's command line extension mate OR Sublime text2 with command line extensions. However the built in nano text editor is easy to use as well.

Some guidance gleaned form from coolestguyplanettech.com

Change permissions on /Library/WebServer/Documents so all users can write to it

sudo chmod -R o+w /Library/WebServer/Documents
@jessedc
jessedc / gist:3462508
Last active October 9, 2015 07:37
TF2 Dedicated Server

TF2 Wiki - linux dedicated server

update the game ./steam -command update -game tf -dir .

run the game ./srcds_run -game tf +map cp_badlands

  • [Here's a list of the maps][2] (scroll to bottom)
@jessedc
jessedc / Genstrings.sh
Created July 16, 2012 00:12
genstrings
genstrings -s JCLocalizedString -q -o localization [files]
genstrings -s JCLocalizedString -q -a -o localization [files]
@jessedc
jessedc / dateformatterstuffs.m
Created June 7, 2012 08:04
DateFormatter stuffs
NSDateFormatter *timeOfArrival = [[NSDateFormatter alloc] init];
[timeOfArrival setTimeStyle:NSDateFormatterLongStyle];
[timeOfArrival setDateStyle:NSDateFormatterNoStyle];
[timeOfArrival setLocale:[[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] autorelease]];
NSString *etaStr = [attributeDict objectForKey:@"cumulativeTime"];
NSLog(@"%@", etaStr);
checkpoint.eta = [timeOfArrival dateFromString:etaStr];
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
@jessedc
jessedc / ObsidianCode.dvtcolortheme
Last active April 20, 2016 09:22 — forked from subdigital/ObsidianCode.dvtcolortheme
Obsidian Code Theme for Xcode 4
<?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>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>
@jessedc
jessedc / UIDeviceHardware.h
Created April 26, 2012 04:35 — forked from Jaybles/UIDeviceHardware.h
UIDeviceHardware - Determine iOS device being used
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
- (NSString *) platform;
@jessedc
jessedc / cityrail.rb
Created January 5, 2012 11:02
Sydney City Rail service updates to JSON
require 'nokogiri'
require 'open-uri'
require 'json'
METRO_URL = 'http://www.cityrail.info/service_updates'
doc = Nokogiri::HTML(open(METRO_URL).read)
lines = []
line_row2 = doc.xpath("//tbody[@id='serviceStatusLines:j_id631:tbody_element']/tr").each do |line_row|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>
@jessedc
jessedc / compiled.html
Created April 25, 2011 12:19
Jade Example for Steve
<html lang="en">
<head>
<title>
title of the page
</title>
<link rel="stylesheet" type="text/css" href="/stylesheets/style.css">
</head>
<body>
<h1>
title of the post