Skip to content

Instantly share code, notes, and snippets.

View redthing1's full-sized avatar

red thing redthing1

  • the eternal wonders of space
  • California
View GitHub Profile
@exelotl
exelotl / tonc-dark.user.css
Last active June 4, 2023 21:09
Dark theme for the Tonc GBA tutorial
/* ==UserStyle==
@name Tonc Dark
@namespace exelo.tl
@version 1.0.4
@description A dark theme for the Tonc GBA tutorial, based on Water.css
@updateURL https://gist.githubusercontent.com/exelotl/b6b1592a910ae7914e48fda14c593cd3/raw/tonc-dark.user.css
@author exelotl
==/UserStyle== */
@-moz-document url-prefix("https://www.coranac.com/tonc/text/"), url-prefix("https://coranac.com/tonc/text/"), url-prefix("http://www.coranac.com/tonc/text/"), url-prefix("http://coranac.com/tonc/text/") {
@nreboud
nreboud / GreHack2019_CTF_challenge.md
Last active June 21, 2024 04:10
GreHack2019 CTF challenge - White-box

GreHack2019 CTF challenge

One of the challenges of the GreHack2019 CTF was a white-box. The White-box has been pushed to the SideChannelMarvels Project.

1. White-box? What is that?

White-box cryptography is presented here : http://www.whiteboxcrypto.com/. If you are not fammilair with the concept, Brecht Wyseur itroduced it well in "white-box cryptography: hiding keys in software", MISC magazine, April 2012

2. GreHack2019 White-box

The GreHack2019 CTF white-box is very classic AES128 white-box implementation. The fact that it implements an AES can be found by having a look to the code and by identifying the 11 rounds or by simply looking to the input sample "Who Is Rijndael".

@qzm
qzm / aria2.conf
Last active April 18, 2025 06:09
Best aria2 Config
### Basic ###
# The directory to store the downloaded file.
dir=${HOME}/Downloads
# Downloads the URIs listed in FILE.
input-file=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to FILE on exit.
save-session=${HOME}/.aria2/aria2.session
# Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0
save-session-interval=60
# Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5
@talaviram
talaviram / add_debug_entitlement.sh
Last active April 10, 2025 03:20
Simple Utility Script for allowing debug of hardened macOS apps.
#! /bin/bash
# Simple Utility Script for allowing debug of hardened macOS apps.
# This is useful mostly for plug-in developer that would like keep developing without turning SIP off.
# Credit for idea goes to (McMartin): https://forum.juce.com/t/apple-gatekeeper-notarised-distributables/29952/57?u=ttg
# Update 2022-03-10: Based on Fabian's feedback, add capability to inject DYLD for sanitizers.
#
# Please note:
# - Modern Logic (on M1s) uses `AUHostingService` which resides within the system thus not patchable and REQUIRES to turn-off SIP.
# - Some hosts uses separate plug-in scanning or sandboxing.
# if that's the case, it's required to patch those (if needed) and attach debugger to them instead.
@kfl
kfl / module1.wat
Last active April 16, 2023 23:36
Javascript WebAssembly multiple modules
(module
(import "shared" "memory" (memory 1))
(import "shared" "table" (table 1 anyfunc))
(elem (i32.const 0) $read1) ;; set table[0] to read1 for indirect calling
(func $read1 (result i32)
i32.const 4
i32.load)
(func $read0 (result i32)
@marksharrison
marksharrison / .stglobalignore
Created September 3, 2019 10:00
Syncthing global ignore file
// .stglobalignore
// Syncthing Ignore Patterns - https://docs.syncthing.net/users/ignoring.html#patterns:
// Useful .stignore Patterns - https://goo.gl/DVHI1h
// Usage: Add the line below to all .stignore files for each Syncthing node
// #include .stglobalignore
// Incomplete Downloads
// Firefox downloads
*.part
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@John-Paul-R
John-Paul-R / FabricModList.md
Last active April 18, 2025 14:45
A list of (almost all) mods for Fabric

Fabric Mod List

This page contains a list of the current Minecraft Fabric mods. (As of 2021-08-19 08:05:23 Timezone: UTC+0000 (GMT))

To search for mods by name, category, or download count, visit the website, fibermc.com!

Note: You can view a mod's source files by following the "Source" link on its CurseForge page, assuming that the mod's creator has made such files public.

There are currently 2954 mods in this list.

@Omar-Ikram
Omar-Ikram / EndpointSecurityDemo.m
Last active April 4, 2025 15:29
A demo of using Apple's EndpointSecurity framework - tested on macOS Monterey 12.2.1 (21D62)
//
// main.m
// EndpointSecurityDemo
//
// Created by Omar Ikram on 17/06/2019 - macOS Catalina 10.15 Beta 1 (19A471t)
// Updated by Omar Ikram on 15/08/2019 - macOS Catalina 10.15 Beta 5 (19A526h)
// Updated by Omar Ikram on 01/12/2019 - macOS Catalina 10.15 (19A583)
// Updated by Omar Ikram on 31/01/2021 - macOS Big Sur 11.1 (20C69)
// Updated by Omar Ikram on 07/05/2021 - macOS Big Sur 11.3.1 (20E241)
// Updated by Omar Ikram on 04/07/2021 - macOS Monterey 12 Beta 2 (21A5268h)
@norcalli
norcalli / yay-update-ignore-errors
Last active February 22, 2023 09:34
A wrapper script to run yay and incrementally build a list of packages to ignore if they error out.
#!/bin/sh
# Wrapper script around yay to try to ignore errors
# Copyright © 2019 Ashkan Kiani
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,