This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder