Skip to content

Instantly share code, notes, and snippets.

View RedL0tus's full-sized avatar
🤦‍♀️
咸鱼

Jiangjin Wang RedL0tus

🤦‍♀️
咸鱼
View GitHub Profile
@RedL0tus
RedL0tus / tgnick.service
Last active October 24, 2020 03:03
Real time nick (systemd timer version)
[Unit]
Description=Telegram nickname updater
After=network-online.target
[Service]
User=yourname
Type=oneshot
WorkingDirectory=/path/to/updater
ExecStart=/path/to/updater/venv/bin/python3 /path/to/updater/updater.py
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFvemhcBEAD6aviG1i3EdgHCMlinIFytaih72WN1CMlAu0ToS2BEockYwpPd
w5H8A38R6mhvawNHutCMdpbtK8XlFElkXDnZVo07Bkc8j6/m/aukqDSgxosN29HU
B5huXCuKvk3UArNQ/Bp3MLKnwRMtyURn4BXqPR4dTTKq2FuZgfYUMA3hlWN1+yLU
0F9HODTAJT4d0oRHKCNf3b0jrtjEqoisNltkjmuujaQBpkV1cGO2fODg4hW7HBr+
8tj2AhyOQfk+UgJTcga9jzF/vnOOcZvzJaA46aTHq5u44KCC8zBbw3Yq2yb1IloN
g6iwPRGJSSwp4sA6SL66xPTfz/RRYuxok46hFcVpQMZyvAnQLM8O3gD5PH7rUi21
FqbdUU7rA9vnj14rkr8dcbsV36zGB4t0VlaBBa2COSXq1qL1DUCnkiSEDKRDVQgR
jiP+6pdNsf2z9iXrdsTMChxBRfp6B78KzUZ2vcKgNu6SdN26Oj0HAsfQ4pyQzuTG
@RedL0tus
RedL0tus / ICS51-MARS.scpt
Created October 1, 2021 05:50
AppleScript to create an application bundle for ICS-51 MARS
set UnixPath to POSIX path of (path to me as text)
set jarPath to UnixPath & "mars.jar"
set iconPath to UnixPath & "/Contents/Resources/applet.icns"
set runMars to UnixPath & "runMars"
set unameM to do shell script "uname -m"
set unameA to do shell script "uname -a"
# Detect architecture
if (unameM contains "x86_64") then
if (unameA contains "ARM64") then
@RedL0tus
RedL0tus / config.json
Created October 4, 2018 05:13
Not-Chicory!
{
"against": [
"\u4e0d\u662f"
],
"blacklist": {
"chars": [
"\u200b"
],
"ids": []
},
@RedL0tus
RedL0tus / year_progress.sh
Last active December 12, 2023 16:09
\\\ Year Progress ///
# Year Progress
export LENGTH=20;
function GET_PERCENTAGE {
local CURRENT_YEAR=$(date +%Y);
if [ $((CURRENT_YEAR % 400)) -eq 0 ]; then
local TOTAL_DAYS=366;
elif [ $((CURRENT_YEAR % 100)) -eq 0 ]; then
local TOTAL_DAYS=365;
elif [ $((CURRENT_YEAR % 4)) -eq 0 ]; then