I hereby claim:
- I am highpriestlol on github.
- I am lalilulelo (https://keybase.io/lalilulelo) on keybase.
- I have a public key ASDbGCmcZGaCLBuoyZn3K0tdQwJu3kgtPAs2O_jJtDVj_Ao
To claim this, I am signing this object:
/** | |
* Continents and Countries MySQL Tables compiled from Wikipedia, Braintree Payments documentation | |
* and a couple other places I don't recall at the moment. This data is compatible with the Braintree | |
* Payment API as of Dec 2011 | |
* | |
* Compiled by Steve Kamerman, 2011 | |
*/ | |
SET FOREIGN_KEY_CHECKS=0; | |
-- ---------------------------- |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
@colander.deferred | |
def deferred_title(node, kw): | |
default_title = kw.get('question_name') | |
if default_title is None: | |
default_title = "Huh!" | |
return default_title | |
@colander.deferred | |
def deferred_description(node, kw): | |
some_info = kw.get('some_info') |
#!/bin/bash | |
############################################################################################## | |
## Install Nginx with OpenSSL, and ngx_pagespeed | |
## | |
## Author: Andrew Maxwell <amaxwell@ajmaxwell.com> | |
## Date: 2017/09/18 | |
## Version: 0.3 | |
## | |
## Disclaimer: I am not responsible for how you use this script. Do not assume this script |
import time | |
class Retry(object): | |
default_exceptions = (Exception) | |
def __init__(self, tries, exceptions=None, delay=0): | |
""" | |
Decorator for retrying function if exception occurs | |
tries -- num tries | |
exceptions -- exceptions to catch |
#!/bin/sh | |
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; | |
do | |
echo $output | |
used=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) | |
partition=$(echo $output | awk '{ print $2 }' ) | |
if [ $used -ge 80 ]; then | |
echo "The partition \"$partition\" on $(hostname) has used $used% at $(date)" | mail -s "Disk space alert: $used% used" your@email.com | |
fi | |
done |