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
View GitHub Profile
@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 */
# 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
/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 April 25, 2024 12:21
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 September 7, 2022 01:30
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;
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real