#Quick Guide
sudo atsutil databases -remove
atsutil server -shutdown
atsutil server -ping
#Extended Guide from http://doc.extensis.com/Font-Management-in-OSX-Best-Practices-Guide.pdf
| This page is found here -- > http://gg.gg/helpeth <-- Tell Others about it | |
| Created / Supported by: Parker https://gist.github.com/rawsushi/ | |
| GPU hw review http://62.212.74.86/~mining/list/index.php | |
| WeChat a) Download Wechat at www.WeChat.com (it's FREE) b) create your new user (it's FREE) c) add WeChat user "PAFwork" (it's FREE) | |
| GITHUB.com - has TONS of great info. Go there and register. It's FREE | |
| Gitter.im - you need Github to log in ... |
#Quick Guide
sudo atsutil databases -remove
atsutil server -shutdown
atsutil server -ping
#Extended Guide from http://doc.extensis.com/Font-Management-in-OSX-Best-Practices-Guide.pdf
Python script to convert mysqldump output to JSON file. Most of the code was borrowed from github.com/jamesmishra/mysqldump-to-csv
You'll want to update the 'parse_row' function to map each item in a row to a dictionary.
| #!/bin/bash | |
| instanceID=$1 | |
| date=$(date +%Y%m%d) | |
| function downloadLog () { | |
| local log=$1 | |
| aws rds download-db-log-file-portion \ | |
| --output text \ |
This documentation aims at being a quick-straight-to-the-point-hands-on AWS resources manipulation with [boto3][0].
First of all, you'll need to install [boto3][0]. Installing it along with [awscli][1] is probably a good idea as
| #!/usr/bin/env python | |
| # Simple [boto3](https://github.com/boto/boto3) based EC2 manipulation tool | |
| # | |
| # To start an instance, create a yaml file with the following format: | |
| # | |
| # frankfurt: | |
| # - subnet-azb: | |
| # - type: t2.micro | |
| # image: image-tagname |
| import Data.List | |
| import Data.Function | |
| import Control.Monad | |
| groupOn f = groupBy ((==) `on` f) . sortBy (compare `on` f) | |
| uniq = map (!! 0) . groupOn id | |
| -- 场景:假设a得到了数字x,b得到了数字y | |
| -- 可看做二分图,其中possibleX,possibleY是顶点,possible是边,(aGuessY x)和(bGuessX y)分别表达x点和y点的邻接点集 | |
| possibleX = [4..198] |
⇐ back to the gist-blog at jrw.fi
Backing stuff up is a bit of a hassle, to set up and to maintain. While full-blown backup suites such as duplicity or CrashPlan will do all kinds of clever things for you (and I'd recommend either for more complex setups), sometimes you just want to put that daily database dump somewhere off-site and be done with it. This is what I've done, with an Amazon S3 bucket and curl. Hold onto your hats, there's some Bucket Policy acrobatics ahead.
There's also a tl;dr at the very end if you just want the delicious copy-pasta.
This process worked for me. I take no responsibility for any damage or loss incurred as a result of following or not following these steps or, for that matter, anything else you might do or not do.
svn.domain.com.au.http (other protocols should work).git.domain.com.au and:| ### AWS scripts | |
| These look trivial | |
| http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/mon-scripts-perl.html | |
| http://aws.amazon.com/code/8720044071969977 | |
| ### Diamond | |
| Diamond is fairly popular and it looks like there's a built in way for Diamond to send metrics to AWS CloudWatch so maybe this is fairly easy | |
| https://github.com/BrightcoveOS/Diamond | |
| https://github.com/BrightcoveOS/Diamond/wiki/handler-cloudwatchHandler |