I hereby claim:
- I am zealot128 on github.
- I am stefanwienert (https://keybase.io/stefanwienert) on keybase.
- I have a public key whose fingerprint is DB9A C627 56EF 892A 35D9 727E 2630 9489 C29F E67F
To claim this, I am signing this object:
$ -> | |
$(document).on 'click', '.js-modal, #js-modal .modal-body a', (e)-> | |
return true if $(this).data('toggle') | |
e.preventDefault() | |
modal = """ | |
<div class='modal fade container' id='js-modal' role="dialog" > | |
<div class='no-modal-dialog'> | |
<div class='modal-content'> | |
<div class='modal-header'> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
require 'active_record' | |
require 'fileutils' | |
ActiveRecord::Base.logger = Logger.new(STDERR) | |
db = "db/#{ENV['RACK_ENV']}.sqlite3" | |
if not File.exists? db | |
`sqlite3 #{db} '' ` | |
end |
I hereby claim:
To claim this, I am signing this object:
# Download latest Drupal | |
version="7.12" | |
wget http://ftp.drupal.org/files/projects/drupal-$version.tar.gz | |
tar xf drupal-$version.tar.gz | |
mv drupal-$version/.* . -f | |
mv drupal-$version/* . | |
rm drupal-$version.tar.gz -rf drupal-$version | |
rm *txt -f | |
wget http://ftp.drupal.org/files/translations/7.x/drupal/drupal-7.11.de.po -O profiles/standard/translations/drupal-7.11.de.po | |
chown www-data\: sites/default/ -R |
# encoding: utf-8 | |
def download_url(url) | |
url.gsub!(" ","%20") | |
# TODO better escaping of stuff like umlauts | |
# url.gsub!("ö","%C3%B6") | |
logo_path = url.split("/").last | |
io = open(url) | |
io.define_singleton_method(:original_filename) do | |
logo_path |
# paste into ~/.earthquake/config | |
Earthquake.init do | |
command :replies do |m| | |
thread = [twitter.status(m[1])] | |
r = twitter.get "/related_results/show/#{273873995647045633}.json" | |
results = r.first["results"].map{|i|i["value"]} | |
results.reverse_each.with_index do |t,i| | |
t["_mark"] = config[:thread_indent] * i |
Needs imagemagick + pngquant
favicon_logo_big.png
in the same folder as source.sh,bash source.sh
app/assets/images/favicons