This file contains hidden or 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
#!/usr/bin/ruby | |
require 'time' | |
require 'erb' | |
filename = "~/.gitlogger" | |
## File format, One per line | |
# Repo Name:/path/to/base | |
dayone = true # log to day one? (true or false) | |
textlog = "~/Dropbox/nvALT2.2/GitLogger.md" # set to false to disable |
This file contains hidden or 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
#!/usr/bin/ruby | |
require 'ftools' | |
puts "Installing GitLogger" | |
puts "This script will install the following files:" | |
puts | |
puts "/usr/local/bin/gitlogger.rb" | |
puts "~/Library/LaunchAgents/com.brettterpstra.gitlogger.plist" | |
puts "It will add the glog command to your bash_profile and" |
This file contains hidden or 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
(* | |
Jered Benoit | |
jeredb.com | |
Omnifocus -> Day One Daily Completed Task Log | |
Based upon [Version 1.0] [1] of [OmniFocus - Weekly Project Report Generator] [2] | |
Originally Authored by Chris Brogan and Rob Trew | |
February 5, 2012 |
This file contains hidden or 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
line = IO.readlines('some_file') | |
c = rand*line.length.to_i | |
puts line[c-1] |
This file contains hidden or 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
dd if=/dev/dsp | ssh -C user@host dd of=/dev/dsp |
This file contains hidden or 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
@Text tools | |
@Markdown and text manipulation tools | |
ml javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20Link','['+s+']('+location+')')})();void(0) Copy selected text as Markdown link | |
mt javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20Title','['+document.title+']('+location+')')})();void(0) Copy title as Markdown link | |
mu javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20URL','('+location+')')})();void(0) URL as markdown link | |
mc javascript:(function(s){try{s=document.selection.createRange().text}catch(_){s=document.getSelection()}prompt('Markdown%20Copy','['+document.title+']('+location+')\n\n>'+s)})();void(0) Copy selected text as quote with title url in markdown | |
tc javascript:(function(s){try{s=document.selection.crea |
This file contains hidden or 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
pm list packages -f |
This file contains hidden or 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
while true ; do sleep 60 && echo `date`‘ Capturing screenshot…’ && screencapture -C -m -t jpg -x -f cap.`date +%s`.jpg ; done |
This file contains hidden or 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
for f in *.apk; do echo "Processing $f"; adb install $f;done |
This file contains hidden or 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
// initializes your array | |
$newcolori = array(); | |
// - for loop will repeat everything inside the '{...}' a certain number of times | |
// - i starts at 0 ('i=0') | |
// - i increases by 1 every time the loop repeats 'i++' | |
// - the for loop will repeat as long as i is less than or equal to 60 (starts at 0 goes up to 59) 'i<=60' | |
for (i=0;i<=60;i++) | |
{ | |
// - i is just like any other variable here... it just changes on every loop |
NewerOlder