Skip to content

Instantly share code, notes, and snippets.

@dmerrick
dmerrick / kml-filter.py
Last active August 14, 2023 15:49
kml-filter
#!/usr/bin/env python
import sys
from lxml import etree
from pykml import parser
from rich.pretty import pprint
# small point coords
small_point_lat = "-69.80"
@dmerrick
dmerrick / runlist.md
Last active October 27, 2022 11:17
How Dana sets up a brand new Mac
@dmerrick
dmerrick / 1_bat.sh
Last active February 28, 2022 16:40
#!/bin/bash
figlet bat
# https://github.com/sharkdp/bat
echo
echo bat ~/work/reverie/README.md
echo
echo bat ~/work/reverie/setup.py
:: this starts a miner using flexpool.io
:: you will want to update the values for -u and -w
:: the --api-bind-http makes it so you can access the webui
:: from another computer... remove that line if you don't
:: want that
"C:\Users\path\to\trex-miner\t-rex.exe" ^
-a ethash ^
-o stratum+ssl://eth-us-west.flexpool.io:5555 ^
@dmerrick
dmerrick / cleanup-ecr.rb
Last active August 23, 2020 14:04
Delete old ECR images
#!/usr/bin/env ruby
# this script will delete ECR images that are older than N days
require 'date'
require 'json'
# customize this script
repo = 'snapdocs'
delete_if_older_than = 60 # days

yt-album-combiner

This script is intended to take video a YouTube video and audio from another YouTube video and combine them into a new video.

Dependencies

apt install ffmpeg youtube-dl
#!/usr/bin/env bash
env="stage"
region="us-west-2"
old_group="webhooks_"
new_group="webhooks"
topic="fulfillment-events"
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func handle(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/" {

Keybase proof

I hereby claim:

  • I am dmerrick on github.
  • I am dmerrick (https://keybase.io/dmerrick) on keybase.
  • I have a public key ASBfbOy8KJdeAf-NASIA0BQEMCwL2zXV1P-E-_czTSiQWAo

To claim this, I am signing this object:

#!/usr/bin/env ruby
require 'pp'
require 'awesome_print'
# example_line = 'www-c8.proxy.aol.com - - [31/Aug/1995:23:59:52 -0400] "GET /icons/unknown.xbm HTTP/1.0" 200 515'
# line = example_line
results = {}