This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
<?php | |
/** | |
* Plugin Name: Disable XMLRPC | |
* Version: 0.1 | |
* Plugin URI: http://wpengineer.com/?p=2484 | |
* Description: Disable XMLRPC server for WP >= v3.5 | |
* Author: Lutz Schröer | |
* Author URI: http://elektroelch.net/ | |
*/ |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
>>> class Madness(dict): | |
... def __setitem__(self, attr, value): | |
... if isinstance(value, type): | |
... value.__name__ = attr | |
... dict.__setitem__(self, attr, value) | |
... | |
>>> code = """\ | |
... class Example(object): pass | |
... NewName = Example | |
... print(Example.__name__) |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
The pricing should be ~3$ for the first year (assuming 30GB upload per month). See here for more details.
This is a guide on how to email securely.
There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.
This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.
Here is an incomplete list of things that are different from other approaches:
#!/boot/bzImage | |
# Linux kernel userspace initialization code, translated to bash | |
# (Minus floppy disk handling, because seriously, it's 2017.) | |
# Not 100% accurate, but gives you a good idea of how kernel init works | |
# GPLv2, Copyright 2017 Hector Martin <[email protected]> | |
# Based on Linux 4.10-rc2. | |
# Note: pretend chroot is a builtin and affects the current process | |
# Note: kernel actually uses major/minor device numbers instead of device name |