This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DEV="/sys/class/backlight/intel_backlight" | |
set -eu | |
if [[ $1 == "up" ]]; then | |
delta=0.1 | |
elif [[ $1 == "down" ]]; then | |
delta=-0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
#extension GL_OES_standard_derivatives : enable | |
uniform float time; | |
uniform vec2 mouse; | |
uniform vec2 resolution; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Downloads a binary file from the internetz and makes it executable. What could possibly go wrong? :D | |
INSTALL="/opt/gitea" | |
set -eu | |
set -o pipefail | |
path=$(curl -sL https://github.com/go-gitea/gitea/releases/latest | sed -n 's/.*<a href="\([^"]\+linux-amd64\)".*$/\1/p') | |
ofile=$INSTALL/$(basename "$path") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Environment checks {{{ | |
ifdef VERBOSE | |
Q := | |
E := @true | |
else | |
Q := @ | |
E := @echo | |
# Output coloring {{{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Simple script to listen to Digitaly Imported channels without needing the | |
# abortion of a piece of software that is Flash. | |
if [ -e $1 ]; then | |
echo "Usage: $0 <channel>" | |
echo | |
echo "Available channels:" | |
curl "http://pub7.di.fm/" -s \ |