Skip to content

Instantly share code, notes, and snippets.

View garibarba's full-sized avatar

Guillermo González de Garibay garibarba

View GitHub Profile
@joel-wright
joel-wright / set-backlight.sh
Created January 9, 2017 23:27
AW13 OLED Set Brightness
#!/bin/bash
sleep 1
if [ -f ~/.brightness ]
then
read -r br < ~/.brightness
bri=`echo "${br} * 100" | bc -l | xargs printf "%.0f\n"`
echo $bri
if [ ${bri} -gt 100 ]
@garibarba
garibarba / dl_wontreadlist.md
Last active October 2, 2020 14:48
Deep Learning Won't-Read List
@joel-wright
joel-wright / monitor-backlight.sh
Created January 9, 2017 23:26
AW13 OLED Monitor Brightness
#!/bin/sh
path=/sys/class/backlight/intel_backlight
luminance() {
read -r level < "$path"/actual_brightness
factor=$((max / 100))
ret=`printf '%d\n' "$((level / factor))"`
if [ $ret -gt 100 ]; then
ret=100
fi