Skip to content

Instantly share code, notes, and snippets.

View geothird's full-sized avatar

Geo geothird

  • Utah
View GitHub Profile

Keybase proof

I hereby claim:

  • I am geothird on github.
  • I am gjm (https://keybase.io/gjm) on keybase.
  • I have a public key ASD90NMNHR81aU502j-IVPFXZvigcYXzte2an7SvDoA5ngo

To claim this, I am signing this object:

@geothird
geothird / .gitattributes
Last active September 25, 2015 17:17
Fix line endings
# These files are text and should be normalized (Convert crlf => lf)
*.php text
*.css text
*.js text
*.htm text
*.html text
*.xml text
*.txt text
*.ini text
*.inc text
@geothird
geothird / ldapcs.sh
Created March 18, 2014 17:07
ldap cheat sheet
$ ldappasswd -x -D "cn=Manager,dc=example,dc=company" -W -S "uid=user1,ou=People,dc=example,dc=company"
# Change a existing users password
$ ldapsearch -x -b 'ou=people,dc=example,dc=com' '(objectclass=*)'
# Search for users in people ou
@geothird
geothird / git-bash-completion-ps1.sh
Created February 21, 2012 18:56
Bash git completion and ps1 status/dirty
##
# Git bash completion scripts
##
if [ -f /usr/local/git/contrib/completion/git-completion.bash ]; then
# Git OS X Installer: http://code.google.com/p/git-osx-installer/
. /usr/local/git/contrib/completion/git-completion.bash
elif type brew > /dev/null 2>&1 && [ -f `brew --prefix`/etc/bash_completion ]; then
# Homebrew: http://mxcl.github.com/homebrew/
. `brew --prefix`/etc/bash_completion
elif [ -f /opt/local/etc/bash_completion.d/git ]; then
@geothird
geothird / printextstore.js
Created June 5, 2011 04:52
Prints extjs store to html table.
var head = false;
var cols = 0;
function printStore(store,th) {
var a = store.data.items;
var h = new Array();
var d = new Array();
for (var i=0; i < a.length; i++) {
for (var propName in a[i].data) {
if (!(a[i].data[propName] instanceof Function)) {
d.push(a[i].data[propName]);