Skip to content

Instantly share code, notes, and snippets.

@higstar
higstar / pycharm.bat
Last active October 26, 2017 06:10 — forked from arieljannai/pycharm.bat
Add PyCharm to context menu (right click menu)
@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
higstar / bluetooth.sh
Created September 15, 2017 11:28 — forked from RamonGilabert/bluetooth.sh
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"