Skip to content

Instantly share code, notes, and snippets.

View rushiiMachine's full-sized avatar

rushii rushiiMachine

View GitHub Profile
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
@Fobxx
Fobxx / shige-skins.md
Last active May 28, 2026 12:10
Shigetora skins
@thomasbnt
thomasbnt / code_colors_discordjs.md
Last active May 23, 2026 00:52
Code colors for embed discord.js

Here is an updated list of the colors that are currently implemented with a name. To using colors on discord.js, this is a typedef Colors, Colors.Aqua to get the Aqua color.

Name Int value Hex Code
Default 0 #000000
Aqua 1752220 #1ABC9C
DarkAqua 1146986 #11806A
Green 5763719 #57F287
DarkGreen 2067276 #1F8B4C
"""
Delete all saved posts / comments on your reddit account with PRAW.
See: https://lewery.ca/automation/delete-all-saved-reddit-links
Needs Python 3+ and Praw 5.3.0
"""
import argparse
import praw
@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active December 2, 2025 07:52
Ultimate guide to low-latency osu on linux
@stojg
stojg / sleep.ino
Last active March 15, 2026 03:16
Arduino sleep example
// This is an example how to put an arduino board into deep sleep to save on battery power and
// periodically wake up to run some logic. Ideal for sensor stations like plant moisture sensors.
#include "Arduino.h"
#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
// Blink Before sleeping
#define LED_PIN (13)
@Wieku
Wieku / arduino.c
Created February 17, 2016 23:14
osu! touch keyboard
#include <CapacitiveSensor.h>
CapacitiveSensor sens1 = CapacitiveSensor(8,6);
CapacitiveSensor sens2 = CapacitiveSensor(4,2);
void setup() {
sens1.set_CS_AutocaL_Millis(0xFFFFFFFF);
sens2.set_CS_AutocaL_Millis(0xFFFFFFFF);
Serial.begin(115200);
@apangin
apangin / Bytecodes.java
Created January 31, 2016 19:16
Using JVMTI to obtain bytecodes of a Java method
import java.lang.reflect.Method;
import java.util.Arrays;
public class Bytecodes {
static {
System.loadLibrary("bytecodes");
}
private static native byte[] getBytecodes(Method method);
@valeth
valeth / PKGBUILD
Created August 12, 2014 12:38
[archlinux] PKGBUILD template
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <youremail@domain.com>
pkgname=NAME
pkgver=VERSION
pkgrel=1
epoch=