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
# | |
# Lists of pending task rude way !!! | |
# | |
require 'rubygems' | |
require 'rbosa' | |
things = OSA.app( 'Things' ).to_dos.find_all { |task| puts( task.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
require 'rubygems' | |
require 'rest_client' | |
require 'json' | |
require 'pp' | |
url="http://bit.ly/6wS8Td" | |
pp JSON.parse( RestClient.get( "http://api.tweetmeme.com/url_info.json?url=#{url}" ) ) |
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
require 'rubygems' | |
require 'rest_client' | |
require 'json' | |
require 'pp' | |
module Tweetmeme | |
BASE_URL="http://api.tweetmeme.com/url_info.json" | |
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 | |
NGINX_BASE_DIR="/opt/nginx" | |
NGINX_DAEMON="${NGINX_BASE_DIR}/sbin/nginx" | |
NGINX_CONF="${NGINX_BASE_DIR}/conf/nginx.conf" | |
__launch_signal( ) { | |
${NGINX_DAEMON} -s ${1} &>/dev/null | |
} |
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
port list installed|grep -v active|xargs sudo ports uninstall |
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 -W0 | |
# | |
# See this article first: http://bit.ly/fKcVTR | |
# | |
require 'digest/md5' | |
if( __FILE__ == $0 ) | |
`airport --scan`.each_line do |line| |
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
require 'rubygems' | |
require 'rack' | |
require 'ohai' | |
class OhaiRack | |
def initialize() | |
@o = Ohai::System.new | |
@o.all_plugins | |
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
require 'readline' | |
stty_save = `stty -g`.chomp | |
trap('INT') { system('stty', stty_save); exit } | |
LIST = [ | |
'search', | |
'download', | |
'open', |
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
# vim:sh | |
JRUBY_VERSION=${1:-"1.6.3"} | |
TORQUEBOX_GEMSET="torquebox" | |
RUBIES_BASE=${HOME}/.rvm/rubies | |
## | |
# Set the Torquebox environment | |
# | |
set_torquebox_environment() { |
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 | |
module DropQuest2012 | |
class Console | |
def self.get_values(*messages) | |
values = {} | |
messages.each do |message| |
OlderNewer