Skip to content

Instantly share code, notes, and snippets.

@nomicode
nomicode / btSignal.sh
Created March 31, 2024 17:18 — forked from mikerr/btSignal.sh
Bluetooth RSSI signal strength
# install bluetooth tools
sudo apt-get install --no-install-recommends bluetooth
# find MAC address (needs to be discoverable)
hcitool scan
# ping it
sudo l2ping -c 1 12:34:56:78:90
# Connect by MAC
@nomicode
nomicode / cpulimit.py
Created June 26, 2022 16:47 — forked from anonymous/cpulimit.py
reduce the cpu time of a process by pausing and resuming it repeatedly
#!/usr/bin/env python
import time, os, sys, signal
sleeptime = waketime = 0.01
def send(signal, pids):
for pid in pids:
os.kill(pid, signal)