This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os, sys | |
import pyudev | |
import subprocess | |
import time | |
import shutil | |
import argparse | |
from pathlib import Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import os, sys | |
import threading, queue | |
import requests | |
from tqdm import tqdm | |
BUF_SIZE = 0x1000 | |
TIMEOUT = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <cstdint> | |
#include <utility> | |
#include <type_traits> | |
#define ASSERT_SIZE(x, sz) static_assert(sizeof(x) == sz, "Wrong size in " #x) | |
#define ASSERT_STANDARD_LAYOUT(x) static_assert(std::is_standard_layout_v<x>, #x "is not standard layout") | |
struct rgb565_t { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET = $(notdir $(CURDIR)) | |
EXTENSION = elf | |
OUT = out | |
RELEASE = release | |
DEBUG = debug | |
SOURCES = src | |
INCLUDES = | |
LIBS = | |
ARCH = -march=native -fpie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cstring> | |
#include <cmath> | |
#include <string> | |
#include <switch.h> | |
#include "async_logger.hpp" | |
Result AsyncLogger::start() { | |
if (is_running()) return -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Needs packages python-dbus & python-gobject | |
# ~/scripts/kbd_idle.sh: | |
# !/bin/sh | |
# cd ~/scripts | |
# exec python3 kbd_idle.py & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .zshenv | |
export ZDOTDIR=~/.config/zsh | |
export DEVKITPRO=/opt/devkitpro | |
export DEVKITARM=${DEVKITPRO}/devkitARM | |
export DEVKITPPC=${DEVKITPRO}/devkitPPC | |
export PATH=${DEVKITPRO}/tools/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <switch.h> | |
int main(int argc, char **argv) { | |
consoleInit(NULL); | |
FsFileSystem sd_fs; | |
Result rc = fsOpenSdCardFileSystem(&sd_fs); | |
if (R_FAILED(rc)) | |
printf("Failed to open sd filesystem: %#x", rc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <cstdint> | |
#include <string> | |
#include <vector> | |
#include <switch.h> | |
#include "error.hpp" | |
#include "utils.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python2 | |
import os, sys | |
import re | |
import lib.nxo64 as nxo64 | |
def main(pattern, filename): | |
f = nxo64.load_nxo(open(filename, 'rb')) | |
f.binfile.seek(0) |
OlderNewer