Skip to content

Instantly share code, notes, and snippets.

View thesteve0's full-sized avatar

Steven Pousty thesteve0

View GitHub Profile
@karlkfi
karlkfi / kubernetes-gitdm.md
Last active September 5, 2016 04:15
Top 25 Kubernetes Contributors (2015-09-02)

Kubernetes repo analyzed with gitm.

git log --numstat --no-merges | ~/workspace/gitdm/gitdm -u -s -a -n -o results -b ~/workspace/gitdm -l 25

Caveats

Source tree analysis includes generated, third-party, and vendored dependency files.

@ryanj
ryanj / rhclone.sh
Created January 22, 2013 19:43
Add this to your .bashrc to run "rhclone $app_name $cart_type $git_uri" to quickly initialize a gear with an openshift-compatible cart (via a git repo uri)
#Add the following lines to your `~/.bashrc` to run "rhclone $app_name $cart_type $git_uri"
# in order to quickly initialize an openshift gear
# with an openshift-compatible cart (via a git repo uri).
#
# 'git' and 'rhc' command-line tools are required:
function rhclone()
{
rhc app create $1 $2 && cd $1 && git remote add upstream -m master $3 && git pull -s recursive -X theirs upstream master && git push
}
export rhclone
@burningTyger
burningTyger / gist:3479004
Created August 26, 2012 13:05
Drupal on Openshift

#Drupal on Openshift There is an existing repo for a quick install of Drupal 7 over at https://github.com/openshift/drupal-example. This didn't really cut the deal for me because the example was Drupal 7, I needed Drupal 6 and I wasn't happy about the way it is managed codewise.

I needed this:

  • Drupal 6
  • easy updates via git
  • simple module management
  • multisite setup
@senko
senko / onchange.sh
Last active July 14, 2023 07:54
OnChange - Watch current directory and execute a command if anything in it changes
#!/bin/bash
#
# Watch current directory (recursively) for file changes, and execute
# a command when a file or directory is created, modified or deleted.
#
# Written by: Senko Rasic <[email protected]>
#
# Requires Linux, bash and inotifywait (from inotify-tools package).
#
# To avoid executing the command multiple times when a sequence of