Skip to content

Instantly share code, notes, and snippets.

View therealmarv's full-sized avatar
:octocat:

therealmarv

:octocat:
View GitHub Profile
@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).
# 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.:
  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.

@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;
}
@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 / private.xml
Last active December 20, 2015 15:29 — forked from erotte/private.xml
fix white space typo
<?xml version="1.0"?>
<!-- Key Mappimgs for http://pqrs.org/macosx/keyremap4macbook/ -->
<root>
<item>
<name>German Umlaute on US Keyboard Layout with ALT modifier</name>
<appendix>Change Option+o to ö</appendix>
<appendix>Change Option+a to ä</appendix>
<appendix>Change Option+u to ü</appendix>
<appendix>Change Option+e to €</appendix>
<identifier>remap.org.openhort.german_umlaute_with_ALT_modifier</identifier>
server {
listen 80;
server_name konklone.com;
return 301 https://$host$request_uri;
}
# optional: the 'spdy' at the end of the listen command below turns on SPDY support.
server {
listen 443 ssl spdy;
@therealmarv
therealmarv / travis submodule handling
Created November 19, 2016 19:12
travis submodule handling
git:
submodules: false
before_install:
- git submodule update --init --recursive
@therealmarv
therealmarv / input.xml
Created March 18, 2019 17:16
input.cnxml
<?xml version="1.0"?>
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml" xmlns:bib="http://bibtexml.sf.net/" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:q="http://cnx.rice.edu/qml/1.0" xmlns:data="http://www.w3.org/TR/html5/dom.html#custom-data-attribute" id="new" cnxml-version="0.7" module-id="new">
<title>Long Desc test</title>
<content>
<section id="eip-220"><media id="eip-idm1388625936" alt="An image comparing the functions of the parasympathetic nervous system to the central nervous system." longdesc="35-4-2-longdesc.txt">
<image mime-type="image/jpeg" src="Figure_35_04_02.jpg"/>
</media>
@therealmarv
therealmarv / output.html
Created March 18, 2019 17:18
output.xhtml
<body
data-cnxml-to-html-ver='v0.test'
xmlns='http://www.w3.org/1999/xhtml'
xmlns:bib='http://bibtexml.sf.net/'
xmlns:c='http://cnx.rice.edu/cnxml'
xmlns:data='http://www.w3.org/TR/html5/dom.html#custom-data-attribute'
xmlns:md='http://cnx.rice.edu/mdml'
xmlns:mod='http://cnx.rice.edu/#moduleIds'
xmlns:qml='http://cnx.rice.edu/qml/1.0'
>