Skip to content

Instantly share code, notes, and snippets.

View TheGP's full-sized avatar
💭
Hold on. I'm recompiling the universe...

Eugene Bos TheGP

💭
Hold on. I'm recompiling the universe...
View GitHub Profile
@amilz
amilz / raydium-swap-parse.js
Last active May 2, 2025 04:22
QuickNode Stream - Raydium Swap Parse
/**
* Major modifications from V1:
* 1. Changed architecture to class-based
* 2. Added support for multiple mints
* 3. Added native SOL support
* 4. Handled 0 pre-balance token accounts
* 5. Handled optional accounts for Raydium's swap instructions
*/
class AmmInstructionProcessor {
@mirko23-byte
mirko23-byte / analysis_report_20241120_202044.md
Created November 20, 2024 19:20
Memecoin Analysis Report

Memecoin Analysis Report

Generated on 2024-11-20 20:19:06

Analyzed Twitter Accounts:

  • onchainvalue: 2 tweets
  • tombheads: 1 tweet
  • Overdose_AI: 7 tweets
  • 0x_Imperius: 1 tweet
  • aimemecoinsftw: 6 tweets
  • trmachine888: 20 tweets
@endrsmar
endrsmar / index.ts
Created January 9, 2024 12:11
Raydium new pool listener
import { LiquidityPoolKeysV4, MARKET_STATE_LAYOUT_V3, Market, TOKEN_PROGRAM_ID } from "@raydium-io/raydium-sdk";
import { Connection, Logs, ParsedInnerInstruction, ParsedInstruction, ParsedTransactionWithMeta, PartiallyDecodedInstruction, PublicKey } from "@solana/web3.js";
const RPC_ENDPOINT = 'https://api.mainnet-beta.solana.com';
const RAYDIUM_POOL_V4_PROGRAM_ID = '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8';
const SERUM_OPENBOOK_PROGRAM_ID = 'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX';
const SOL_MINT = 'So11111111111111111111111111111111111111112';
const SOL_DECIMALS = 9;
const connection = new Connection(RPC_ENDPOINT);
@gagarine
gagarine / win11-mouse-scroll-reverse.md
Last active August 3, 2026 03:58
Reverse Mouse Wheel scroll in Windows 11 (Natural Mode like MacOS)

Reverse Mouse Wheel scroll in Windows 11

Chose between natural mode like MacOS or Windows default mode.

Step 1: Open Windows PowerShell in Administrator Mode.

You can do this by going to Start Menu, type PowerShell, and click Run as Administrator.

Step 2: Copy the following code and paste it in the command line of Windows PowerShell:

$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
@TheGP
TheGP / gist:c11e188894eabb384393e38b88b2f671
Last active September 8, 2024 18:42
windows setup to make more like mac
SharpKeys install and
swap left ctrl and alt
capslock - home
NumLock - turn off
Ins - turn off
.ahk file put in startup folder and install https://www.autohotkey.com/
C:\Users\gp\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
@TheGP
TheGP / gist:0659811f4f07562cbed9f16186bc59a4
Last active September 8, 2024 18:40
Ubuntu desktop set up to make more like mac
swapping alt & ctrl with gnome tweaks:
https://askubuntu.com/questions/93624/how-do-i-swap-left-ctrl-with-left-alt-on-my-keyboardkeyboardkeyboardkeyboardkeyboard
sudo gedit /usr/share/X11/xkb/symbols/pc
compare it with (ignore capslock change)
https://gist.github.com/postrational/dd305349bb69f6e25ef0f21809a927eb
#setxkbmap -layout us