This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# via https://gist.github.com/419201#file_gitconfig.bash | |
# Install (from Matt's gist) these useful Git aliases & configurations with the following command: | |
# $ bash <(curl -s https://raw.github.com/gist/419201/gitconfig.bash) | |
git config --global color.ui auto # colorize output (Git 1.5.5 or later) | |
git config --global color.interactive auto # and from 1.5.4 onwards, this will works: | |
echo "Set your name & email to be added to your commits." | |
echo -n "Please enter your name: " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
/usr/bin/osascript > /dev/null <<ASCPT | |
set stdinText to "$(cat | sed -e 's/\\/\\\\/g' -e 's/\"/\\\"/g')" | |
set recName to "Nik Cubrilovic" | |
set recAddr to "[email protected]" | |
set theSubject to "Email from standard input" | |
tell application "Mail" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install --HEAD rbenv | |
brew install --HEAD ruby-build | |
brew install --HEAD https://raw.github.com/jasoncodes/homebrew/rbenv-vars/Library/Formula/rbenv-vars.rb # https://github.com/mxcl/homebrew/pull/7891 | |
brew install readline | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
echo 'gem() { rbenv exec gem "$@" && rbenv rehash && hash -r; }' >> ~/.bash_profile | |
exec | |
CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline)" rbenv install 1.9.2-p290 | |
rbenv global 1.9.2-p290 | |
gem install bundler -v '~> 1.0.pre' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* complete_checkout.js | |
* | |
* This little bookmarklet populates the checkout screen with default values | |
* | |
* MIT Licensed. | |
* | |
* Copyright 2011-2012 Seth Wilson @SethWilson | |
* | |
* ------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* lb_debug_info.js | |
* | |
* This little bookmarklet populates the LabelBuilder screen with a handy debug pane that shows the details of certain hidden fields | |
* | |
* MIT Licensed. | |
* | |
* Copyright 2011-2012 Seth Wilson @SethWilson | |
* | |
* ------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runthis() { | |
// Completed as per request bookmarklet | |
$('#status').val('9'); | |
$('select[name="resolution"]').val('10'); | |
$('#notification_all').click(); | |
$('textarea[name="reason"]').val('Complete as per request'); | |
$("form[name=close_form]").submit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runthis() { | |
// Won't fix request bookmarklet | |
$('#status').val('9'); | |
$('select[name="resolution"]').val('10'); | |
$('#notification_all').click(); | |
$('textarea[name="reason"]').val('Sorry - won't fix this'); | |
$("form[name=close_form]").submit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runthis() { | |
var close_link = "" | |
$("table table tr").each(function(){ | |
$(this).find('a.link').each( function(){ | |
close_link = $(this).attr('href').replace(/view/,"close" ); | |
$(this).attr('href', close_link) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sked_data = ''; | |
$('#div_content').append('<textarea id="skeddata" />'); | |
$('table#ctl00_ctl00_ContentPlaceHolder1_MainContentPlaceHolder_GridView1_RadGrid1_ctl00 tr').each(function(){ | |
sked_data = | |
$(this).find("td:eq(8)").html() + ", " + | |
$(this).find("td:eq(3)").html() + ", " + | |
$(this).find("td:eq(4)").html() + ", " + | |
$(this).find("td:eq(3)").html() + ", " + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sked_data = ''; | |
var sked_header = "Subject,Start Date,Start Time,End Date,End Time,All Day Event,Description,Location,Private"; | |
$('#div_content').append('<textarea id="skeddata" />'); | |
$('#skeddata').append(sked_header + '\n'); | |
$('table#ctl00_ctl00_ContentPlaceHolder1_MainContentPlaceHolder_GridView1_RadGrid1_ctl00 tr').each(function(){ | |
sked_data = | |
$(this).find("td:eq(8)").html() + ", " + | |
$(this).find("td:eq(3)").html() + ", " + |
OlderNewer