Skip to content

Instantly share code, notes, and snippets.

@juliushaertl
juliushaertl / google-location-history-to-gpx.md
Last active May 14, 2024 19:38
google-location-history-to-gpx

convert google takeout archive for location history from kml to gpx and split file into one per day

gpsbabel -i kml -f Location\ History.kml -o gpx -F out.gpx
gpsbabel -t -i gpx -f out.gpx -x track,merge,pack,split,title="ACTIVE LOG # %Y%m%d" -o gpx -F split.gpx
python2 gpxsplitter.py split.gpx
@DocX
DocX / README.md
Last active September 5, 2023 12:58
Connect to bash inside running ECS container by cluster and service name

mkdown

What is this?

Mkdown renders Markdown GitHub gists with alternative CSS. Use it to elegantly share gists written in Markdown.

How do I use this?

To create your own mkdown URL, append the gist ID in a URL of the form: http://mkdown.com/{GIST ID}. The gist ID is the string at the end of a gist URL.

@haarts
haarts / tor.conf
Created August 31, 2012 20:13
RaspberryPi Tor monit configuration (bonus: vnstat monit configuration)
# Tor is leaking memory. Restart when necessary.
check process tor with pidfile /var/run/tor/tor.pid
start program = "/usr/sbin/tor -f /etc/tor/torrc"
stop program = "/bin/sh -c '/bin/kill -s SIGTERM `cat /var/run/tor/tor.pid` && rm /var/run/tor/tor.pid'"
if mem > 64 MB for 3 cycles then restart
@ikennaokpala
ikennaokpala / gist:1427178
Created December 3, 2011 13:54 — forked from GiaoGiaoCat/gist:1393770
Steps to install RVM + Ruby 1.9.2 + Rails + nginx + Passenger on CentOS (tested on v5.5)
# Steps to install RVM + Ruby 1.9.2 + Rails + nginx + Passenger on CentOS (tested on v5.5)
# Install git and curl, if not already installed
sudo yum install git
sudo yum install curl
# Create the rvm group and add any users who will be using rvm to the group
sudo su -
groupadd rvm
@cainlevy
cainlevy / with_retries.rb
Created October 28, 2011 21:19
with_retries{} helper to easily catch and retry exceptions in Ruby
module Retriable
# This will catch any exception and retry twice (three tries total):
# with_retries { ... }
#
# This will catch any exception and retry four times (five tries total):
# with_retries(:limit => 5) { ... }
#
# This will catch a specific exception and retry once (two tries total):
# with_retries(Some::Error, :limit => 2) { ... }
#