Skip to content

Instantly share code, notes, and snippets.

@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 / ffmpeg.md
Created April 25, 2021 08:56 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@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
#
@geoder101
geoder101 / BootstrapUI.fs
Created September 14, 2017 14:19 — forked from Kimserey/BootstrapUI.fs
SPA UI.Next Bootstrap
[<JavaScript>]
module BootstrapUI =
open WebSharper.UI.Next
open WebSharper.UI.Next.Html
open WebSharper.UI.Next.Client
module Button =
type private ButtonColor =
| Default
| Primary
@geoder101
geoder101 / bibtex.png
Created August 22, 2017 21:40 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@geoder101
geoder101 / create-docker-tls.sh
Last active August 21, 2017 15:48 — forked from Stono/create-docker-tls.sh
Creating and setting up Docker for TLS
#!/bin/bash
# This script will help you setup Docker for TLS authentication.
# Run it passing in the arguement for the FQDN of your docker server
#
# For example:
# ./create-docker-tls.sh myhost.docker.com
#
# The script will also create a profile.d (if it exists) entry
# which configures your docker client to use TLS
#
@geoder101
geoder101 / stress-test.sh
Created June 14, 2017 17:13 — forked from cirocosta/stress-test.sh
naive http server stress tester using cURL
#!/bin/bash
#### Default Configuration
CONCURRENCY=4
REQUESTS=100
ADDRESS="http://localhost:8080/"
show_help() {
cat << EOF