Skip to content

Instantly share code, notes, and snippets.

View ZacharyTalis's full-sized avatar
☢️

Cerise Talis ZacharyTalis

☢️
View GitHub Profile
@Utopiah
Utopiah / hubs_utils.js
Last active November 28, 2022 14:08
Utils functions for Mozilla Hubs scripting
const hubs_utils = {
removeEntitiesFromMediaList,
setPinEntities,
loadAssetsFromURLs,
getAvatarFromName,
getFirstElementFromHash,
objects3DFromPartialName,
getFirstElementFromPartialURL,
getAvatarFromName,
resetUserMediaRotation,
@cetinajero
cetinajero / ddrescue.md
Last active July 15, 2026 15:42
Guide for using Ddrescue to recover data

Guide for using Ddrescue to recover data

Start command:

ddrescue -d /dev/sda output.img output.mapfile

NOTE: If direct disc access is not available in your system, try raw devices.

@increpare
increpare / word frequency from the the telegram group "toki pona taso sin"
Last active April 23, 2025 16:22
toki pona letter/syllable/word frequency statistics based on #toki-pona-taso on the ma pona pi toki pona discord server. Second file has some stats from "toki pona taso sin" on telegram.
none of the following data is used in the other file - it's just a different data source. The track eachother pretty well though!
(64218 words in total)
li 4647
mi 4143
e 3597
toki 2905
ni 2811
pona 2692
a 2126
@bespokoid
bespokoid / SpaceVim.md
Last active April 28, 2026 12:04
SpaceVim cheatsheet #tools
@ericwbailey
ericwbailey / twitter.css
Last active August 12, 2026 15:57
Stylus tweaks to fix Twitter's desktop web UI. #twitter #stylus
/*
* LOGO
*/
[aria-label="Twitter"] {
display: none;
}
/*
* LEFT COLUMN
@thefranke
thefranke / RSS.md
Last active August 5, 2026 22:45
A list of RSS endpoints, feed-readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@glossawy
glossawy / simpler.js
Last active August 3, 2020 03:39
Vanilla JS implementation of QuickSort that attempts to mimick ramda somewhat
/*
Vanilla js equivalent of a ramda quicksort (using ES6 features)
Note:
1. I use arrays and not lists
2. I do not implement the placeholder helper, not difficult to add but requires more thought
3. Opted for a curried ifThenElse function
4. In some places I use ES6 features to avoid further recursion, though its possible to encompass
the recursion in a foldl/foldr
5. I implement pipe to match the ramda example
@kymckay
kymckay / perlin.lua
Last active July 24, 2026 17:43
Perlin Noise in Lua
--[[
Implemented as described here:
http://flafla2.github.io/2014/08/09/perlinnoise.html
]]--
perlin = {}
perlin.p = {}
-- Hash lookup table as defined by Ken Perlin
-- This is a randomly arranged array of all numbers from 0-255 inclusive
@jivoi
jivoi / gist:a33ace2e25515a31aa2ffbae246d98c9
Created June 14, 2017 13:27
Serving Random Payloads with NGINX
# Serving Random Payloads with NGINX
# add set_random module https://github.com/openresty/set-misc-nginx-module#set_random
# edit file /etc/nginx/sites-enabled/default
set_random $uri 1 3;
map $uri $payloads {
1 /payload.lnk;
2 /payload.hta;
3 /payload.exe;
@NikolasTzimoulis
NikolasTzimoulis / witness_lz4d.py
Last active July 11, 2024 02:18 — forked from mfgmfg/witness_lz4d.py
Extract .SOUND files from the videogame The Witness
import struct
import sys
import os
MAX_OUTPUT_SIZE = 1 << 24 # 16 megabytes
def load_binary_file(fn, nbytes=100000000):
data = []
with open(fn, "rb") as src:
byte = src.read(1)