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/bash | |
#*******************************************************# | |
# # | |
# # | |
# Arunachalesha # | |
# $Id$ # | |
#*******************************************************# | |
file="$HOME/myblogs/totalrecall/techurls.txt" | |
sig=`pbpaste` | |
if [ "$sig" == "" ] |
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/bash | |
## returns a serial number based on a file | |
## can be used for programs requiring a running id | |
## different apps can have their own serial numbers | |
## different folders can have their serial number file | |
# == PROCESS OPTIONS == | |
Revision="0.1" | |
Date="2009-11-06" | |
arg0=$(basename "$0") | |
istart=1 |
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/bash | |
# NOTE: Todo.sh requires the todo.cfg configuration file to run. | |
# Place the todo.cfg file in your home directory or use the -d option for a custom location. | |
# incr_id is a program that returns a sequential id each time it is called | |
# it is as follows | |
##!/bin/bash | |
#file=~/bin/unique_id | |
#uniqueid=`cat $file` | |
#let nextid=$uniqueid+1 |
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/bash | |
snippet #! | |
#!/bin/bash | |
snippet if | |
if [[ ${1:condition} ]]; then | |
${2:#statements} | |
fi | |
snippet ife | |
if [[ ${1:condition} ]]; then |
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/bash | |
## vim:ts=4:sw=4:tw=100:ai:nowrap:formatoptions=croqln: | |
#*******************************************************# | |
# tumblr.sh # | |
# written by Rahul Kumar # | |
# 2010/01/01 # | |
# Post, edit, delete, read tumblr.com # | |
#*******************************************************# | |
# References: http://www.tumblr.com/api#api_write | |
# DONE : add read |
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
=begin | |
* Name: commonio.rb | |
* $Id$ | |
* Description Common io routine ncurses (old) | |
* Author: rkumar | |
* Date: 2008-11-13 13:33 | |
* License: | |
Same as Ruby's License (http://www.ruby-lang.org/LICENSE.txt) | |
=end |
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
#*******************************************************# | |
# Note: all method here require the presence of a footer_win | |
# and header_win to have been created, | |
# with the exception of print_help_page. | |
# | |
# Arunachalesha | |
# $Id$ # | |
#*******************************************************# | |
module Commons1 |
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
#!/usr/bin/gawk -f | |
# | |
# 2007.07.10 v1.0 - initial release | |
# 2007.10.21 v1.1 - youtube changed the way it displays vids | |
# 2008.03.01 v1.2 - youtube changed the way it displays vids | |
# 2008.08.28 v1.3 - added a progress bar and removed need for --re-interval | |
# 2009.08.25 v1.4 - youtube changed the way it displays vids | |
# 2010.04.05 - youtube changes video_url format | |
# | |
# Peteris Krumins (peter@catonmat.net) |
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
#!/usr/bin/env ruby -w | |
# A module that helps in printing colored output onto the console. | |
# Preferable to use highline gem. For small usage, you can just cut | |
# paste this module into your program and include it. | |
# Most of this is stolen from the highline project. | |
module Color | |
CLEAR = "\e[0m" | |
# An alias for CLEAR. | |
RESET = CLEAR |
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
#!/usr/bin/env ruby | |
# Color constants so we can print onto console using print or puts | |
# @example | |
# string = "hello ruby" | |
# puts " #{RED}#{BOLD}#{UNDERLINE}#{string}#{CLEAR}" | |
# | |
# ripped off highline gem | |
module ColorConstants |