Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Matthias Tarasiewicz parasew

🎯
Focusing
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am parasew on github.
  • I am parasew (https://keybase.io/parasew) on keybase.
  • I have a public key ASBf-1Wm-0CuO5wCe-I8B3KOE4opJObQTIwxHaEgMliiSwo

To claim this, I am signing this object:

View compile-nginx.sh
########################################
#
# Nginx 1.8.0
# Pagespeed v.1.9.32.6
# OpenSSL 1.0.2d
# - Tested on Ubuntu 14.4.2
#
########################################
View 7za and xz compressions
7za a -mx9 -r -slt -mmt=on -mfb=257 -ms=on ./read_7.7z ./read
tar cvvv infiles | xz -f -9 -e --lzma2=nice=273 > output.tar.xz
@parasew
parasew / rack-steamroller.rb
Created Jan 28, 2011
steamrolling: removing newlines and spaces from all html output (rack)
View rack-steamroller.rb
# code via techiferous ( https://github.com/techiferous )
require 'nokogiri'
module Rack
class Steamroller
def initialize(app, options = {})
@app = app
@options = options
@parasew
parasew / delete_all_gems.sh
Created Jan 25, 2010
delete all gems on a machine in a batch
View delete_all_gems.sh
gem list --no-versions | xargs gem uninstall -a -I
@parasew
parasew / deploying_rails_apps.txt
Created Jan 25, 2010
deploying rails apps with all gems
View deploying_rails_apps.txt
INFO ON HOW TO DEPLOY APP WITH ALL GEMS+BINARY GEMS.
*freezing the app:*
rake rails:freeze:gems
rake gems:unpack
rake gems:refresh_specs
rake gems:build
rake gems:unpack:dependencies
rake gems:refresh_specs
@parasew
parasew / .gitignore
Created Jan 25, 2010
.gitignore file about what to ignore in a new rails app
View .gitignore
Capfile
config/deploy.rb
config/database.yml
log/*.log
**/*.spec.log
db/*.sqlite3
db/schema.rb
tmp/cache/*
tmp/pids/*
tmp/sessions/*