Skip to content

Instantly share code, notes, and snippets.

@vrypan
vrypan / gist:a77e00a37a6e6ca41058
Last active August 29, 2015 14:21
Modify /etc/logrotate.d/rsyslog to archive log files to BigStash
# Read more at http://blog.bigstash.co/2015/05/25/log-archiving-using-logrotate-and-bigstash/
/var/log/syslog
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
postrotate
@vrypan
vrypan / country_codes.py
Created May 12, 2015 14:37
Country Codes accepted by Braintreepayments.com as a python tuple.
# -*- coding: utf-8 -*-
# Country codes accepted by Braintreepayments.com
# https://developers.braintreepayments.com/javascript+python/reference/general/countries
countries = (
('Afghanistan','AF','AFG','4'),
('Åland','AX','ALA','248'),
('Albania','AL','ALB','8'),
('Algeria','DZ','DZA','12'),
@vrypan
vrypan / gist:9399295
Last active August 29, 2015 13:57
keybase.md
### Keybase proof
I hereby claim:
* I am vrypan on github.
* I am vrypan (https://keybase.io/vrypan) on keybase.
* I have a public key whose fingerprint is 991C D46D A6C0 12FB D66E C2DC 5C73 8CBD 21BE DA13
To claim this, I am signing this object: