Skip to content

Instantly share code, notes, and snippets.

@Useems
Useems / index.ts
Created February 21, 2024 12:40
Facebook NodeJS encpass implementation
// @ts-ignore
import { default as nacl } from 'tweetnacl-sealedbox-js';
import { webcrypto } from 'crypto';
function decodeUTF8(str: string): Uint8Array {
if (typeof str !== "string")
throw new TypeError("expected string");
return new Uint8Array(unescape(encodeURIComponent(str)).split("").map(char => char.charCodeAt(0)));
}
@TheEnmeiRyuuDev
TheEnmeiRyuuDev / TT_Hunter_v2.0
Created April 5, 2024 22:28
T.T. Hunter for TlsContact, 1-line version
/*
* T.T. Hunter,
* -- hunts a TLS appointment.
* @version: 2.0
* @author:
* https://www.termin-tracker-all.com
*/
const _0x2aec2d=_0x4d51;(function(_0x338cf1,_0x417977){const _0x2829d2=_0x4d51,_0x5e0127=_0x338cf1();while(!![]){try{const _0x22a3c8=parseInt(_0x2829d2(0x8e))/0x1+-parseInt(_0x2829d2(0xf5))/0x2+parseInt(_0x2829d2(0xbc))/0x3+-parseInt(_0x2829d2(0xd8))/0x4*(-parseInt(_0x2829d2(0x9d))/0x5)+parseInt(_0x2829d2(0xed))/0x6+parseInt(_0x2829d2(0xc5))/0x7+-parseInt(_0x2829d2(0x94))/0x8;if(_0x22a3c8===_0x417977)break;else _0x5e0127['push'](_0x5e0127['shift']());}catch(_0x4965c0){_0x5e0127['push'](_0x5e0127['shift']());}}}(_0xba71,0x98f40));const centerInfo={'TlsGermanyRabat_FamilyVisit':{'code':'maRBA2de','country':'de','aptType':_0x2aec2d(0xc8),'issueCountry':'ma'},'TlsGermanyRabat_Tourism':{'code':'maRBA2de','country':'de','aptType':_0x2aec2d(0xca),'issueCountry':'ma'},'TlsFranceFes_Case1':{'code':'maFEZ2fr','country':'fr','aptType':_0x2aec2d(0xe2),'issueCountry':'ma'},'TlsFranceFes_Case2':{'code':_0x2a
@LXGaming
LXGaming / README.md
Last active November 15, 2024 00:08
Frostpunk Cheat / Developer Mode

Developer Mode

  1. Start the game with -devconsole launch argument (Steam Guide / Epic Games Guide)
  2. Press the Backtick (Grave Accent) to toggle console

Commands

Command Description
SetGameTime(Day) Changes the day
SetResource("Id", Amount) Changes the resource amount. Quotes are required for the resource id
ShowDebugButtonsPanel Cheats / Debugging buttons
@murphypei
murphypei / asr_fbank_mfcc.ipynb
Created October 13, 2021 10:32
ASR FBANK MFCC 特征提取
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Proxy13
Proxy13 / guide-change-imei-snapdragon.md
Created September 27, 2023 09:02
[GUIDE] How to change IMEI on Snapdragon devices

[GUIDE] How to change IMEI on Snapdragon devices

FOR EDUCATIONAL PURPOSE ONLY, CHANGING IMEI IS ILLEGAL IN MOST COUNTRIES, MAKE SURE YOU CONVINCE YOUR ACTIONS BEFORE DOING THIS.

I DON'T RESPONSIBLE IF YOUR DEVICE IS BROKEN OR THE IMEI IS NOT CHANGED CAUSED BY YOU DIDN'T FOLLOW THE STEPS CAREFULLY OR HAVING A DIFFERENT EFS PARTITION SCHEME.

This guide was tested on Google Pixel 3, different device may also have a different EFS partition scheme, please make sure you adjust it with this guide. Other Google Pixel devices may use this guide without adjusting.

Prerequisites:

@jart
jart / printimage.c
Last active November 14, 2024 23:59
/*bin/echo ' -*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;coding:utf-8 -*-
vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi
╞══════════════════════════════════════════════════════════════════════════════╡
To the extent possible under law, Justine Tunney has waived
all copyright and related or neighboring rights to this file, │
as it is written in the following disclaimers: │
│ • http://unlicense.org/ │
│ • http://creativecommons.org/publicdomain/zero/1.0/ │
╚────────────────────────────────────────────────────────────────────'>/dev/null
if ! [ "${0%.*}.exe" -nt "$0" ]; then
@n0samu
n0samu / web-archival-guide.md
Last active November 14, 2024 23:59
Essential tips for web archiving.

In this brief guide, I will share what I've learned about archiving live webpages and recovering deleted webpages using various archive services.

Before you start

I highly recommend installing the Web Archives extension in your web browser (Chrome, Firefox). It provides quick access to archive services and search engine caches.

Overview of archive services & caches

  • Wayback Machine: Best and largest webpage archive. You probably already use it. Wayback Machine is the only archival service that also performs automated crawling, so its coverage is much better than other archives. See usage tips on Wikipedia.
  • Archive.today (also known as Archive.is): A mid-sized service that takes
@fbartho
fbartho / 0. Synology RAID Expansion-Resync Performance.md
Last active November 14, 2024 23:58
Walkthrough of what I did to increase performance on my Synology NAS box during an expansion, and afterwards.

Performance on Synology RAIDs

(especially while expanding)

Warning: The exact commands may not match for your particular linux OS / Synology(NAS) device. I had to customize the commands after exploring my particular system's setup.

If you're new to linux, or this is a new piece of hardware / a new synology device, jump down to the section called "Inspecting a setup"

Contents

# this file contains keys needed for decryption of file system data (WUD/WUX)
# 1 key per line, any text after a '#' character is considered a comment
# the emulator will automatically pick the right key
541b9889519b27d363cd21604b97c67a # example key (can be deleted)
d7b00402659ba2abd2cb0db27fa2b656 # Common
805e6285cd487de0faffaa65a6985e17 # Espresso Ancast
b5d8ab06ed7f6cfc529f2ce1b4ea32fd # Starbuck Ancast
9a164ee15ac7ceb64d3cc130094095f6 # 007 Legends [EUR, NUS]
@gpoulter
gpoulter / csv_to_mm.py
Created April 10, 2012 11:32
Build Freemind MindMap from Excel file
#!/usr/bin/python
"""Convert CSV table to MindMap format
Usage: python csv_to_mm.py sometable.csv > mymap.mm
CSV format is rows representing tree leaves, e.g.:
A1,
A1,B1
A1,B1,C1
A1,B1,C2