Skip to content

Instantly share code, notes, and snippets.

View klaemo's full-sized avatar

Clemens Stolle klaemo

View GitHub Profile
@klaemo
klaemo / style.css
Last active August 29, 2015 14:14
understandinges6
body {
font-family: Georgia, serif;
color: #222;
line-height: 1.5;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@klaemo
klaemo / index.html
Created July 23, 2014 22:38
stackenblochen mobile
<!-- in den <head> -->
<meta name="viewport" content="width=device-width, initial-scale=1">
@klaemo
klaemo / main.css
Last active August 29, 2015 14:04
holgi's blog
/* ganz ans Ende der main.css */
body {
margin: 0;
padding: 14px;
font-family: Georgia, serif;
font-size: 16px;
color: #222;
line-height:1.5;
background-color:white;
background-position: top left;
@klaemo
klaemo / transaction.js
Created June 3, 2014 14:01
transaction
{
"product": "product-id",
"from": "storage",
"to": "sold",
"volume": 10
}
// or
{
"product": "product-id",
"from": "delivery",
@klaemo
klaemo / gist:d287654447f2bce0b7b5
Created May 11, 2014 14:27
couchdb permissions
root@24e94f9f65f8:/# ls -l /usr/local/var/lib/
total 4
drwxrwxrwx 2 couchdb couchdb 4096 May 10 14:58 couchdb
root@24e94f9f65f8:/# sudo -i -u couchdb couchdb
sudo: unable to change directory to /usr/local/var/lib/couchdb: Permission denied
root@24e94f9f65f8:/#
@klaemo
klaemo / gist:10389088
Created April 10, 2014 14:36
docker ubuntu ssl error
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libssl-dev : Depends: libssl1.0.0 (= 1.0.1-4ubuntu3) but 1.0.1-4ubuntu5.12 is to be installed
Recommends: libssl-doc but it is not going to be installed
@klaemo
klaemo / http.log
Created March 5, 2014 16:21
CouchDB + stud: https vs. http
ab -n 100 -k http://klaemo.me:5984/test/hello
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking klaemo.me (be patient).....done
Server Software: CouchDB/1.5.0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.13.3-tinycore64 (root@11238c149617) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #1 SMP Wed Feb 19 01:15:06 UTC 2014
Command line: loglevel=3 user=docker console=ttyS0 console=tty0 nomodeset norestore base initrd=/boot/initrd.img BOOT_IMAGE=/boot/vmlinuz64
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x000000003ffeffff] usable
VirtualBox VM 4.3.8 r92456 darwin.amd64 (Feb 25 2014 18:04:29) release log
00:00:00.995066 Log opened 2014-02-26T14:54:00.135741000Z
00:00:00.995068 Build Type: release
00:00:00.995083 OS Product: Darwin
00:00:00.995090 OS Release: 13.1.0
00:00:00.995096 OS Version: Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64
00:00:00.995307 DMI Product Name: MacBookPro7,1
00:00:00.995416 DMI Product Version: 1.0
00:00:00.995426 Host RAM: 8192MB total, 5046MB available
00:00:00.995429 Executable: /Applications/VirtualBox.app/Contents/MacOS/VirtualBoxVM
@klaemo
klaemo / setup-docker-on-ubuntu.sh
Created February 8, 2014 12:55
Setup docker on ubuntu
printf '\e[1;34m%b\e[m' "\nInstalling Docker...\n"
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sh -c "echo deb http://get.docker.io/ubuntu docker main\
> /etc/apt/sources.list.d/docker.list"
apt-get -y update
apt-get -y install lxc-docker
printf '\e[1;34m%b\e[m' "\nConfiguring firewall for Docker...\n"