- 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
# drops to imedo.de | |
class ApplicationController < ActionController::Base | |
around_filter :log_crawlers, :unless => :logged_in? | |
def log_crawlers | |
action_start = Time.now | |
yield | |
duration = Time.now - action_start | |
Crawling.log(request, duration) | |
end | |
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
HDCP MASTER KEY (MIRROR THIS TEXT!) | |
This is a forty times forty element matrix of fifty-six bit | |
hexadecimal numbers. | |
To generate a source key, take a forty-bit number that (in | |
binary) consists of twenty ones and twenty zeroes; this is | |
the source KSV. Add together those twenty rows of the matrix | |
that correspond to the ones in the KSV (with the lowest bit | |
in the KSV corresponding to the first row), taking all elements |
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] |
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
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
#!/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
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
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} |