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
//@version=3 | |
study("Daily EMAs", overlay=true) | |
sw1 = input(true, title="Show Daily EMA") | |
sw2 = input(true, title="Show Weekly EMA") | |
sw3 = input(true, title="Show Monthly EMA") | |
D1 =security(tickerid, "D", ema(close,50), barmerge.gaps_off, barmerge.lookahead_on) | |
D2 =security(tickerid, "D", ema(close,200), barmerge.gaps_off, barmerge.lookahead_on) | |
W1 =security(tickerid, "W", ema(close,50), barmerge.gaps_off, barmerge.lookahead_on) | |
W2 =security(tickerid, "W", ema(close,200), barmerge.gaps_off, barmerge.lookahead_on) | |
M1 =security(tickerid, "M", ema(close,50), barmerge.gaps_off, barmerge.lookahead_on) |
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
##SCREEN FIRST | |
#This just lets us detatch later without needing to keep terminal connection up | |
$>screen | |
$>cd todelete | |
$>files=* | |
$>for i in $files | |
>do | |
>rm -fr $i | |
>echo $i | |
>sleep 1 |
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
I found the best way to outfox the foxes was to get an old steel rabbit trap, put it in an old car tyre... | |
fill with leaves etc. to conceal the trap. Place dog food inside the rim of the tyre and leave over night. Wallah! | |
Just make sure you calculate the radius of destruction. Trap + chain + length of fox spinning violently. | |
You'll also need a sharp axe and an angry dog. Get the dog to snarl at the trapped fox and the fox will stretch his neck out, focusing on the dog. | |
Whilst this is happening, lift the axe above you head and drop it swiftly on the fox's neck. ( Just make sure you don't miss and cut your foot off.) Enjoy!! |
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
set :mongrel_base_port, 5000 | |
set :mongrel_restart_delay, 30 | |
set :mongrel_count, 2 | |
namespace :mongrel do | |
task :restart, :roles => [:app], :except => {:mongrel => false} do | |
(mongrel_base_port..(mongrel_base_port+mongrel_count)).to_a.each do |port| | |
sudo "/usr/bin/monit restart mongrel_#{monit_group}_#{port}" | |
sleep mongrel_restart_delay | |
end |
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
ey04-s00193 monit.d # monit summary | |
The monit daemon 4.10.1 uptime: 27d 8h 59m | |
Process 'mproxy_reeplay_7000' running | |
Process 'mongrel_reeplay_6000' running | |
Process 'mongrel_reeplay_6001' running | |
Process 'mongrel_reeplay_6002' running | |
Process 'memcache_reeplay_11211' running | |
Process 'dj_reeplay_highprio1' Execution failed | |
Process 'dj_reeplay_highprio2' Execution failed |
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
class Foo | |
property :id, Integer | |
property :name, String | |
property :random_code, Expresion { "(select RAND)" } # uses an sql expresion, | |
(...) | |
end |
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
thor:~ glenn$ samurai update | |
About to update xc88, rd00, ey00, ey01, ey02, sa00, ey03, nr00, ey04, cg00, hc00, ey05, ey06, kg00, za00, gl00 | |
Updating: xc88 | |
Permission denied (publickey). | |
fatal: The remote end hung up unexpectedly | |
Updating: rd00 | |
Permission denied (publickey). | |
fatal: The remote end hung up unexpectedly | |
(etc) |
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
cd src | |
git clone git://github.com/FooBarWidget/passenger.git | |
ls | |
cd passenger/ | |
ls | |
rake | |
ls | |
vi README | |
rake package | |
gem install pkg/passenger-2.1.0 |
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
glenn@balder:~/wrk/merbunity-site$ script/check | |
Loading init file from /home/glenn/wrk/merbunity-site/config/init.rb | |
Loading /home/glenn/wrk/merbunity-site/config/environments/development.rb | |
~ Connecting to database... | |
~ Loaded slice 'MerbAuthSlicePassword' ... | |
~ Parent pid: 1501 | |
~ Compiling routes... | |
~ Activating slice 'MerbAuthSlicePassword' ... | |
~ SELECT 1 | |
Got a SystemExit which was unexpected: exit |