Copy the images from your Action Cam into a folder structure where every folder contains the images that will form one sequence (taken in consequtive 2s intervals)
tree ~/Downloads/colombia
/Users/peterneubauer/Downloads/colombia
└── 01
| #!/bin/bash | |
| # | |
| # Requires: | |
| # - gdal_sieve.py | |
| # - ogr2ogr (GDAL) | |
| # - topojson (node.js) | |
| # Grab the relative directory for source file. | |
| SRC_DIR=`dirname $0` |
Copy the images from your Action Cam into a folder structure where every folder contains the images that will form one sequence (taken in consequtive 2s intervals)
tree ~/Downloads/colombia
/Users/peterneubauer/Downloads/colombia
└── 01
I am sheepish to admit a certain type of routine Microsoft Excel use.
Current example: I am marking for STAT 545. I use R to create a comma delimited marking sheet, by joining the official class list and peer reviews. The sheet contains variables, initially set to NA, where the TAs and I enter official marks and optional comments.
This is where Excel comes in. I like its visual organization of this comma delimited file much more than, say, using a plain text editor. I use the ability to hide columns, resize columns, wrap text, and (gasp!) even fill rows with grey to indicate I am done.
I keep saving the file as comma delimited and I put up with Excel's incessant freak out about "losing features". This is not a one time thing. I need to save and commit this file many times before it is considered done.
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
| #!/usr/bin/env python3 | |
| # This script is provided to show how I migrated from Ghost 0.4.2 | |
| # to Jekyll 2.3.0 and is used at your own risk. Back up your blog | |
| # before trying it out. | |
| def getPostTemplate(): | |
| with open('post-template.md', 'r') as f: | |
| posttemplate = f.read() | |
| f.closed |
| #!/bin/bash -x | |
| #=============================================================================== | |
| # | |
| # FILE: percona-xtrabackup.sh | |
| # | |
| # USAGE: ./percona-xtrabackup.sh | |
| # | |
| # DESCRIPTION: Forked from https://gist.github.com/jaygooby/5208373 | |
| # | |
| # OPTIONS: --- |
| /* | |
| SQL script to grab the worst performing indexes | |
| in the whole server | |
| */ | |
| SELECT | |
| t.TABLE_SCHEMA AS `db` | |
| , t.TABLE_NAME AS `table` | |
| , s.INDEX_NAME AS `inde name` | |
| , s.COLUMN_NAME AS `field name` | |
| , s.SEQ_IN_INDEX `seq in index` |