Skip to content

Instantly share code, notes, and snippets.

View claytron's full-sized avatar
😎
My future is so bright.

Clayton Parker claytron

😎
My future is so bright.
View GitHub Profile
@claytron
claytron / mirror-repos.py
Created January 18, 2013 23:57
Script to mirror repos from an organization
#!/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
@claytron
claytron / retro-clock.sh
Created November 28, 2012 15:45
Sweet retro clock
#!/bin/sh
while true
do
sleep 5
clear
figlet -w 200 -f smslant `date +"%H : %M"`
done
@claytron
claytron / debug.cfg
Created November 14, 2011 04:01
Debug configuration for Plone 4
[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
@claytron
claytron / .zshrc
Created April 9, 2011 02:08
Whole line completion for ZSH
# 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.
@claytron
claytron / snipmatize.py
Created March 4, 2011 13:47
Convert TexMate snippets into snipMate compatible snippets
#!/usr/bin/env python2.6
"""
About
=====
Convert Texmate snippets into snipmate compatible snippets
http://www.vim.org/scripts/script.php?script_id=2540
http://macromates.com/
@claytron
claytron / disable_ldap.py
Created October 27, 2010 11:22
A script that can be used in conjunction with collective.recipe.plonesite to disable LDAP
# id of the ldap plugin the PloneSite/acl_users
ldap_plugin_id = "ldap-plugin"
# turn off the ldap plugin for local testing
interfaces = [
"IAuthenticationPlugin",
"ICredentialsResetPlugin",
"IGroupEnumerationPlugin",
"IGroupsPlugin",
"IPropertiesPlugin",
"IRoleEnumerationPlugin",