TODO: Write a project description
TODO: Describe the installation process
| # Some code to retrieve CPUID information in pure Python | |
| # | |
| # Copyright (C) 2009 Nicolas Trangez <eikke eikke com> | |
| # | |
| # This library is free software; you can redistribute it and/or | |
| # modify it under the terms of the GNU Lesser General Public | |
| # License as published by the Free Software Foundation, version 2.1 | |
| # of the License. | |
| # | |
| # This library is distributed in the hope that it will be useful, |
| MacVim + latexmk + Skim workflow: | |
| MacVim http://code.google.com/p/macvim/ | |
| Latexmk http://www.phys.psu.edu/~collins/software/latexmk-jcc/ | |
| Skim.app http://skim-app.sourceforge.net/ | |
| Open the texfile in macvim: | |
| $ mvim <file>.tex | |
| Watch tex file with latexmk (see also ~/.dotfiles/latexmkrc): | |
| $ latexmk -pdf -pvc <file>.tex |
| #~/.mutt/aliases | |
| alias nick Nicholas Levandoski <[email protected]> | |
| alias tim Timothy Pitt <[email protected]> | |
| alias steven Steven Jackson <[email protected]> | |
| alias kaleb Kaleb Hornsby <[email protected]> | |
| alias alug-admin nick, tim, steven |
| (* | |
| * New-iTerm-Window.scpt | |
| * | |
| * Intended for use with QuickSilver | |
| * I mapped option-y to running this script to create | |
| * a new iTerm window on the current workspace | |
| * | |
| * Based on much Googling - very little "original" code here | |
| * Comments/Suggestions to [email protected] | |
| *) |
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python (Updated for Python 3.7) | |
| Usage: | |
| ./dummy-web-server.py -h | |
| ./dummy-web-server.py -l localhost -p 8000 | |
| Send a GET request: |
| " vim:fdm=marker | |
| " Editor basics {{{ | |
| " Behave like Vim instead of Vi | |
| set nocompatible | |
| " Show a status line | |
| set laststatus=2 | |
| " Show the current cursor position |
| # ---- @sexpr: S-expression to AST conversion ---- | |
| is_expr(ex, head::Symbol) = (isa(ex, Expr) && (ex.head == head)) | |
| is_expr(ex, head::Symbol, n::Int) = is_expr(ex, head) && length(ex.args) == n | |
| macro sexpr(ex) | |
| esc(sexpr_to_expr(ex)) | |
| end | |
| sexpr_to_expr(ex) = expr(:quote, ex) |
| [MASTER] | |
| # Specify a configuration file. | |
| #rcfile= | |
| # Python code to execute, usually for sys.path manipulation such as | |
| # pygtk.require(). | |
| #init-hook= | |
| # Profiled execution. |
| #Set up data partition | |
| sudo mkdir /data | |
| sudo chmod 777 /data | |
| sudo "echo /dev/xvdb /data ext4 rw,user,exec,comment=cloudconfig 0 2 >> /etc/fstab" | |
| sudo mount /data | |
| #Install build environment | |
| sudo sed -i "s/enabled=0/enabled=1" /etc/yum.repos.d/epel.epo | |
| sudo yum -y update | |
| sudo yum -y upgrade |