Skip to content

Instantly share code, notes, and snippets.

View therealmarv's full-sized avatar
:octocat:

therealmarv

:octocat:
View GitHub Profile
@therealmarv
therealmarv / pgbouncer
Created March 5, 2015 15:05
/etc/init.d/pgbouncer for Ubuntu 12.04
#!/bin/bash
### BEGIN INIT INFO
# Provides: pgbouncer
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: postgresql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start pgbouncer
@therealmarv
therealmarv / pybossa-rewrite-apache.md
Last active August 29, 2015 14:24
PyBossa Rewrite Apache

Original nginx rewrite lines, just for reference!

location ~ /api/app {
        rewrite ^/api/app /api/project$1 permanent;
}

location ~ /app {
        rewrite ^/app(.*) /project$1 permanent;
}
  UPDATE `NEXUS 5`
     SET `VERSION`='5.1', `BUILD`='LMY47D', `RECOVERY`='CUSTOM', `ROOTED`=1
   WHERE `VERSION`='5.0.1' && `BUILD`='LRX22C' && `RECOVERY`='CUSTOM' && `ROOTED`=1
         && `WANNA_KEEP_USERDATA`=1;

This guide is forked and updated for Android 5.1 OTA from me. Big thanks to the original author eyecatchup and his guide from LRX21O to LRX22C here.

This guide also works without any problems for encrypted phones because data partition is not touched.

# nginx config for A+ SSL Labs rating as of 9-2014
# Broad legacy compatibility including IE8/XP, Android 2.3+, openssl 0.9.8 clients
# Blocks most bot scans IP probes.
#
# *** Assumes: _HOSTNAME_ is replaced ***
#
# Includes OCSP stapling, HSTS Strict Transport security,
# session resumption, legacy backwards compatibility (XP, Android 2.3-4.3)
#
# Requires nginx 1.6.x. See: http://nginx.org/en/linux_packages.html, e.g.:
@therealmarv
therealmarv / paralles8ubuntu.md
Last active August 29, 2015 13:59
My Parallels 8 experience on OS X 10.9 and why I cannot recommend it for Linux developers.

#My Parallels 8 experience on OS X 10.9 and why I cannot recommend it for Linux developers.

Every Ubuntu 12.04 LTS downloaded through Parallels 8 will show this message after a while:

Parallels Tools error

Because I'm getting this error reproducable on every Ubuntu VM on Parallels 8 I can only guess that support for old Parallels versions are not getting enough attention (maybe this also happens on Parallels 9?).

How to reproduce this error:

  • Install Parallels 8 (Parallels 9 is untested because I will not spend one cent more on Parallels).