Skip to content

Instantly share code, notes, and snippets.

View nicholatian's full-sized avatar
📀
please do not swear on my profile. thanks

Alexander Nicholi‮ nicholatian

📀
please do not swear on my profile. thanks
  • Xion Megatrends LLC
  • Research Triangle
View GitHub Profile

INI schema

An INI schema for validating INI schemas

Written by Alexander Nicholi https://nich.fi/
Copyright © 2025 Aquefir Consulting LLC https://aquefir.co/
Released under the Creative Commons Attribution-NoDerivatives 3.0 Unported license

Licence

@nicholatian
nicholatian / minihn.h
Created August 10, 2023 18:25
Mini-Hinterlib header provision
/*********************************************************************\
* Mini-Hinterlib header provision *
* Copyright (C) 2023 Alexander Nicholi *
* Released under Artisan Software Licence 1.1 *
\*********************************************************************/
#ifndef INC__MINIHN_H
#define INC__MINIHN_H
/* basic CPP defines */
@nmilosev
nmilosev / sizes.sh
Created June 27, 2021 10:45
Alpine Linux 3.13 (2021) list installed packages sorted by size
apk info -e -s \* | xargs -n5 | awk '{print $4,$5,$1}' | sort -run > SIZES
cat SIZES | grep MiB
cat SIZES | grep KiB
rm SIZES
# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX
#
# WIP research. (This was edited to add more info after someone posted it to
# Hacker News. Click "Revisions" to see full changes.)
#
# Copyright (c) 2020 dougallj
# Based on Python port of VMX intrinsics plugin:
# Copyright (c) 2019 w4kfu - Synacktiv
@transkatgirl
transkatgirl / encodetwitter.sh
Last active October 29, 2022 11:33
Encode a video for uploading to Twitter using FFMPEG and FDKAAC
#!/bin/bash
# https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/uploading-media/media-best-practices
# - h.264 high profile
# - 60fps or less
# - aac-lc, he-aac not supported
# - 16:9 recommended
# - 512mb maximum
# - shorter than 140s
# - 1:1 pixel aspect ratio
# - yuv 4:2:0
@umar-daraz-techverx
umar-daraz-techverx / VisualStudioProfessionalKeys.txt
Created November 26, 2019 06:10
Visual Studio Professional Keys
Visual Studio 2019 Professional: NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
Visual Studio 2017 Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
Visual Studio 2015 Professional: HMGNV-WCYXV-X7G9W-YCX63-B98R2
Visual Studio 2013 Professional: XDM3T-W3T3V-MGJWK-8BFVD-GVPKY
Visual Studio 2012 Professional: 4D974-9QX42-9Y43G-YJ7JG-JDYBP
/Td6WFoAAATm1rRGBMC2ggv8rRshARYAAAAAADp4+2ricQrv/10AKBBGzYyAuJdydLtistAdS6y6
hBm7fcR59ckrkwt1m+4Sudcb/Q7hWyBRMWyA0I8hX8wI7kDx4VEH7ZD4fGXLv8xY6kjXldrZH9aa
y05/PyiJubOAK4RQivmje4+MI54jgLfRuDSCQqG7ugk/MJ6gjnzZ7InjEG2j4EFQ08vBm/CyWrU6
Ma15oNYy8IQXumTH5TB4B9Cv7wy8r/5xQ/5TaUlPjnCGOAwMTkcveRuMn1zlB+sr8Rbo2k7ZGY/q
uFo0VTq72Z1L6xawCsEIwGpmP+SAXiE6xH+eH5E0B6R/FRyv7+ai69HjKt8Oy5QQOf/AyrXsMkSR
vxVfoZ29OFIIdQ+JUHBTYFft6k5XAvNOiJzBe2ALgnN5Myqqpf1G9mJMcQuL8azifBEWh4bxPTzN
Pjrdz6/Uebx/C6tdTxVLgmLWATWdYljsWaxkoCtm1haM4hCjbhUi3tgFVZxEPfnF+qvu9CUbFm8p
Rfh3FVulN686gkWYnkTM3N42m+GGenWMF+emZrEwbLjrQYCNNApxuRuGdn1DpPwuztMVelYlE6V1
7GkytPRk/mQAf4FOkTFuGLmFfckgwzI6fmCMfIzMzowqLSsQ3ZV/rAoc3Nl0C1ikWxgz3zwAg0U0
jcR06ODLnhTAE+cWKYqAmsVArFnk3A0uSzDx+7y6GHo5/II2jAkQJaZme0w9dfgXdx55pqGvKPhb
@eneko
eneko / list-of-curl-options.txt
Last active July 3, 2025 02:46
List of `curl` options
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
@Jarred-Sumner
Jarred-Sumner / comcast.js
Last active July 3, 2025 21:23
Comcast injects this into webpages to show copyright notices
// Comcast Cable Communications, LLC Proprietary. Copyright 2014.
// Intended use is to display browser notifications for critical and time sensitive events.
var _ComcastAlert = (function(){
return {
SYS_URL: '/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do'
, dragObj: {zIndex: 999999}
, browser: null
, comcastCheck: 1
, comcastTimer: null
, xmlhttp: null
@espadrine
espadrine / sync-stdin.js
Created September 12, 2014 11:32
How to read stdin synchronously in nodejs.
var fs = require('fs');
// Returns a buffer of the exact size of the input.
// When endByte is read, stop reading from stdin.
function getStdin(endByte) {
var BUFSIZE = 256;
var buf = new Buffer(BUFSIZE);
var totalBuf = new Buffer(BUFSIZE);
var totalBytesRead = 0;
var bytesRead = 0;