(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#! /bin/bash | |
# script to backup MySQL data to remote server | |
# James Hannah - January 2009 | |
# set some variables | |
FILENAME="`date +mysqldump-%Y-%m-%d-%H:%M:%S`.sql" | |
LOCALFILE="/home/sql_backup/$FILENAME" | |
LOCKFILE="/tmp/sqlbackup.lock" | |
BACKUPSERVER="10.1.1.1" | |
MYSQLPASS="secretsgohere" |
#!/usr/bin/env python | |
# | |
# Very basic example of using Python and IMAP to iterate over emails in a | |
# gmail folder/label. This code is released into the public domain. | |
# | |
# RKI July 2013 | |
# http://www.voidynullness.net/blog/2013/07/25/gmail-email-with-python-via-imap/ | |
# | |
import sys | |
import imaplib |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
public class ScrollTextView extends TextView { | |
public ScrollTextView(Context context) { | |
super(context); | |
} | |
public ScrollTextView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} |
# use ImageMagick convert | |
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
These are my notes on how to set up GPG with the private key stored on the hardware Yubikey. This will reduce the chances of your GPG private key from being stolen, and also allow you to protect other secrets such as SSH private keys.
It's just some notes and a partial worklog for now, but I may turn it into a full blog post later.