Skip to content

Instantly share code, notes, and snippets.

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

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
:: 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 / 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
@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"
#!/usr/bin/env python
import os
from datetime import datetime
import click
from rich.pretty import pprint
DEFAULT_DIR = "/Volumes/a7c/Tallman/A/DCIM"
DEFAULT_FILENAME = "timelapse"