Skip to content

Instantly share code, notes, and snippets.

View asdolo's full-sized avatar
💻

Lucas asdolo

💻
  • Buenos Aires, Argentina
View GitHub Profile
@Slluxx
Slluxx / patchNXapps.md
Last active November 30, 2025 10:07
How to patch Nintendo Switch Applications in IDA

Patching the Youtube App

In short

  1. Extract the main NSO
  2. Convert it into an ELF (to strip header/hashes)
  3. Load it into Ida, find the function and patch the bytes back into the binary
  4. Convert the ELF back into NSO
  5. Use the nso as exefs patch or re-import it into the NCA/NSP
@softdream1981
softdream1981 / notify_telegram_bot_ip.sh
Created August 30, 2020 21:22 — forked from tonythomas01/notify_telegram_bot_ip.sh
Bash script to post to Telegram bot when your machine IP address change #telegram #ip #bot
#!/usr/bin/env bash
# Script stores the current IP in a tmp file and later checks if it changed when run. POSTS to a Telegram bot.
# Check how you can create a bot at https://core.telegram.org/bots
old_ip=`cat /tmp/currentip`
current_ip=`wget -qO- https://ipecho.net/plain`
if [ $current_ip != $old_ip ]; then
curl -s -X POST https://api.telegram.org/bot<TELEGRAM_BOT_TOKEN>/sendMessage -d chat_id=<CHAT_ID> -d text="Machine changed IP from: ${old_ip} to ${current_ip}"
@stefanmaric
stefanmaric / copy-to-clipboard-bookmarklet.md
Created September 7, 2016 20:54
Create Bookmarklet (browser bookmark that executes Javsacript) to copy a given text to Clipboard

Copy-to-clipboard Bookmarklet

Create Bookmarklet (browser bookmark that executes Javsacript) to copy a given text to Clipboard.

This is the base javascript:

(function (text) {
  var node = document.createElement('textarea')
  var selection = document.getSelection()
@timetocode
timetocode / AABB.js
Created May 24, 2015 22:47
Quadtree and AABB gists from nengi
//var BinarySerializer = require('./BinarySerializer')
//var BinaryType = require('./BinaryType')
// axis-aligned bounding box
/* PARAMS: (Point)center, (Point)half */
function AABB(x, y, halfWidth, halfHeight) {
this.initialize(x, y, halfWidth, halfHeight)
}
AABB.pool = []
@willurd
willurd / web-servers.md
Last active December 5, 2025 14:02
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000