Skip to content

Instantly share code, notes, and snippets.

View ulfklose's full-sized avatar

Ulf K. ulfklose

View GitHub Profile
<style>
div.gallery {
display: flex;
flex-wrap: wrap;
}
div.gallery a {
flex-grow: 1;
object-fit: cover;
margin: 2px;
display: flex;
@ulfklose
ulfklose / LICENSE.txt
Created May 28, 2011 23:36 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@ulfklose
ulfklose / createRecentApplicationsStack
Created April 18, 2011 21:22
Dieser Befehl eingegeben am Terminal unter OS X 10.6 sorgt für einen neuen Stack mit den zuletzt geöffneten Anwendungen.
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
killall Dock
@ulfklose
ulfklose / VE_config
Created February 21, 2011 03:16
Diverse Konfigurationen für VEs
VMGUARPAGES="32768:2147483647" // 128MB Guaranteed
PRIVVMPAGES="64000:65536" // 256MB Burst
VMGUARPAGES="65536:2147483647" // 256MB Guaranteed
PRIVVMPAGES="128000:131072" // 512MB Burst
VMGUARPAGES="131072:2147483647" // 512MB Guaranteed
PRIVVMPAGES="256000:262140" // 1024MB Burst
VMGUARPAGES="262144:2147483647" // 1GB Guaranteed
@ulfklose
ulfklose / redmine_heroku_deploy
Created January 14, 2011 16:49
Deploy Redmine to Heroku
1. Redmine unter http://www.redmine.org/projects/redmine/wiki/download herunterladen
2. Archiv entpacken
3. Ins Verzeichnis wechseln und eine Datei namens .gems mit folgendem Inhalt erstellen:
rails --version 2.3.5
i18n --version 0.4.2
rack --version 1.0.1
faker
random_data
memcached-northscale
@ulfklose
ulfklose / form_mail.rb
Created December 21, 2010 04:47
Valid configuration for Google Apps and Google Mail
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:tls => true,
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => '587',
:domain => "domainname.tld",
:authentication => :plain,
:user_name => "user@domain.tld",
@ulfklose
ulfklose / etherpad_exception
Created December 13, 2010 02:12
This exception appears every time I try to compile Etherpad on Ubuntu with a OpenVZ kernel
java.io.IOException: Cannot run program "cp": java.io.IOException: error=12, Cannot allocate memory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
at Main$$anon$2.copyFile$1((virtual file):252)
at Main$$anon$2.doMake((virtual file):263)
at Main$$anon$2.<init>((virtual file):337)
at Main$.main((virtual file):4)
at Main.main((virtual file))
ssh -L <lokaler Port>:localhost:<Remote-Port> user@Remote-Maschine
@font-face {
font-family: 'League Gothic';
src: url('../assets/LeagueGothic.eot');
src: local('League Gothic'),
url('../assets/LeagueGothic.otf') format('opentype'); // bzw. TrueType anstelle von opentype
}
<div${1:${2: id="$3}${4:class"}}>
$6
</div>$0