Skip to content

Instantly share code, notes, and snippets.

View cotin18's full-sized avatar
🎯
Focusing

cotin18

🎯
Focusing
View GitHub Profile
@GeodeCotin
GeodeCotin / README.md
Created July 17, 2022 12:04 — forked from dominikwilkowski/README.md
ANSI codes for cli controled output

ANSI escape codes

ANSI escape codes can be printed to a shell to as instructions. The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again.

A great article about it can be found here.

Content

@ForeverZer0
ForeverZer0 / Vaccine Exemption Letter
Created November 7, 2021 22:48
Legal Letter from Robert Barnes
Dear Boss,
Compelling any employee to take any current Covid-19 vaccine violates federal
and state law.
First, federal law prohibits any mandate of the Covid-19 vaccines as unlicensed,
emergency-use-authorization-only vaccines. Subsection bbb-3(e)(1)(A)(ii)(III) of section 360 of Title 21 of the United States Code, otherwise known as
the Emergency Use Authorization section of the Federal Food, Drug, and Cosmetic
Act, demands that everyone give employees the “option to accept or refuse administration”
of the Covid-19 vaccine. This right to refuse emergency, experimental vaccines, such as
@davidfowl
davidfowl / MinimalAPIs.md
Last active March 13, 2026 09:00
Minimal APIs at a glance
@jivanpal
jivanpal / compile-nginx-brotli-modules.sh
Last active March 4, 2024 17:52
Compile Brotli modules for Nginx 1.18.0 on Ubuntu 20.04
#!/bin/bash -e
sudo apt install \
curl \
build-essential \
libpcre3-dev \
libssl-dev \
zlib1g-dev \
libxml2-dev \
libxslt1-dev \
@stettix
stettix / things-i-believe.md
Last active February 24, 2026 02:10
Things I believe

Things I believe

This is a collection of the things I believe about software development. I have worked for years building backend and data processing systems, so read the below within that context.

Agree? Disagree? Feel free to let me know at @JanStette.

Fundamentals

Keep it simple, stupid. You ain't gonna need it.

@nansenat16
nansenat16 / godaddy-ddns.txt
Last active November 7, 2023 13:08
RouterOS godaddy-ddns-update-script
#GoDaddy DDNS Update Script
#Test with RouterOS 6.45.2 (Minimum version RouterOS 6.44)
#Date:2019/08/02
#The read,write,policy,test that all of these policies need to be set in script for the global variable
#ref1 https://www.instructables.com/id/Quick-and-Dirty-Dynamic-DNS-Using-GoDaddy/
#ref2 http://www.minitw.com/post/2018/05/09/routeros-ddns-namecheap
#Easy Test
# /tool fetch url="https://api.godaddy.com/v1/domains/[domain]/records/A/[hostname]" http-method=put http-data="[{\"data\": \"10.10.10.10\"}]" http-header-field="content-type: application/json,Authorization: sso-key [API_KEY]:[API_SECRET]"
@DanElliott
DanElliott / ClassGenerator.sql
Created July 24, 2019 12:03 — forked from gionnani/ClassGenerator.sql
Generate C# class from database table
--modified from SO: http://stackoverflow.com/questions/5873170/generate-class-from-database-table
--added table and column
declare @TableName sysname = 'TableName'
declare @Result varchar(max) = '[Table(Name = "' + @TableName + '")]
public class ' + @TableName + '
{'
select @Result = @Result + '
[Column(DbType = "' +
@ForeverZer0
ForeverZer0 / ExtractTarGz.cs
Last active November 12, 2025 03:39
Use pure C# to extract .tar and .tar.gz files
using System;
using System.IO;
using System.IO.Compression;
using System.Text;
namespace TarExample
{
public class Tar
{
@yreynhout
yreynhout / EventStoreCollection.cs
Last active May 9, 2020 20:45
Recipe for an EventStoreFixture using Docker.DotNet
using Xunit;
namespace TheDukesOfDocker
{
[CollectionDefinition(nameof(EventStoreCollection))]
public class EventStoreCollection : ICollectionFixture<EventStoreFixture>
{
}
}
@cryzed
cryzed / fix-infinality.md
Last active March 4, 2026 20:22
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08: