Skip to content

Instantly share code, notes, and snippets.

View naseemap47's full-sized avatar
🎯
Focusing

NASEEM A P naseemap47

🎯
Focusing
View GitHub Profile
@naseemap47
naseemap47 / setup.sh
Last active November 1, 2023 11:27
Setup Jetson Inference on Jetson Nano
sudo apt update
sudo apt upgrade -y
# PIP
sudo apt install python3-pip -y
# Jetson Fan
sudo apt install python3-dev -y
git clone https://github.com/Pyrestone/jetson-fan-ctl.git
cd jetson-fan-ctl
sudo ./install.sh
@angeloped
angeloped / change_vol.py
Created March 31, 2019 16:35
Change master audio volume in Linux using python.
import subprocess
def get_master_volume():
proc = subprocess.Popen('/usr/bin/amixer sget Master', shell=True, stdout=subprocess.PIPE)
amixer_stdout = proc.communicate()[0].split('\n')[4]
proc.wait()
find_start = amixer_stdout.find('[') + 1
find_end = amixer_stdout.find('%]', find_start)
return float(amixer_stdout[find_start:find_end])