This file contains hidden or 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
execve("/mnt/couchdb/bin/couchdb", ["/mnt/couchdb/bin/couchdb"], [/* 11 vars */]) = 0 | |
brk(0) = 0x9028000 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
mmap2(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f37000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("/etc/ld.so.cache", O_RDONLY) = 3 | |
fstat64(3, {st_mode=S_IFREG|0644, st_size=18327, ...}) = 0 | |
mmap2(NULL, 18327, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f32000 | |
close(3) = 0 | |
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) |
This file contains hidden or 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
adduser install | |
alien install | |
apache-couchdb install | |
apparmor deinstall | |
apparmor-utils deinstall | |
apt install | |
apt-transport-https install | |
apt-utils install | |
aptitude install | |
at install |
This file contains hidden or 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
# include/require this code after loading shoulda | |
# displays the top ten slowest tests | |
module Test | |
module Unit | |
class TestCase | |
def self.method_added(name) | |
return if @ignoring_added_methods | |
@__instrumented_methods ||= {} |
This file contains hidden or 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 'benchmark' | |
require 'redis' | |
require 'memcached' | |
r = Redis.new | |
m = Memcached.new('localhost:11211') | |
watermark = 1000000 | |
Benchmark.bm do |x| |
This file contains hidden or 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
AF-S Zoom 2,8/24-70mm G ED: 21,00 | |
AF-S Zoom 2,8/14-24mm G ED: 21,00 | |
Nikon SB-900 Blitzgerät : 3,00 | |
Calumet Einbeinstativ mit Neiger: 8,00 | |
Bowens Pulsar Funkauslöser: 20,00 * 2 | |
Nikon Ersatzakku: 6,00 | |
Manfrotto Flash Tripod: ~10,00 * 2 | |
------------------------------------------- | |
(incl. insurance + weekend fee) 179,00 |
This file contains hidden or 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
var till = "awesome"; | |
var mathias = "win"; | |
var jan = "relax"; |
This file contains hidden or 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 'redis' | |
require 'benchmark' | |
redis = Redis.new | |
puts redis['test_counter'] | |
redis['test_counter'] = 0 | |
pids = [] | |
20.times do | |
pids << Kernel.fork do |
This file contains hidden or 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
<p>Please <%= link_to "sign in", :controller => 'account', :action => 'login' %> to comment.</p> |
This file contains hidden or 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
# Deprecates the use of the former message interpolation syntax in activerecord | |
# as in "must have %d characters". The new syntax uses explicit variable names | |
# as in "{{value}} must have {{count}} characters". | |
require 'i18n/backend/simple' | |
module I18n | |
module Backend | |
class Simple | |
DEPRECATED_INTERPOLATORS = { '%d' => '{{count}}', '%s' => '{{value}}' } |
This file contains hidden or 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
#Tasks have been added to fully maintain nginx, unicorn, redis, memcached, start resque workers and run any command on any server in the farm. | |
#<pre> | |
#cap nginx:restart # Restart Nginx. | |
#cap nginx:start # Start Nginx. | |
#cap nginx:status # Status of Nginx. | |
#cap nginx:stop # Stop Nginx. | |
#cap nginx:tail_error # Tail the Nginx error logs. | |
#cap unicorn:reload # reload your unicorn servers. | |
#cap unicorn:restart # restart your unicorn servers. | |
#cap unicorn:start # start your unicorn servers. |