Skip to content

Instantly share code, notes, and snippets.

View therealmarv's full-sized avatar
:octocat:

therealmarv

:octocat:
View GitHub Profile
# 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).
@therealmarv
therealmarv / checkopenssl.md
Last active October 12, 2021 19:14
Check OpenSSL version from Python

Open python

python

and type

>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.0.1g 7 Apr 2014'
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 / 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>