gem 'remote_syslog_logger'
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
from fabric.api import * | |
""" | |
Base configuration | |
""" | |
env.project_name = '$(project)' | |
env.database_password = '$(db_password)' | |
env.site_media_prefix = "site_media" | |
env.admin_media_prefix = "admin_media" | |
env.newsapps_media_prefix = "na_media" |
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 | |
LOGIN, PASSWORD = 'your_number', 'your_password' | |
require 'rubygems' | |
require 'mechanize' | |
agent = Mechanize.new | |
agent.get 'https://wireless.att.com' | |
login = agent.page.forms_with(:name=>'loginActionForm').first |
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
.idea/* | |
*.pyc |
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
## DNS | |
@dns = Fog::DNS.new(:provider => 'Linode', :linode_api_key => LINODE_KEY) | |
if @zone = @dns.zones.all.find { |z| z.domain == ZONE } | |
puts "Found zone #{@zone.inspect}" | |
else | |
@zone = @dns.zones.create(:domain => ZONE, :email => ZONE_EMAIL) | |
puts "Creating zone #{@zone.inspect}" | |
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 'fog' | |
require 'net/ssh' | |
require 'net/scp' | |
def upload_file(host, user, password, source, dest, print_progress = true) | |
Net::SSH.start(host, user, :password => password) do |ssh| | |
puts "Uploading file... (#{File.basename(source)})" | |
ssh.scp.upload!(source, dest) do |ch, name, sent, total| | |
if print_progress |
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf
using homebrew.
Add the following chunk to your existing ISC dhcpd.conf
file.
if exists user-class and ( option user-class = "iPXE" ) {
filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
filename "undionly.kpxe";
}
(or see https://gist.github.com/4008017 for a more elaborate setup
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 PrettyJson | |
def self.dump(object) | |
JSON.pretty_generate(object, {:indent => " "}) | |
end | |
end | |
# config/initializers/rabl_init.rb | |
Rabl.configure do |config| | |
# Commented as these are defaults | |
# config.cache_all_output = false |
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 cwd_user set credential = concat('{MD5}', | |
utl_raw.cast_to_varchar2(utl_encode.base64_encode | |
(dbms_obfuscation_toolkit.md5 (input => utl_raw.cast_to_raw('password'))))) | |
where directory_id = (select id from cwd_directory where lower_directory_name = 'user-md5-directory') | |
/ |
OlderNewer