Skip to content

Instantly share code, notes, and snippets.

View CodeByAidan's full-sized avatar
💻
i love HPC/DL

Aidan CodeByAidan

💻
i love HPC/DL
View GitHub Profile

Type Asset:

  {
    "id": 123123123123,
    "name": "asset_key",
    "type": 1
  }
  • ID: The ID of the asset
@justinian
justinian / linux-x64-nasm-cheatsheet.md
Last active June 8, 2026 02:23
x64 NASM Cheat Sheet

x64 NASM cheat sheet

Registers

64 bit 32 bit 16 bit 8 bit
A (accumulator) RAX EAX AX AL
B (base, addressing) RBX EBX BX BL
C (counter, iterations) RCX ECX CX CL
D (data) RDX EDX DX DL
@pcgeek86
pcgeek86 / gist:a1fd9d26f8ad46b51adf9513f67b95f2
Last active June 10, 2025 16:09
Install & test Selenium with Firefox / Gecko driver on headless Ubuntu 18.04 LTS server
sudo apt update
sudo apt install firefox python3-pip xvfb x11-utils --yes
sudo -H pip3 install bpython selenium
export DISPLAY=:2
Xvfb $DISPLAY -ac &
export GECKO_DRIVER_VERSION='v0.24.0'
wget https://github.com/mozilla/geckodriver/releases/download/$GECKO_DRIVER_VERSION/geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
tar -xvzf geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
@andyalmeida
andyalmeida / leitor.js
Last active November 18, 2022 22:42
Load .pdf files with pdf.js
var leitor = {};
leitor.PageNum = 1;
var pdfDoc = null;
var pageRendering = false;
var pageNumPending = null;
var scale = 0.8;
// Prepare canvas using PDF page dimensions
var canvas = null;
var context = null;
@psambit9791
psambit9791 / Gradient Descent Demonstration.ipynb
Last active January 23, 2023 02:51
Implementation of a Basic Neural Network from Scratch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HighwayofLife
HighwayofLife / cloud_init.yaml
Last active June 4, 2026 04:14
Install Docker via Cloud Init on Ubuntu VM
#cloud-config
packages:
- apt-transport-https
- ca-certificates
- curl
- gnupg-agent
- software-properties-common
# Enable ipv4 forwarding, required on CIS hardened machines
  • gen_iplist.py
  • pac.patch
  • pac_datauri.py
  • pac_server.py
  • route.py
  • setroute.ps1
  • showroute.ps1
@XielQs
XielQs / Get_Discord_Token.md
Last active June 18, 2026 09:01
Get self discord token using console

How to get your discord token using browser console

  1. Open developer tools in browser (if you using desktop app use Ctrl+Shift+I shortcut)
  2. Switch current tab to Console
  3. Write this code and press enter
window.webpackChunkdiscord_app.push([[Symbol()],{},o=>{for(let e of Object.values(o.c))try{if(!e.exports||e.exports===window)continue;e.exports?.getToken&&(token=e.exports.getToken());for(let o in e.exports)e.exports?.[o]?.getToken&&"IntlMessagesProxy"!==e.exports[o][Symbol.toStringTag]&&(token=e.exports[o].getToken())}catch{}}]),window.webpackChunkdiscord_app.pop(),token;

It will return your Discord token!

import os
import threading
try:
import EXAMPLE v1
except:
os.system("pip install EXAMPLE v1")
import EXAMPLE v1
try:
@CodeByAidan
CodeByAidan / math.tex
Last active November 18, 2022 22:43
i hate you
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{xcolor}
\usepackage{xcolor}
\definecolor{blue}{RGB}{54,151,220}
\definecolor{lime}{RGB}{45,204,113}
\definecolor{orange}{RGB}{231,128,33}