This file contains 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 | |
@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% |
This file contains 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
#!/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" |