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
# | |
# Rails 3 Version | |
# - ported to rails3 | |
# - optimize javascript | |
# | |
# setup/usage: | |
# 1. copy to RAILS_ROOT/app/middleware/ | |
# 2. application.rb ... config.middleware.use 'RoutesJs' | |
# 3. Layoutfile: <%= javascript_include_tag 'routes' %> | |
# 4. js usage: category_url({ slug:'test',format:'json', page:2 }) |
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
/* | |
* Simple Infinite Carousel - jQuery Version | |
* | |
* Released on 11th December 2011. | |
* | |
* Copyright (c) 2010-2011 René Kersten, http://pixel-webarts.de | |
* | |
* Licensed under the terms of MIT License. | |
* | |
*/ |
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
/* | |
* Mosaic - jQuery Version | |
* | |
* Released on 21th December 2011. | |
* | |
* Copyright (c) 2010-2011 René Kersten, http://pixel-webarts.de | |
* | |
* Licensed under the terms of MIT License. | |
* | |
*/ |
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
# found at http://pastebin.com/9aW75CUi | |
for i in $(find config -name '*yml'); do curl --data-urlencode yaml'@'$i -d utf8='%E2%9C%93' -d commit=Go http://yamllint.com/ --trace-ascii out -G 2>&1 | egrep 'div.*background-color'; done | |
#OR | |
for i in $(find config -name '*yml') | |
do | |
curl --data-urlencode yaml'@'$i -d utf8='%E2%9C%93' -d commit=Go http://yamllint.com/ --trace-ascii out -G 2>&1 | egrep 'div.*background-color' |
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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
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 'fileutils' | |
require 'feedzirra' | |
require 'googl' | |
require 'twitter' | |
Twitter.configure do |config| | |
config.consumer_key = CONSUMER_KEY | |
config.consumer_secret = CONSUMER_SECRET |
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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential git-core libssl-dev | |
# Install rbenv | |
RBENV_ROOT=/opt/rbenv | |
git clone https://github.com/sstephenson/rbenv.git $RBENV_ROOT |
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
$(document).bind('drop dragover', function (e) { | |
e.preventDefault(); | |
}); |
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/ruby | |
require 'rubygems' | |
require 'snmp' | |
include SNMP | |
@results = Array.new | |
# Interface speed in mbps | |
interface_speed = 10000 | |
def get_snmp |
OlderNewer