Skip to content

Instantly share code, notes, and snippets.

@dbreunig
dbreunig / overture-places-to-sqlite.py
Last active December 11, 2023 13:06
A (very) simple python CLI to download Overture Places data to a sqlite3 db, given a bounding box.
import click
import duckdb
import sqlite_utils
# Set up click
@click.command()
@click.option("--minx", default=-122.347183)
@click.option("--maxx", default=-122.218437)
@click.option("--miny", default=37.748729)
@click.option("--maxy", default=37.800290)
@CharlesNepote
CharlesNepote / csv2datasette
Last active August 13, 2026 15:11
csv2datasette
#!/usr/bin/env bash
# sudo ln -s "$(pwd)/csv2datasette" /usr/bin/csv2datasette
# csv2datasette is meant to explore CSV data. It is not meant to create a sustainable DB.
# csv2datasette is a bash script which open CSV files directly in Datasette. It offers
# a number of options for reading and exploring CSV files, such as --stats, inspired by WTFCsv.
#
# `--stats` option includes, for each column: the column name, the number of unique values,
# the number of filled rows, the number of missing values, the mininmum value, the maximum value,
# the average, the sum, the shortest string, the longest string, the number of numeric values,
@hyperupcall
hyperupcall / settings.jsonc
Last active March 17, 2026 09:13
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@hunterlawson
hunterlawson / steps.md
Created March 27, 2023 06:47
Doom Emacs Windows installation steps
@Qubus0
Qubus0 / mod-list.json
Last active April 3, 2023 00:06
A list of current dome keeper mods
[
{
"title": "Legacy Mod loader",
"description": "Loader to use mods. Read the README file included in the download.",
"authors":
[
"Hello World"
],
"tags":
[
@bashbunni
bashbunni / .zshrc
Last active August 16, 2026 09:03
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
// y(x) = x + 7
// f(x) = x + 7
let f x = x + 7
(f 4).Dump("f(4)")
let a1 = Some 4
let a2 = None
((Option.map f) a1).Dump("option_f(a1")
@adamantonio
adamantonio / chbs.py
Last active December 18, 2022 22:21
Correct Horse Battery Staple Password Generator - https://www.youtube.com/watch?v=7rT_kqxOCXw
import gooeypie as gp
from random import choice
nouns = open('words-nouns.txt').read().splitlines()
adjectives = open('words-adjectives.txt').read().splitlines()
def generate_password(event):
"""Generates and displays a new random password"""
word1 = choice(adjectives)
word2 = choice(nouns + adjectives)
@huytd
huytd / wordle.md
Last active March 26, 2026 21:25
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@codebykyle
codebykyle / connect.ps1
Last active August 29, 2026 08:49
Windows Terminal Split Pane Powershell Script - v2
using namespace System.Collections.Generic
# Encapsulate an arbitrary command
class PaneCommand {
[string]$Command
PaneCommand() {
$this.Command = "";
}