View pycharm.bat
@echo off | |
@rem throw this file in jetbrains installation folder, it takes the last created PyCharm folder (the latest ide update) for the script | |
SET JetBrainsPath=C:\Program Files\JetBrains | |
FOR /F "delims=" %%i IN ('dir /b /ad-h /t:c /od -filter "%JetBrainsPath%\PyCharm*"') DO SET a=%%i | |
SET PyCharmPath=%JetBrainsPath%\%a%\bin\PyCharm64.exe | |
echo %PyCharmPath% |
View bluetooth.sh
#!/usr/bin/expect -f | |
set prompt "#" | |
set address [lindex $argv 0] | |
spawn sudo bluetoothctl -a | |
expect -re $prompt | |
send "default-agent\r" | |
expect "Default agent request successful" | |
send "remove $address\r" |