Skip to content

Instantly share code, notes, and snippets.

View bcomnes's full-sized avatar

Bret Comnes bcomnes

View GitHub Profile
bcomnes / Final results
Created November 3, 2012 22:51
Homebrew gfortran adapted for OS X 10.6 with Xcode 4.2
Bret-Mac:~ bret$ brew info gfortran
gfortran: stable 4.2.4-5666.3
/usr/local/Cellar/gfortran/4.2.4-5666.3 (84 files, 72M) *
bcomnes / redshift.conf
Created December 9, 2012 07:35
My configuration file for Redshift. Place it in ~/.config/ Drag redshift onto the Startup Applications menu to have it boot on start
; Global settings
bcomnes / gist:4378960
Created December 26, 2012 08:52
A set of notes from when I was learning about web development. Silly, I know.
Term List:
Ruby - The language used to write Jekyll -
RVM - Ruby version manager -
homebrew - a mac os x package manage
gem - the ruby package manager used to install jekyll
jekyll -
yaml - "YAML Ain't Markup Language" something about data serialization
Liquid - template markup tool Jekyll uses it
less - css meta language
Jison - some kind of thing Ill never use
% jhwhw.cls
% Provide jhwhw.cls class
% Identification
\ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class]
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences.
# Instructions:
# Go to TextMate > Preferences...
# Click Advanced
# Select Folder References
# Replace the following:
# File Pattern
bcomnes / .screenrc
Last active December 23, 2015 20:29
Copy this to your home folder and then screen behaves sanely.
# Sets the screen to use login shells
shell -$SHELL
# To reload .screenr Press Ctrl - a : source ~/.screenrc
# Turn of startup message
startup_message off
# This helps prevent the screen from doing funny things.
defflow off
bcomnes / .bashrc
Created September 24, 2013 21:11
Enable .bashrc from .bash_profile Paste this into your .bash_profile to source .bashrc in login shells
# Enable .bashrc
# If running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
bcomnes / gist:7015985
Created October 16, 2013 22:23
How to fix path issues on hecate. Add to ~/.bash_profile
export PATH
bcomnes / build.log
Created February 10, 2014 04:06
/tmp/python-build.20140209195817.24052 ~
Downloading Python-2.7.6.tgz...
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Last-Modified: Tue, 19 Nov 2013 10:03:58 GMT
Expires: Mon, 10 Feb 2014 03:13:31 GMT
Cache-Control: max-age=600
Content-Length: 14725931
Accept-Ranges: bytes
bcomnes / gist:23e00814d05b1d8d2b53
Created February 10, 2014 05:19
python2.7 virtualenv error
bcomnes:~:1002 > virtualenv -p /vol/apps/user/python/python2.7.6/bin/python2.7 twoseventest
Running virtualenv with interpreter /vol/apps/user/python/python2.7.6/bin/python2.7
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/", line 8, in <module>
import base64
File "/vol/apps/user/python/python2.7.6/lib/python2.7/", line 9, in <module>
import struct
File "/vol/apps/user/python/python2.7.6/lib/python2.7/", line 1, in <module>
from _struct import *
ImportError: No module named _struct