Discover gists
This is a mini-tutorial of sorts for getting started with gdb on the Switch, with the target audience being people who want to mod and/or reverse games, with no prerequisite knowledge of gdb. The goal will be to walk you through some of the basic workflows needed to use a debugger on the Switch, while being brief enough for skimming for when you forget things.
If some part is unclear, your OS doesn't have install instructions, or you feel part of your workflow should be added here, feel free to comment any additions.
(If you only need a quick reference Jump to the Appendix)
First off you'll need a version of GDB compatible with aarch64. This can be obtained via either a distribution of
using System; | |
using System.Collections.Generic; | |
public class PriorityQueue<T> { | |
class KeyNodeComparer : IComparer<(Key, T)> { | |
public int Compare((Key, T) x, (Key, T) y) { | |
return x.Item1 < y.Item1 ? -1 : x.Item1 > y.Item1 ? 1 : 0; | |
} | |
} |
// D* Lite is an incremental heuristic search algorithm that finds the shortest path in a graph | |
// from a goal node to a start node. It is designed to be efficient in terms of memory and computation | |
// while updating the graph in real-time. | |
// Koenig and Likhachev - http://idm-lab.org/bib/abstracts/papers/aaai02b.pdf | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; |
- Docker Hub - One private repo/image spot for free
- Three Scale - Very generous free tier 50GB of space, 500 Pulls a month etc..
- Canister - 20 private repos with almost no limits on free tier
- Code Fresh - Free tier for developers
- Setup Private Docker Registry - Digital Ocean hosted Tutorial
var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
var streamNode; | |
var masterNode; | |
var bypassNode; | |
var delayNode; | |
var feedbackNode; | |
//request an audio MediaStream track and save a reference to it | |
navigator.mediaDevices.getUserMedia({audio: true}) | |
.then(stream => { |
// requires the experimental v3 of transformersJS: | |
// npm install xenova/transformers.js#v3 | |
import { FeatureExtractionPipeline, pipeline } from "@xenova/transformers"; | |
export interface Entry<T> { | |
str: string; | |
metadata: T; | |
} | |
export interface VectorizedEntry<T> extends Entry<T> { |
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
# github.com/ndavison | |
import requests | |
import random | |
import string | |
from argparse import ArgumentParser | |
parser = ArgumentParser(description="Attempts to find hop-by-hop header abuse potential against the provided URL.") | |
parser.add_argument("-u", "--url", help="URL to target (without query string)") |
import requests | |
import base64 | |
from tqdm import tqdm | |
master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1' | |
base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1] | |
resp = requests.get(master_json_url) | |
content = resp.json() |