Skip to content

Instantly share code, notes, and snippets.

geoder101 /
Created October 1, 2023 07:40
npx -y --package typescript@latest -- tsc --help
geoder101 / LICENSE.txt
Created September 24, 2023 06:16
The Unlicense
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
geoder101 /
Created January 21, 2023 15:42 — forked from cellularmitosis/
Gist mirror of "Learn Scheme in 15 Minutes"
geoder101 /
Created September 2, 2021 19:18
[ffmpeg] Create video from a still image and an audio file
function create_image_audio() {
local -r image="$1"
local -r audio="$2"
echo DEBUG: $(pwd)
echo DEBUG: $(file "$image")
echo DEBUG: $(file "$audio")
ffmpeg -loop 1 -i "$image" -i "$audio" -c:v libx264 -c:a copy -shortest "${audio}.mp4"
create_image_audio "$1" "$2"
geoder101 /
Created April 25, 2021 08:56 — forked from steven2358/
FFmpeg cheat sheet
geoder101 /
Created March 10, 2020 18:37

Keybase proof

I hereby claim:

  • I am geoder101 on github.
  • I am geoder101 ( on keybase.
  • I have a public key ASDMaOheBhpeBFFQbkEbEm_ONYxBCHDEVNLSP6xJLeTpowo

To claim this, I am signing this object:

geoder101 /
Created April 10, 2019 19:49 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


geoder101 /
Created September 18, 2018 20:54 — forked from kuznero/
Console application that exit on Ctrl-C (ready for Docker)

Console application that exit on Ctrl-C (ready for Docker)

Console.ReadLine or Console.ReadKey do not work as expected under Docker container environment. Thus, typical way to solve this would be to properly handle Ctrl-C key combination.

C# snippet

using System;
using System.Threading;
geoder101 / Program.cs
Created August 13, 2018 17:17 — forked from analogrelay/CommandLineException.cs
Easy way to debug command-line apps
private static int Main(string[] args)
if (args.Any(a => a == "--debug"))
args = args.Where(a => a != "--debug").ToArray();
Console.WriteLine($"Ready for debugger to attach. Process ID: {Process.GetCurrentProcess().Id}.");
Console.WriteLine("Press ENTER to continue.");
geoder101 /
Created June 21, 2018 17:04 — forked from andkirby/
Semantic versions sorting in bash.
#!/usr/bin/env bash
# Download this gist
# curl -Ls | bash
# And run:
# $ semversort 1.0 1.0-rc 1.0-patch 1.0-alpha
# or in GIT
# $ semversort $(git tag)
# Using pipeline:
# $ echo 1.0 1.0-rc 1.0-patch 1.0-alpha | semversort