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 / 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",
@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 / .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 / 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 / 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 / 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 / plone.app.toolbar
Created July 14, 2013 17:00
Merge of plone.app.toolbar and plone.app.widgets issues into mockup tracker
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)

Keybase proof

I hereby claim:

  • I am claytron on github.
  • I am claytron (https://keybase.io/claytron) on keybase.
  • I have a public key whose fingerprint is EDF7 946A 1F6F 1CBF F55D 9E3F 5098 437C 05A9 EEB5

To claim this, I am signing this object:

@claytron
claytron / init.yml
Last active August 29, 2015 14:02 — forked from renoirb/init.yml
#
# How to install automatically Oracle Java 7 under Salt Stack
#
# Thanks Oracle for complicating things :(
#
# 1. Create a java/ folder in your salt master
# 2. Paste this file in init.sls
# 3. salt '*' state.sls java
#
# Source:
@claytron
claytron / clearly.conf
Last active August 29, 2015 14:17
Clearly Solarized Dark Config
## Settings in Clearly plugin
Body font: Droid Sans
Header font: Ubuntu
Monospace font: Inconsolata
Background Color: #002b36
Foreground Color: #839496
Links Color: #b58900
Base font size: 22pt
Line height: 1.4em
Line width: 32em