Skip to content

Instantly share code, notes, and snippets.

View jameslittle230's full-sized avatar

James Little jameslittle230

View GitHub Profile
@glowinthedark
glowinthedark / generate_directory_index.py
Last active February 7, 2022 11:00
Generate directory index (Python 2) Python 3 version is here: https://gist.github.com/glowinthedark/174df43f469c7ef05f6358f53afe05c6
#!/usr/bin/env python
# requires Python 2
# (Python 3 version: https://gist.github.com/glowinthedark/174df43f469c7ef05f6358f53afe05c6)
# Recursively generate index.html files for
# all subdirectories in a directory tree
##########################################################################
## ❗️❗️❗️ WARNING: This version is outdated and unmaintained!
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export PATH="/usr/local/opt/python/bin:$PATH"
export GPG_TTY=$(tty)
# export START="$HOME/a"
# if [[ $PWD == $HOME ]]; then
# cd $START
# fi
# alias ls='ls -F --color --show-control-chars'
@jednano
jednano / gitcom.md
Last active May 31, 2023 08:23
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

git init
@Wilto
Wilto / blockquote.md
Created December 20, 2012 15:35
Of Blockquotes and Outlines
@malarkey
malarkey / Contract Killer 3.md
Last active April 16, 2024 21:44
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………

@michaelt
michaelt / latex.template
Created June 9, 2011 21:23
Simple Pandoc default.latex with comments
%!TEX TS-program = xelatex
\documentclass[12pt]{scrartcl}
% The declaration of the document class:
% The second line here, i.e.
% \documentclass[12pt]{scrartcl}
% is a standard LaTeX document class declaration:
% we say what kind of document we are making in curly brackets,
% and specify any options in square brackets.
@milemeter
milemeter / keyflip.sh
Created January 24, 2011 20:52
a quick applescript to toggle doublecommand alt/option swapping when using/not using a external MS keyboard
#!/usr/bin/osascript
# keyflip.sh
# a quick applescript to toggle doublecommand alt/option swapping when using/not using a external MS
# keyboard
tell application "System Preferences"
activate
set current pane to pane "DoubleCommand"
end tell