I no longer have this device. Use at your own risk.
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 -euo pipefail | |
| shopt -s inherit_errexit | |
| if [[ $# -ne 1 ]]; then | |
| >&2 echo "usage: $0 <hostname>" | |
| exit 1 | |
| fi | |
| # fix freeze when adb is not running |
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 | |
| while [[ true ]]; do | |
| # Subscribe to window events in Sway, capturing the output | |
| output=$(swaymsg -t subscribe '["window"]') | |
| # Check the return value of the swaymsg command | |
| retval=$? | |
| if [[ $retval -ne 0 ]]; then | |
| >&2 echo "$0: swaymsg subscription failed with $retval. Retrying in 10 seconds..." |
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
| all: | |
| @mkdir -p $$(find -name '*.tex' -printf 'output/%h\n') | |
| @SOURCE_DATE_EPOCH=0 latexmk -pdf -output-directory=output | |
| clean: | |
| @rm -rf output/ |
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
| # Create a NetSharingManager object | |
| $m = New-Object -ComObject HNetCfg.HNetShare | |
| # Find connections | |
| $c_wan = $m.EnumEveryConnection |? { $m.NetConnectionProps.Invoke($_).Name -eq 'WLAN' } | |
| $c_lan = $m.EnumEveryConnection |? { $m.NetConnectionProps.Invoke($_).Name -eq 'vEthernet (internal)' } | |
| # Get configurations | |
| $config_wan = $m.INetSharingConfigurationForINetConnection.Invoke($c_wan) | |
| $config_lan = $m.INetSharingConfigurationForINetConnection.Invoke($c_lan) |
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 | |
| if "%~1" equ "" ( | |
| echo Usage: %~n0 file | |
| exit /b | |
| ) | |
| if not exist "%~1" ( | |
| echo No such file or directory | |
| exit /b |
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/sh | |
| CURL=/usr/bin/curl | |
| if [ $# -ne 2 ]; then | |
| echo "Usage: $0 <username> <password>" | |
| exit 1 | |
| fi | |
| check() |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Gwx] | |
| "DisableGwx"=dword:00000001 |