Skip to content

Instantly share code, notes, and snippets.

satmandu

  • New York, NY
Block or report user

Report or block satmandu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wcoastsands
wcoastsands / rpi-thermal-monitor.sh
Last active Feb 4, 2020
Reports the current temperatures, frequency, and throttled state for Raspberry Pi based systems.
View rpi-thermal-monitor.sh
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
# Resolve $SOURCE until the file is no longer a symlink.
while [ -h "$SOURCE" ]; do
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
# If $SOURCE was a relative symlink, we need to resolve it
# relative to the path where the symlink file was located.
done
View 20-bt-auto-enable-a2dp.rules
# /etc/udev/rules.d/20-bt-auto-enable-a2dp.rules
# hxss
SUBSYSTEM=="bluetooth", ACTION=="add", RUN+="/home/replace-it/bt-auto-enable-a2dp.sh"
@developer-vs
developer-vs / adb_update.sh
Created May 22, 2018
This script will update adb & fastboot to the latest version
View adb_update.sh
#!/bin/bash
wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
unzip \platform-tools-latest-linux.zip
sudo cp platform-tools/adb /usr/bin/adb
sudo cp platform-tools/fastboot /usr/bin/fastboot
@higstar
higstar / bluetooth.sh
Created Sep 15, 2017 — forked from RamonGilabert/bluetooth.sh
Bluetoothctl automation
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"
@hfreire
hfreire / rpi-usb.sh
Last active Jul 24, 2019
Enable/disable power on Raspberry Pi USB ports + Ethernet
View rpi-usb.sh
#!/bin/sh
SOC_USB=/sys/devices/platform/soc/20980000.usb
if [ ! -d $SOC_USB ];
then
SOC_USB=/sys/devices/platform/soc/3f980000.usb # Raspberry Pi 3
fi
BUSPOWER=$SOC_USB/buspower
@RamonGilabert
RamonGilabert / bluetooth.sh
Last active Apr 6, 2020
Bluetoothctl automation
View bluetooth.sh
#!/usr/bin/expect -f
set prompt "#"
set address [lindex $argv 0]
spawn sudo bluetoothctl -a
expect -re $prompt
send "remove $address\r"
sleep 1
expect -re $prompt
You can’t perform that action at this time.