This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
letterboxd.csv* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# this script gets the JSON from api.github for a user | |
# and mirrors (or fetches, for existing) that user's repos | |
import os | |
import sys | |
import json | |
import urllib2 | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Use 'ffr' in normal mode to start it | |
nmap ffr :MRUFilesCWD<CR> | |
" MRU handling, limited to current directory | |
command! MRUFilesCWD call fzf#run({ | |
\ 'source': s:mru_files_for_cwd(), | |
\ 'sink': 'edit', | |
\ 'options': '-m -x +s --prompt=MRU:'.shellescape(pathshorten(getcwd())).'/', | |
\ 'down': '40%' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def human_time(t) | |
mm, ss = t.divmod(60) | |
hh, mm = mm.divmod(60) | |
dd, hh = hh.divmod(24) | |
"#{dd}d #{hh}h #{mm}m #{ss}s" | |
end | |
# Default attempts is 25 | |
max_attempts = ARGV[0] ? ARGV[0].to_i : 25 | |
cumulative_time = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# My defaults for FZF (mostly changed to see hidden files) | |
export FZF_DEFAULT_COMMAND='find -L . -type f -o -type d -o -type l | sed 1d | cut -b3- | grep -v -e .git/ -e .svn/ -e .hg/' | |
export FZF_CTRL_T_COMMAND=$FZF_DEFAULT_COMMAND | |
# Enhance the default experience | |
export FZF_DEFAULT_OPTS='--extended --multi --inline-info --prompt="fzf> "' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Example output: | |
# | |
# Metrics/PerceivedComplexity | |
# Min: 8 Max: 96 Average: 14.628342 | |
cops=( | |
Metrics/AbcSize | |
Metrics/ClassLength |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Could not create label Bug | |
Could not create label Feature | |
Could not create label toolbar | |
Loaded issues 1 29 | |
Loaded issues 2 0 | |
Importing issue Personal-tools should come last in the DOM of the toolbar (127) | |
Successfully created issue Personal-tools should come last in the DOM of the toolbar (45) | |
Successfully imported comments in Personal-tools should come last in the DOM of the toolbar (45) | |
Importing issue Upon edit success, page should reload if #portal-column-content is not found (126) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true | |
do | |
sleep 5 | |
clear | |
figlet -w 200 -f smslant `date +"%H : %M"` | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[debugging] | |
parts = | |
zopepy | |
pylint | |
pyflakes | |
pep8 | |
# plone.reload: | |
# you can reload the zcml in your site by running the following | |
# http://<zope host>:<zope port>/@@reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set up a sane modern history | |
setopt HIST_SAVE_NO_DUPS | |
setopt HIST_IGNORE_ALL_DUPS | |
setopt EXTENDED_HISTORY | |
HISTSIZE=50000 | |
SAVEHIST=50000 | |
HISTFILE=~/.zsh_history | |
export HISTFILE HISTSIZE SAVEHIST | |
# Look for a command that started like the one starting on the command line. |
NewerOlder