Skip to content

Instantly share code, notes, and snippets.

@nyanSpark
nyanSpark / MoveTemporaryFoldersToRamdisk_MacOSX.sh
Last active May 12, 2018 18:49 — forked from pklaus/AlwaysMountRootFSWithNoatime_MacOSX.sh
Shell script to create RamDisk and move temp folders to RamDisk. Increased original RamFS values from 256/64 to 512/128. Moved startup item to /Library/StartupItems instead of /System/Library/StartupItems. https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/StartupItems.html
#!/bin/bash
# +----------------------------------------------------------------------+
# | |
# | Set up Mac OS X to store temporary files in RAM rather than on disk.|
# | |
# | By Philipp Klaus <http://blog.philippklaus.de> |
# | |
# | Originally by Ricardo Gameiro <http://blogs.nullvision.com/?p=357> |
# | Changes by Daniel Jenkins |
@nyanSpark
nyanSpark / pybot.py
Created January 24, 2015 01:10
pybot.py
import socket
import requests
import json
import time
import threading
# Connection Information
network = "irc.twitch.net"
port = 6667
channel = "#channelname"
import urllib2
import json
import time
import threading
import socket
import string
import os
import random
import traceback
import sys
@nyanSpark
nyanSpark / SKY2040 Configurations Update Backup Guide
Last active September 10, 2024 17:06
SKY2040 Leverless Firmware Update Guide 0.7.x
HOW TO UPDATE YOUR SKY2040 README
=================================
https://gp2040-ce.info/
https://github.com/OpenStickCommunity/GP2040-CE
Tested from 0.7.3 to 0.7.7
- SKY2040 uses the default 'Raspberry Pi Pico' chip as of Jan 2024.
- You want the Pico version of the firmware: GP2040-CE_0.X.X_Pico.uf2
- You can find official GP2040 firmware here: https://gp2040-ce.info/downloads/download-page
@nyanSpark
nyanSpark / aoostar_wtr_max.sh
Created September 15, 2025 19:54
AOOSTAR WTR MAX Help Guide for sensors and display configuration
# For Unraid 7.x / User Scripts or Terminal Commands
# AOOSTAR-X Service Start User Script
#!/bin/bash
cd /mnt/cache/appdata/AOOSTAR-X-linux && (nohup ./AOOSTAR-X > aoostar.log 2>&1 & echo $! > aoostar.pid && echo "PID saved to aoostar.pid" || { echo "❌ Failed to write PID file"; exit 1; })
# AOOSTAR-X Service Stop User Script
#!/bin/bash
PIDFILE="/mnt/cache/appdata/AOOSTAR-X-linux/aoostar.pid"