- http://www.quora.com/What-kind-of-technology-does-Filecatalyst-and-Aspera-uses-to-fast-file-transfers
- http://serverfault.com/questions/300086/file-transfer-alternatives
- http://serverfault.com/questions/111813/what-is-the-best-way-to-transfer-a-single-large-file-over-a-high-speed-high-lat
- http://forums.smallnetbuilder.com/showthread.php?t=10950
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
class Zodiac | |
SIGNS = [ | |
[:aries, [21,3,20,4]], | |
[:taurus, [21,4,20,5]], | |
[:gemini, [21,5,20,6]], | |
[:cancer, [21,6,22,7]], | |
[:leo, [23,7,22,8]], | |
[:virgo, [23,8,22,9]], | |
[:libra, [23,9,22,10]], | |
[:scorpio, [23,10,21,11]], |
sudo rm -rf /Library/LaunchDaemons/homebrew.mxcl.mongodb.plist sudo cp /usr/local/Cellar/opt/mongodb/homebrew.mxcl.mongodb.plist /Library/LaunchDaemons/homebrew.mxcl.mongodb.plist sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.mongodb.plist sudo launchctl start homebrew.mxcl.mongodb
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
# gem install contacts | |
# >> remove "require 'jcode' " in gdata gem, if on ruby 1.9 | |
require 'rubygems' | |
require 'contacts' | |
CONTACTS_SCOPE = 'http://www.google.com/m8/feeds/' | |
CONTACTS_FEED = CONTACTS_SCOPE + 'contacts/default/full/?max-results=1000' | |
@client = GData::Client::Contacts.new |
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
### install qpress from here: http://www.quicklz.com/ | |
# wget http://www.quicklz.com/qpress-11-linux-x64.tar | |
# tar xvf qpress-11-linux-x64.tar | |
## switch nc to traditional on ubuntu: | |
>sudo update-alternatives --config nc | |
There are 2 choices for the alternative nc (providing /bin/nc). | |
Selection Path Priority Status | |
------------------------------------------------------------ |
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 | |
# encoding: UTF-8 | |
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
url = "http://rss.dw.de/xml/DKpodcast_audiotrainer_de" | |
filename = "DKpodcast_audiotrainer_de" | |
unless File.exists?(filename) | |
`wget #{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
#!/usr/bin/env ruby | |
require 'twitter' | |
require 'dbm' | |
# https://dev.twitter.com/apps | |
# https://dev.twitter.com/apps/{some_id}/show -> (OAuth settings + Your access token) | |
CONSUMER_KEY = "_" | |
CONSUMER_SECRET = "_" | |
OAUTH_TOKEN = "_" |
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
# encoding : utf-8 | |
#!/usr/bin/env ruby | |
require 'openssl' | |
require 'digest/sha1' | |
require 'base64' | |
require 'date' | |
require 'uri' | |
class S3; end | |
class << S3 |
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
Total: 96 samples | |
14 14.9% 14.9% 15 16.0% Kernel#require_without_backports | |
12 12.8% 27.7% 12 12.8% garbage_collector | |
10 10.6% 38.3% 10 10.6% Hash#[]= | |
7 7.4% 45.7% 42 44.7% Kernel#gem_original_require | |
6 6.4% 52.1% 6 6.4% File.file? | |
5 5.3% 57.4% 5 5.3% File.read | |
4 4.3% 61.7% 4 4.3% Hash.[] | |
4 4.3% 66.0% 4 4.3% Module#module_eval | |
3 3.2% 69.1% 5 5.3% Module#defentity |
HTML Building:
- Forms:
- Forme: Great simple form building
- HTML
- Tiny: Framework agnostic markup builder, useful for defining view helpers or as a micro templating dsl, plays nice with erb and haml (Examples: http://forme.heroku.com/)