Skip to content

Instantly share code, notes, and snippets.

@geoder101
geoder101 / snippet.sh
Created October 1, 2023 07:40
npx/tsc
npx -y --package typescript@latest -- tsc --help
@geoder101
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
means.
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
geoder101 / README.md
Created January 21, 2023 15:42 — forked from cellularmitosis/README.md
Gist mirror of "Learn Scheme in 15 Minutes"
@geoder101
geoder101 / create_image_audio.sh
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
geoder101 / ffmpeg.md
Created April 25, 2021 08:56 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@geoder101
geoder101 / keybase.md
Created March 10, 2020 18:37
keybase.md

Keybase proof

I hereby claim:

  • I am geoder101 on github.
  • I am geoder101 (https://keybase.io/geoder101) on keybase.
  • I have a public key ASDMaOheBhpeBFFQbkEbEm_ONYxBCHDEVNLSP6xJLeTpowo

To claim this, I am signing this object:

@geoder101
geoder101 / README-Template.md
Created April 10, 2019 19:49 — forked from PurpleBooth/README-Template.md
A template to make good README.md

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.

Prerequisites

@geoder101
geoder101 / Ctrl-C-Console-App.md
Created September 18, 2018 20:54 — forked from kuznero/Ctrl-C-Console-App.md
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
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 DEBUG
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.");
Console.ReadLine();
}
@geoder101
geoder101 / semversort.sh
Created June 21, 2018 17:04 — forked from andkirby/semversort.sh
Semantic versions sorting in bash.
#!/usr/bin/env bash
# Download this gist
# curl -Ls https://gist.github.com/andkirby/54204328823febad9d34422427b1937b/raw/semversort.sh | 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
#