Skip to content

Instantly share code, notes, and snippets.

View rushiiMachine's full-sized avatar

rushii rushiiMachine

View GitHub Profile
@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=
@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);
@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);
@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)
@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active December 2, 2025 07:52
Ultimate guide to low-latency osu on linux
"""
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
@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
@Fobxx
Fobxx / shige-skins.md
Last active May 28, 2026 12:10
Shigetora skins
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
@dpschen
dpschen / BackupFirefoxSync.md
Last active May 10, 2026 06:48
Hacky way to export synced tabs of Firefox Sync / Weave and import them in OneTab

Hacky way to export synced tabs of Firefox Sync / Weave and import them in OneTab

Background

I am guilty beeing a tab messy and was searching for a while for a good solution to move my open tabs to OneTab. Especially on mobile the tab situation was extremely bad. When I realized that I had over 3000 (!!) tabs on my iPhone opened I acknowledge that I got to do something.

First I tried to just open the tabs in Firefox. When you rightclick a device on the "Synced Tabs" sidebar there is an "Open all tabs" entry. For 3000 tabs already my computer was already overloaded when opening them… Closing every other open program and removing every browser extension other then blockers also didn't do the trick. After some time the tabs seemed to be in an open state, but Firefox was not really responding. I tried closing the tabs via OneTab and also to save them all as bookmark via Bookmarks -&gt; Bookmark all Tabs but that also didn't work.