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 / 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 ^

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 != "/" {
#!/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 = {}
#!/usr/bin/env ruby
require 'pp'
require 'open-uri'
require 'json'
input = "61.210841,-149.888735\nSan Francisco\n33132"
places = input.split(/\n/)
results = {}
#!/usr/bin/env ruby
require 'sinatra'
require 'pp'
# env.oy/<random_str>
$data = {}
def generate_random_string(length = 5)

A Dana Life... Live on Twitch!

Welcome!

This is the source code to twitch.tv/ADanaLife_

It is composed of two parts:

  1. A Ruby script that generates a randomized playlist
  2. A Bash script that starts an ffmpeg process