Skip to content

Instantly share code, notes, and snippets.

higstar / pycharm.bat
Last active Oct 26, 2017 — forked from arieljannai/pycharm.bat
Add PyCharm to context menu (right click menu)
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%
higstar /
Created Sep 15, 2017 — forked from RamonGilabert/
Bluetoothctl automation
#!/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"