- do not improve Rails skills, instead:
- OO
- Ruby
- Design
- ...
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
# Rake task to launch multiple Resque workers in development/production with simple management included | |
require 'resque/tasks' # Require Resque tasks | |
namespace :workers do | |
# = $ rake workers:start | |
# | |
# Launch multiple Resque workers with the Rails environment loaded, | |
# so they have access to your models, 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
javascript:v=document;b=v.body;var m;if(!m){d=v.createElement('iframe');d.a=d.setAttribute;d.a('style','position:fixed;left:0;top:0;width:402px');d.a('src','//j.mp/meP7zk');b.appendChild(d);m=1}else{b.removeChild(d);m=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
class SphinxBeta <Formula | |
url 'http://sphinxsearch.com/files/sphinx-1.10-beta.tar.gz' | |
homepage 'http://www.sphinxsearch.com' | |
md5 '5b52ce9e93a73c66d37bc3a2402f14fa' | |
head 'http://sphinxsearch.googlecode.com/svn/trunk/' | |
def install | |
fails_with_llvm "fails with: ld: rel32 out of range in _GetPrivateProfileString from /usr/lib/libodbc.a(SQLGetPrivateProfileString.o)" | |
config_args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"] |
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
#!/usr/bin/env ruby | |
def cmd(cmd) | |
puts cmd; system(cmd) | |
end | |
cmd "echo 'deb http://apt.opscode.com/ lenny main' | tee /etc/apt/sources.list.d/opscode.list" | |
cmd "wget -qO - http://apt.opscode.com/[email protected] | apt-key add -" | |
cmd "aptitude -y update" | |
cmd "aptitude -y install git-core htop" |
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
export VPS=YOUR.IP.ADDRESS.HERE | |
function initialize { | |
rm .ssh/known_hosts | |
server=${1:=${VPS}} | |
role=$2 | |
: ${role:=rails} | |
ssh-copy-id -i ~/.ssh/id_rsa root@$server | |
ssh root@$1 "wget http://github.com/sid137/chef-repo/raw/master/install.sh -O install.sh && /bin/bash -x install.sh ${role}" |
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
Mobiltelefon-Support: mikezter. Willkommen beim LG Live Chat, wie können wir Ihnen helfen? | |
mikezter: Hallo! Der touchscreen meines telefons funktioniert nicht richtg. | |
mikezter: bei einer echten tastatur würde ich sagen "die taste ist eingeklemmt" | |
Mobiltelefon-Support: Wir gehen in diesem Fall von einem techn. Defekt aus.Es gibt fuer Sie zwei Moeglichkeiten. Entweder lassen wir das Telefon bei Ihnen zur Instandsetzung abholen oder Sie kontaktieren Ihren Haendler mit der Bitte um einen Geraetetausch bzw der Reparaturabwicklung.Im Falle einer Abholung bei Ihnen koennen wir einen Tag (Mo. - Fr.) terminieren, genauer jedoch nicht. Es muesste also ganztaegig jemand erreichbar sein. | |
mikezter: kann es ein softwareproblem sein? | |
mikezter: ist die abholung durch die garantie abgedeckt? | |
mikezter: und die reparatur? | |
mikezter: und wielange dauert das dann? | |
mikezter: zu meinem händler kann ich nicht, ich habe das gerät in mexico gekauft | |
Mobiltelefon-Support: In diesem Fall besteht in Deutschland leider kein Garantieanspruch |
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
def method;"def method;;end;puts method()[0, 11] + 34.chr + method + 34.chr + method()[11, method.length-11]";end;puts method()[0, 11] + 34.chr + method + 34.chr + method()[11, method.length-11] |