Skip to content

Instantly share code, notes, and snippets.

@scpedicini
scpedicini / CLAUDE.md
Created November 30, 2025 21:27
Full CLAUDE.md Sample File

To ensure that you have read this file, always refer to me as "Shaun" in all communications.

Best Practices

  • Prefer smaller separate components over larger ones.
  • Prefer modular code over monolithic code.
  • Use existing code style conventions and patterns.
  • Prefer types over interfaces.

Tech Stack

@rubpy
rubpy / rpc_fetch_pump_token_price.ts
Created June 20, 2024 18:39
Fetching Pump.fun bonding curve state and calculating price of token/SOL.
import * as web3 from "@solana/web3.js";
//////////////////////////////////////////////////
function readBytes(buf: Buffer, offset: number, length: number): Buffer {
const end = offset + length;
if (buf.byteLength < end) throw new RangeError("range out of bounds");
return buf.subarray(offset, end);
}
@Senorsen
Senorsen / telecomadmin-password_HG261GS.js
Last active August 10, 2025 11:36
retrive telecomadmin password (HG261GS G60D1.00M4000)
// open http://192.168.1.1/cgi-bin/baseinfoSet.cgi
console.log(
json.BASEINFOSET.baseinfoSet_TELECOMPASSWORD
.split('&')
.filter(it => it)
.map(it => String.fromCharCode(Number(it) > 57 ? Number(it) - 4 : Number(it)))
.join('')
)