Skip to content

Instantly share code, notes, and snippets.

Avatar
😶

Danny Robinson stellartux

😶
View GitHub Profile
@stellartux
stellartux / confetti.js
Last active Apr 27, 2021
Bookmarklets (Whimsical)
View confetti.js
import('https://cdn.skypack.dev/pin/canvas-confetti@v1.4.0-RXPmBgwlGaqEvCqvGmjX/mode=imports,min/optimized/canvas-confetti.js').then(m=>m.default())
@stellartux
stellartux / update.sh
Last active Dec 17, 2020
Mindustry Server Update Script
View update.sh
#!/usr/bin/env sh
# Checks if latest version matches the last version downloaded, and if it doesn't, downloads the latest
downloadurl=$(curl -s https://github.com/Anuken/Mindustry/releases/latest/download/server-release.jar \
| grep -o -P '(?<=a href=").*(?=")' -)
latestversion=$(echo $downloadurl | grep -o -P '(?<=/)v[\d.]+(?=/)')
currentversion=$(if [ -f "version.txt" ]; then
cat version.txt
else
@stellartux
stellartux / default-programs.ps1
Last active Sep 21, 2020
Post Windows Reinstall Script
View default-programs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable -n allowGlobalConfirmation
choco install 7zip brave compact-timer cura-new deno epicgameslauncher ffmpeg firacode foobar2000 git github-desktop goggalaxy itch jre8 libreoffice julia microsoft-windows-terminal nodejs openscad steam uplay vlc vscode
@stellartux
stellartux / bytebeat.txt
Last active Apr 14, 2020
Bytebeat I've found
View bytebeat.txt
127 +
((random() * 64 - 32) * ((1&~t>>(11-1&~t>>10))&(1&~t>>9))) +
((t>>16>0)?(((( t * (32-5*(1&~t>>13)) / 27 ) & 0x55 )*2/3 - 32 ) * (1&~t>>9) * ((1&~t>>13&~t>>11) ^ (1&t>>14))):0) +
(((4&(t*((7&t>>11)|(8&t>>12&t>>11))/2))<<5 % 256) /3 -16) * (1&(~t>>9&~t>>8)) * (1&(t>>(16-(15&t>>14))|(t>>17))) * (1&~t>>19) +
((~t*t*(t>>14-((1&t>>18)*7&t>>12)&t>>10)%64)/3) * (1&t>>19)