Skip to content

Instantly share code, notes, and snippets.

View izackp's full-sized avatar

Isaac Paul izackp

View GitHub Profile
@izackp
izackp / UpdatingSwitchSoftware.md
Last active July 8, 2024 23:57
Updating Switch Software

Notes

Don't do any of this on a mac. Macos sets bits on file attributes as well as adds spotlight files and a ton of metadata files which interfer.

This is for a setup with emummc.

Steps

  1. Backup Hekate and atmosphere by copying bootloader atomosphere sept
  2. Download and overwrite atmosphere on the sd card (https://github.com/Atmosphere-NX/Atmosphere/releases)
    • Daybreak should be included
    • I used the version with mesosphere which is just an opensource version of the switch kernal.
@izackp
izackp / disableDriveMetadata.sh
Last active July 14, 2021 00:46
Script to disable volume meta on MacOS (OSX)
#!/bin/bash
printf "\n** Tool to disable metadata on volume **\n\n"
printf "Enable full disk access to delete files:\n"
printf "\tSystem Preferences -> Security & Privacy -> Privacy -> Full Disk Access\n"
printf "\tAdd Terminal to have full disk access then restart the terminal\n\n"
DRIVENAME="/Volumes/$1"
if test -z "$1"
then
@izackp
izackp / Bandit.entity.json
Created July 20, 2021 01:56
Experiment Character Controller in JSON. Mostly just high level components, actions, and event handlers that can be mapped around pretty easily. State is stored via stack; by pushing and popping components (behavior). Falls short of usefulness mostly through readability. Perhaps that could be solved with a UI builder and live preview.
{
"$type":"Models.Components.ComponentGroupVersioned",
"version": 0.1,
"subcomponents": [
{
"$type": "Models.Components.CharacterComponent",
"displayName": "Bandit",
"componentRefs":["DefaultSkin", "Body", "BodyStack", "Feet", "FeetStack", "Target"]
},
{
@izackp
izackp / BlurImageView.java
Created November 10, 2021 21:08 — forked from bartektrail/BlurImageView.java
BlurImageView allows to dynamically blur an image and smoothly pass from sharp to fully blurred image. It's extended ImageView.
package pl.snowdog.material.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.renderscript.Allocation;
// NOTE: For best viewing experience, click "Raw" in the top right of the Gist page, or download
// this file and view it in your favorite text editor with syntax highlighting!
//==============================================
//| Title : SDL 2.0 API Quick Reference |
//| Author : https://github.com/dbechrd/ |
//| Last updated : Jan 8, 2023 |
//==============================================
// Based on: https://wiki.libsdl.org/SDL2/APIByCategory (retrieved Jan 8, 2023)
@izackp
izackp / socks-create.sh
Created October 17, 2024 00:14 — forked from AfroThundr3007730/socks-create.sh
Create an on-demand SSH-based SOCKS5 proxy via systemd socket activation
#!/bin/bash
# These steps will allow the setup of an on-demand SSH proxy
# Three unit files will be created to serve this purpose:
# ssh-socks-helper.socket - The listening socket providing activation
# ssh-socks-helper.service - A systemd proxy to pass the socket fd
# ssh-socks.service - The actual SSH service providing the tunnel
cat <<'EOF' > ~/.config/systemd/user/ssh-socks-helper.socket
[Unit]
Description=Proxy Helper Socket for Bastion SOCKS5 Proxy