2012
05.17

Blockupy

Liedermacher Konstantin Wecker sagte auf dem Paulsplatz: “So wie es aussieht, erleben wir hier den Anfang eines Begräbnisses demokratischer Rechte.” Er frage sich, warum in den vergangenen Jahren so viele Nazis demonstrieren durften, hier aber alle Demonstrationen verboten worden seien.

2012
05.14

OpenSSL: MD5 Verification of Key, CSR and Certificate

openssl rsa -noout -modulus -in foo.key | openssl md5
openssl req -noout -modulus -in foo.csr | openssl md5
openssl x509 -noout -modulus -in foo.crt | openssl md5

2012
05.13

SSH Forwarding Cheatsheet

Local Forwarding (this will make it possible to connect to localhost:8000 in order to access remotehost:8000):
ssh -L 8000:localhost:8000 remotehost

Remote Forwarding – remotehost will be able to access TCP port 80 on the local machine by connecting to “127.0.0.1:8000″:
ssh -R 127.0.0.1:8000:127.0.0.1:80 remotehost

2012
04.20

Gerade eben in #php@freenode

Auf die Frage, was es denn mit diesem PHP-Bug hier auf sich hat:

if ('9223372036854775807' == '9223372036854775808') { echo "foo!\n"; }

bekam ich diese Antwort hier:

16:50 [@TXC] darkbyte: That particular feature of PHP is off-topic. There are plenty of sites on the Internet that will answer that question for you, including PHP's own bug database. The conversation about "Why" or whether or not it's a good idea are off-topic here.

Na dann…

2012
04.14

python2 -m SimpleHTTPServer 8080

2012
04.11

Archlinux pinentry gpg2 issues

If you get

pinentry: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

when trying to run gnupg2 from console without X, you can force gnupg2 to use pinentry-curses by putting the following into ~/.gnupg/gpg-agent.conf:

pinentry-program /usr/bin/pinentry-curses
no-grab
default-cache-ttl 1800

2012
03.25

Das Kraftfuttermischwerk – Jukebox

Wow. Das hier ist völlig epicst. Ronny hat einfach mal ne Webseite mit all seiner Musik gemacht. Wegen der Lebensfreude. Und weil er die Sache mit den Verwertungsgesellschaften – im Gegensatz zu Sven Regener – verstanden hat.

http://dkfmw.de/

2012
03.24

HTTP response codes for dummies

50x: we fucked up
40x: you fucked up
30x: ask that dude over there
20x: cool

2012
03.24

Arch Linux: bash-completion-1.99-1 bug fix

/etc/bash_completion does no longer exist when upgrading bash-completion to 1.99-1, so we have to source /usr/share/bash-completion/bash_completion to regain bash completion functionality. I consider this a packager bug. However, here’s a workaround for .bashrc to just source the bash_completion file in /usr if we happen to be on such an installation.

# work around because eric doesn't find it necessary
# to take care about /etc/bash_completion
if [ ! -e /etc/bash_completion ]; then
if [ -e /usr/share/bash-completion/bash_completion ]; then
source /usr/share/bash-completion/bash_completion
fi
fi

2012
03.18

Just installing CentOS on a fresh VM with 512MB RAM here, and there seems to be no possibility to tell the installer to create a custom disk layout when not using the graphical installer (which you can’t use because the installer will fall back to non-graphical mode with 512MB RAM). Even when manually partitioning the disk from the commandline on tty2, you just can’t tell the installer to use that already created custom layout, and it will just puke all over it and force the defaults (seperate LVM for / and /home; /boot 400MB) on you. This is extremely annoying, and forcing me to move from CentOS to something other.

A workaround would be to just use more RAM for the installation only, as RedHat obviously decided that partitioning is only cool for people using a graphical interface to install an operating system, which in turn they decided to be only fitting for people having more than 512MB RAM. RedHat, seriously, give me some of what you had. Seems to be good stuff.