This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| CURL_FLAGS="--silent --skip-existing --fail --max-time 1 --ipv4 --retry 5 --max-filesize 1" | |
| FW_VERSION="1.35.0" | |
| KINDS="SHTW1_01 SHDW_01 SHTW1_01 SHRGB_01 SHTWC_01 BLANK" | |
| FILENAMES="Consumer_FW_1.bin Consumer_FW_2.bin wizlight.bin" | |
| echo "Firmware version: $FW_VERSION" | |
| for kind in $KINDS; do | |
| echo "Kind: $kind" | |
| for filename in $FILENAMES; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setw -g mode-keys vi | |
| setw -g allow-rename off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| goto check_Permissions | |
| :check_Permissions | |
| echo Administrative permissions required. Detecting permissions... | |
| net session >nul 2>&1 | |
| if %errorLevel% == 0 ( | |
| echo Success: Administrative permissions confirmed. | |
| ) else ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| taskkill /f /im explorer.exe | |
| cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer | |
| attrib -h iconcache_*.db | |
| del iconcache_*.db | |
| start explorer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # If argument is non-empty and the package exitst | |
| if [[ -n $1 ]] && [[ $(apt show $1) ]]; then | |
| dir=$HOME/$1 | |
| #rm -rf $dir # Uncomment for development | |
| mkdir $dir | |
| cd $dir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Spigot | |
| [Service] | |
| Type=forking | |
| Restart=on-failure | |
| User=spigot | |
| ExecStart=/opt/spigot/start.sh | |
| KillMode=none | |
| ExecStop=/opt/spigot/stop.sh |