Skip to content

Instantly share code, notes, and snippets.

@CharlesNepote
CharlesNepote / csv2datasette
Last active December 5, 2024 09:06
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 December 27, 2025 05:31
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 January 20, 2026 01:18
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 November 21, 2025 07:17
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 October 3, 2025 08:37
Windows Terminal Split Pane Powershell Script - v2
using namespace System.Collections.Generic
# Encapsulate an arbitrary command
class PaneCommand {
[string]$Command
PaneCommand() {
$this.Command = "";
}
@Mashpoe
Mashpoe / main.c
Last active January 25, 2025 13:25
ASCII Tesseract Rotation C Program
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <windows.h>
// width and height of screen
#define ww 100
#define wh 50
void clr(CHAR_INFO* d)