Skip to content

Instantly share code, notes, and snippets.

@capfsb
capfsb / fpsMeter.js
Created April 17, 2017 23:41 — forked from medynski/fpsMeter.js
JavaScript FPS meter - Calculating frames per second
fpsMeter() {
let prevTime = Date.now(),
frames = 0;
requestAnimationFrame(function loop() {
const time = Date.now();
frames++;
if (time > prevTime + 1000) {
let fps = Math.round( ( frames * 1000 ) / ( time - prevTime ) );
prevTime = time;
@0xdevalias
0xdevalias / reverse-engineering-macos.md
Last active January 15, 2025 03:22
Some notes, tools, and techniques for reverse engineering macOS binaries
@hansheng0512
hansheng0512 / crypto.ts
Created September 20, 2024 03:14
Encrypt and Decrypt string using Typescript
import * as crypto from 'crypto';
// Secret key generation (should be stored securely and not hardcoded)
const secretKey = crypto.createHash('sha256').update(String('your-secret-key')).digest('base64').substr(0, 32);
function encrypt(text: string): string {
const iv = crypto.randomBytes(16); // Initialization vector
const cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(secretKey), iv);
const encrypted = Buffer.concat([cipher.update(text, 'utf8'), cipher.final()]);
// Return the IV and encrypted data as a combined string
@0xdevalias
0xdevalias / reverse-engineering-webpack-apps.md
Last active January 15, 2025 03:22
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps
@0xdevalias
0xdevalias / bypassing-cloudflare-akamai-etc.md
Last active January 15, 2025 03:18
Some notes/resources for bypassing anti-bot/scraping features on Cloudflare, Akamai, etc.
@lumpenspace
lumpenspace / 0.asciigl_intro.md
Last active January 15, 2025 03:15
TTYGL - WEBGL shader to render anything as ascii art, and react component

ASCIIGL

usage

<AsciiEffect characters=' .,⦁↬∞∂λ⍼☿⁜ℵ'cellSize={20}/>

example

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 15, 2025 03:05
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@goliatone
goliatone / generate_rsa_ssh_keys.go
Last active January 15, 2025 03:04 — forked from azakordonets/generate_rsa_ssh_keys.go
Generate SSH RSA Private/Public Key pair with Golang
// This shows an example of how to generate a SSH RSA Private/Public key pair and save it locally
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"golang.org/x/crypto/ssh"
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active January 15, 2025 03:03
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com