Today I learned to use siege.config
to generate a .siegerc
and to use siege
to benchmark the throughput of a website.
sudo apt-get install siege
siege -b -t60S http://my/remote/app
Today I learned to use siege.config
to generate a .siegerc
and to use siege
to benchmark the throughput of a website.
sudo apt-get install siege
siege -b -t60S http://my/remote/app
--------10--------20--------30--------40--------50--------60--------70--------80--------90-------100-------110-------120-------130-------140-------150-------160
This page lets you create HTML by entering text in a simple format that's easy to read and write.
/var
and /opt
for anything you might want.mdadm
package. Chose No Configuration when prompted about postfix
.#!/usr/bin/env ruby | |
# quick and dirty thin init script | |
# | |
# path for thin | |
thin = "/home/someuser/.rvm/gems/ruby-1.8.7-p72@global/bin/thin" | |
config = "config/config.ru" | |
# which dir to run from | |
path = "/srv/thisapp" |
#!/usr/bin/env ruby | |
# thin init script | |
# install to /etc/init.d/thin | |
# crazy debian LSB header stuff | |
### BEGIN INIT INFO | |
# Provides: thin | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs |
class Curl::Mock | |
def initialize(*args) | |
@replay = Curb.replay? | |
@i = Curb.add_instance | |
if replay? | |
puts "Mocking #{args.first}" | |
@data = Curb.get_instance(@i) | |
else | |
@curb = OldCurlEasy.new(*args) | |
log(:initialize, args) |
{ | |
"auto_complete": true, | |
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": | |
[ |
require 'securerandom' | |
require 'benchmark' | |
require 'redis' | |
ruby_hash = Hash.new | |
puts "Creating the ruby hash" | |
puts(Benchmark.measure do | |
1_000_000.times do | |
ruby_hash[SecureRandom.base64(32)] = SecureRandom.base64(64) |
class PhotoFrame | |
constructor: -> | |
@foo = "bar" |