Skip to content

Instantly share code, notes, and snippets.

View davidcralph's full-sized avatar
🐧

David Ralph davidcralph

🐧
View GitHub Profile
@mika76
mika76 / stars.ps1
Last active April 24, 2025 10:07 — forked from sebble/stars.sh
List all starred repositories of a GitHub user.
[CmdletBinding()]
param (
[Parameter()]
[string]
$user = "mika76"
)
$URL = "https://api.github.com/users/$user/starred"
$PAGE = 0
@aetheryx
aetheryx / index.js
Last active May 2, 2020 14:24
arctis-7-tasmota; a small application to map the ChatMix slider on the SteelSeries Arctis 7 to a smart bulb running Tasmota (https://youtu.be/X5MLXNftdC4)
const HID = require('node-hid');
const mqtt = require('mqtt');
const config = {
/**
* The amount of times (per second) your headset gets polled.
* Higher = smoother, but more battery-hungry.
* In my experience setting this higher than 100 will cause your headset, Windows, or both to shit themselves.
*/
pollingRate: 10,
@davidcralph
davidcralph / rules.txt
Created September 3, 2019 16:59
MAL (MyAnimeList) Adblocker Rules
myanimelist.net##.js-scrollfix-bottom-rel > div:nth-of-type(1) > .mal-ad-unit > table > tbody > tr:nth-of-type(1) > td
myanimelist.net##.js-scrollfix-bottom-rel > div:nth-of-type(1) > .mal-ad-unit > table > tbody > tr:nth-of-type(2) > td
myanimelist.net##.js-scrollfix-bottom-rel > div:nth-of-type(1) > .mal-ad-unit > table > tbody > tr:nth-of-type(3) > td
myanimelist.net##.border_top > div:nth-of-type(2)
myanimelist.net##.border_top > div:nth-of-type(1)
myanimelist.net##.mt16.mauto.clearfix > .mal-ad-unit > table > tbody > tr:nth-of-type(1) > td
myanimelist.net##.mt16.mauto.clearfix > .mal-ad-unit > table > tbody > tr:nth-of-type(2) > td
myanimelist.net##.mt16.mauto.clearfix > .mal-ad-unit > table > tbody > tr:nth-of-type(3) > td
myanimelist.net##.js-scrollfix-bottom-rel > div:nth-of-type(1) > .mal-ad-unit > table
myanimelist.net##.mal-ad-unit > table > tbody > tr:nth-of-type(1) > td
@etoxin
etoxin / SSH over USB on a Raspberry Pi.md
Last active May 8, 2025 12:31
SSH over USB on a Raspberry Pi

Our long term goal will be to use SSH over USB. This means that we have to configure Raspbian to treat the USB port like an ethernet port. Mount the micro SD card in a computer (not Pi Zero) and open it with Finder, or Windows Explorer, or whatever it is that you use.

The first thing that you want to do is open a file at the root of the mounted drive called config.txt. In this file you want to add the following line at the very bottom:

dtoverlay=dwc2

The above line will set us up for the next file that we alter. The next file we alter is cmdline.txt, but it is a bit different. Parameters in this file are not delimited by new lines or commas, they are delimited by space characters. In this file we want to add the following:

@NoTimeForHero
NoTimeForHero / index.js
Created July 10, 2019 17:47
NodeJS script to remove 1000 DNS records added by Cloudflare when used * (wildcard) A record
// Now if you adding a domain with wildcard A record, Cloudflare uses strange scan, which added a 1000 trash domains (like 1-100, some english words like "ai", "air", "android").
// There's no way to bulk delete it, you can delete it only using their API.
// So I write a script that can help you with this problem.
// Discussions about same problem:
// https://community.cloudflare.com/t/delete-all-records-using-api/13410/2
// https://community.cloudflare.com/t/bulk-delete-dns-record/89540
const settings = {
email: 'your@email',
@nihaals
nihaals / CONTRIBUTING.md
Last active January 11, 2024 19:10
Discord Nitro Boosting

If you have some information to add, please leave a comment or DM me on Discord (Orangutan#9393).

Currently untested:

  • Duration of subscription giving more boosts or building up boosts possibly allowing you to spend multiple boosts on one guild
@Gustavo-Kuze
Gustavo-Kuze / force-ctrl-c-v.md
Last active June 21, 2025 11:18
Enable copy and paste in a webpage from the browser console
javascript:(function(){
  allowCopyAndPaste = function(e){
  e.stopImmediatePropagation();
  return true;
  };
  document.addEventListener('copy', allowCopyAndPaste, true);
  document.addEventListener('paste', allowCopyAndPaste, true);
  document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); 
@loveemu
loveemu / gax_info.md
Last active April 16, 2024 03:36
Shin'en GAX Sound Engine (GBA) Specification / Research Note

Shin'en GAX Sound Engine (GBA) Specification

The research is based on GAX Engine V3. Information about V2 can be found at the end of the document.

FYI: GaXM is a tool that can analyze GAX data. You may find more information there.

FYI: You can find my IDA FLIRT signature for GAX V3 here. https://github.com/loveemu/ida-sig

FYI: Gaxtapper: Diagnostic tool / Automated GSF ripper for GAX Sound Engine.

@loveemu
loveemu / List of games using GAX Audio Engine.txt
Last active July 19, 2024 10:07
List of games using GAX Audio Engine
GAX Sound Engine v1.99d (Mar 13 2001) IRIDION3D AGB-AI3E-USA 0028 - Iridion 3D (U)
GAX Sound Engine v1.99d (Mar 30 2001) TONY HAWK 2! AGB-ATHE-USA 0033 - Tony Hawk's Pro Skater 2 (U)
GAX Sound Engine v1.99d (Mar 30 2001) EWJ AGB-AEJE-USA 0037 - Earthworm Jim (U)
GAX Sound Engine v1.99d (Mar 30 2001) TONY HAWK 2! AGB-ATHD-DEU 0053 - Tony Hawk's Pro Skater 2 (G)
GAX Sound Engine v1.99d (Mar 30 2001) TONY HAWK 2! AGB-ATHF-FRA 0059 - Tony Hawk's Pro Skater 2 (F)
GAX Sound Engine v1.99d (Mar 30 2001) FORTRESS AGB-AFOE-USA 0088 - Fortress (U)
GAX Sound Engine v2.01a (Jun 6 2001) TANG TANG AGB-ATAE-USA 0094 - Tang Tang (U)
GAX Sound Engine v1.99f (Jun 13 2001) F14-TOMCAT AGB-AFTE-USA 0096 - F-14 Tomcat (U)
GAX Sound Engine v2.01b (Jun 22 2001) SPIDERMAN MM AGB-ASEE-USA 0115 - Spider-Man - Mysterio's Menace (U)
GAX Sound Engine v2.01a (Jun 6 2001) CAESARPALACE AGB-ACPE-USA 0116 - Caesar's Palace Advance - Millennium Gold Edition (U)
@davidcralph
davidcralph / style.css
Last active December 31, 2018 22:12
DBL Fixed CSS
/* Created by ohlookitsderpy, credit if used! */
/* FIXES */
.footer-links {
cursor: pointer !important; /* fix dark theme slider */
}
/* fixing weird text colour */
.botname,