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
Processing ClientsController#show (for 93.186.60.190 at 2009-09-01 08:31:13) [GET] | |
Parameters: {"action"=>"show", "id"=>"183", "controller"=>"clients"} | |
Rendering template within layouts/application | |
Rendering clients/show | |
ActionView::TemplateError (undefined method `edit_array_path' for #<ActionView::Base:0x7f2e030213d0>) on line #9 of app/views/projects/_project.html.haml: | |
6: .header | |
7: = progress_bar project.completeness | |
8: | |
9: .date= "#{d project.starts_at} - #{d project.ends_at}" |
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/env ruby | |
require File.dirname(__FILE__) + "/../../config/environment" | |
$running = true | |
$working = false | |
Signal.trap("TERM") do | |
$stderr.puts "#{Time.now.to_s(:db)}\tGot TERM, exiting..." | |
$running = 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
check process pokerru-aff-21000 with pidfile /var/www/poker.ru/affiliates/shared/pids/thin.21000.pid | |
start program = "/usr/bin/env RAILS_ENV=production thin -d -s3 -o21000 -C /var/www/poker.ru/affiliates/current/config/thin/production.yml -R /var/www/poker.ru/affiliates/current/config.ru start" as uid kurumo and gid users with timeout 60 seconds | |
stop program = "/usr/bin/env RAILS_ENV=production thin -d -s3 -o21000 -C /var/www/poker.ru/affiliates/current/config/thin/production.yml -R /var/www/poker.ru/affiliates/current/config.ru stop" as uid kurumo and gid users | |
if cpu > 60% for 2 cycles then alert | |
if cpu > 80% for 5 cycles then restart | |
if totalmem > 200.0 MB for 5 cycles then restart | |
if loadavg(5min) greater than 10 for 8 cycles then restart | |
if failed port 21000 then restart | |
if 3 restarts within 5 cycles then timeout | |
group pokerru-aff |
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 'aasm' | |
class User < ActiveRecord::Base | |
acts_as_authentic | |
acts_as_authorization_subject | |
include AASM | |
has_and_belongs_to_many :roles | |
has_and_belongs_to_many :trackers | |
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
Factory.sequence :login do |n| | |
"user#{n}" | |
end | |
Factory.define :user do |user| | |
user.login { Factory.next(:login) } | |
user.email { |u| "#{u.login}@nowhere.com" } | |
user.created_at Time.now | |
user.password 'foobar' | |
user.password_confirmation 'foobar' |
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
#!/bin/bash | |
# Config | |
DATABASES="database1 database2 database3" # names of DBs to back up | |
PWD="password" # mysql root's password | |
BACKUPS_DIR="~/backups/daily" # where to | |
# current date | |
CURDATE="$(date +'%Y%m%d')" | |
ssh username@server"mkdir -p $BACKUPS_DIR/$CURDATE/" |
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
# Brands | |
Icon | |
http://www.rideicon.com/ | |
Scorpion | |
http://www.scorpionusa.com/ | |
http://www.scorpionsports.eu/ (helmets only) | |
Shift | |
http://shiftracing.com | |
Alpine Stars |
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 89c418f2734e89e902aca2111ad7e3e6186db907 Mon Sep 17 00:00:00 2001 | |
From: Robin Lu <iamawalrus@gmail.com> | |
Date: Tue, 8 Jul 2008 16:06:33 +0800 | |
Subject: [PATCH] fix build on mac os x | |
--- | |
src/Makefile.am | 2 +- | |
src/network.c | 167 ----------------------------------------------- | |
src/network_backends.c | 169 ++++++++++++++++++++++++++++++++++++++++++++++++ | |
3 files changed, 170 insertions(+), 168 deletions(-) |
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
--- tidybuf.rb 2007-04-10 09:09:01.000000000 -0500 | |
+++ tidybuf.rb.patched 2007-04-10 09:08:55.000000000 -0500 | |
@@ -11,6 +11,7 @@ | |
# Mimic TidyBuffer. | |
# | |
TidyBuffer = struct [ | |
+ "int* allocator", | |
"byte* bp", | |
"uint size", | |
"uint allocated", |
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
The MIT License (MIT) | |
Copyright (c) 2015 Oleg Ivanov http://github.com/morhekil | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |