Skip to content

Instantly share code, notes, and snippets.

View jeffnem's full-sized avatar

Jeff jeffnem

  • Los Angeles, CA
  • 11:22 (UTC -07:00)
  • X @datamonk
View GitHub Profile
@jeffnem
jeffnem / bash tricks
Created August 28, 2015 20:32
bash tricks
# generate a deploy.list file
ls *.sql | xargs -n1 basename >deploy.list
#!/bin/bash
#
# Author: Bertrand BENOIT
# Version: 1.1
# Description: lists last commit of current author according to specified (optional) branch and count.
# To use this script, create a git alias.
# git config --global alias.mc '!/path/to/gitListMyLastCommits.sh'
DEFAULT_COMMIT_COUNT=5
cheat sheets.
$ cheat git
Setup
-----
git clone <repo>
clone the repository specified by <repo>; this is similar to "checkout" in
some other version control systems such as Subversion and CVS
@jeffnem
jeffnem / transfer_github_repo.sh
Created November 14, 2012 02:03
transfer github repo
git clone wdig:DTSSDatabaseEngineering/db-disney-account.git
cd db-disney-account
gitbranches
git remote add new-origin [new-url]:[new-account]/[new-repo].git
git remote add new-origin corp:dtssdatabaseengineering/db-disney-account.git
git push --all new-origin
!done!
@jeffnem
jeffnem / userDefineLang_Gradle.xml
Created August 21, 2012 01:02 — forked from toddb/userDefineLang_Gradle.xml
Gradle language for Notepad++
<NotepadPlus>
<UserLang name="Gradle" ext="gradle">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="yes" commentLine="yes" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">&quot;&apos;0&quot;&apos;0</Keywords>
<Keywords name="Folder+"></Keywords>