Skip to content

Instantly share code, notes, and snippets.

Avatar
🏜️

Bret bcomnes

🏜️
View GitHub Profile
@bcomnes
bcomnes / Final results
Created Nov 3, 2012
Homebrew gfortran adapted for OS X 10.6 with Xcode 4.2
View Final results
Bret-Mac:~ bret$ brew info gfortran
gfortran: stable 4.2.4-5666.3
http://r.research.att.com/tools/
/usr/local/Cellar/gfortran/4.2.4-5666.3 (84 files, 72M) *
https://github.com/mxcl/homebrew/commits/master/Library/Formula/gfortran.rb
@bcomnes
bcomnes / redshift.conf
Created Dec 9, 2012
My configuration file for Redshift. Place it in ~/.config/ Drag redshift onto the Startup Applications menu to have it boot on start
View redshift.conf
; Global settings
[redshift]
temp-day=6500K
temp-night=5000
transition=1
;gamma=0.8:0.7:0.8
gamma=1.000:1.000:1.000
location-provider=geoclue
;location-provider=manual
adjustment-method=vidmode
@bcomnes
bcomnes / gist:4378960
Created Dec 26, 2012
A set of notes from when I was learning about web development. Silly, I know.
View gist:4378960
Term List:
Ruby - The language used to write Jekyll - http://www.ruby-lang.org/en/
RVM - Ruby version manager - http://beginrescueend.com/
homebrew - a mac os x package manage http://mxcl.github.com/homebrew/
gem - the ruby package manager used to install jekyll http://rubygems.org/
jekyll - http://jekyllrb.com/ https://github.com/mojombo/jekyll/wiki
yaml - "YAML Ain't Markup Language" something about data serialization http://www.yaml.org/
Liquid - http://liquidmarkup.org/ template markup tool Jekyll uses it https://github.com/Shopify/liquid/wiki http://rubydoc.info/gems/liquidS
less - http://lesscss.org/#synopsis css meta language
Jison - http://zaach.github.com/jison/ some kind of thing Ill never use
View jhwhw.cls
%=====================================================================
% jhwhw.cls
% Provide jhwhw.cls class
%=====================================================================
%=====================================================================
% Identification
%=====================================================================
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class]
View Folder Preferences
# 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
bcomnes / .screenrc
Last active Dec 23, 2015
Copy this to your home folder and then screen behaves sanely.
View .screenrc
# 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
bcomnes / .bashrc
Created Sep 24, 2013
Enable .bashrc from .bash_profile Paste this into your .bash_profile to source .bashrc in login shells
View .bashrc
# Enable .bashrc
# If running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
@bcomnes
bcomnes / gist:7015985
Created Oct 16, 2013
How to fix path issues on hecate. Add to ~/.bash_profile
View gist:7015985
PATH=/vol/apps/user/bin:$PATH
export PATH
View build.log
/tmp/python-build.20140209195817.24052 ~
Downloading Python-2.7.6.tgz...
HTTP/1.1 200 OK
Server: GitHub.com
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
bcomnes / gist:23e00814d05b1d8d2b53
Created Feb 10, 2014
python2.7 virtualenv error
View gist:23e00814d05b1d8d2b53
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/virtualenv.py", line 8, in <module>
import base64
File "/vol/apps/user/python/python2.7.6/lib/python2.7/base64.py", line 9, in <module>
import struct
File "/vol/apps/user/python/python2.7.6/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: No module named _struct