Skip to content

Instantly share code, notes, and snippets.

View untergrundbiber's full-sized avatar

untergrundbiber untergrundbiber

View GitHub Profile
@untergrundbiber
untergrundbiber / der-bunt-color-harmonies-alpha-1-1.markdown
Created February 28, 2019 17:34
Der Bunt: Color Harmonies (Alpha 1.1)

Der Bunt: Color Harmonies (Alpha 1.1)

Todo:

  • Optimise for touch
  • 3d view of color distribution in different color spaces
  • contrast ratio from selected color to all other colors
  • save & export palette
  • alternate palette views

A Pen by David A. on CodePen.

#!/usr/bin/env bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:$PATH
set -e
basedir="$(dirname "$(readlink -f "$0")")"
tempdir=$(mktemp -d)
trap 'rm -rf "$tempdir"' EXIT
cd "$tempdir" || exit 1
vidurl="$1"
maxsize="$2"
@untergrundbiber
untergrundbiber / pi_update.sh
Last active November 30, 2016 21:50
An automated development build updater script for LibreELEC nightly builds from Milhouse
#!/usr/bin/env bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
set -e
var="$1"
# "LibreELEC_DEV" ; An automated development build updater script for LibreELEC nightly builds from Milhouse
server="http://milhouse.libreelec.tv/builds/master/RPi2/"
@untergrundbiber
untergrundbiber / ESP8266-nRF24L01.ino
Created October 13, 2015 09:29 — forked from crcastle/ESP8266-nRF24L01.ino
Using an Adafruit Huzzah ESP8266 with nRF24L01+ as a (one-way) internet gateway for several nRF24L01+ sensor nodes
#include <SPI.h>
#include <RF24Network.h>
#include <RF24.h>
#include <ESP8266WiFi.h>
const char* ssid = "ssid";
const char* password = "password";
const char* host = "coolapp.herokuapp.com";
#!/usr/bin/env bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
set -e
basedir="$(dirname "$(readlink -f "$0")")"
cd "$basedir"
starttime=$(date +%s)
BANDWIDTH=400
@untergrundbiber
untergrundbiber / oauth.sh
Last active February 3, 2022 20:49
YouTube OAuth Bash
#!/bin/bash
#YouTube OAuth authentication for shell-based YT-tools like youtube-dl
#by untergrundbiber 2014
#You need to register a app to obtaining clientId and clientSecret.
#https://developers.google.com/youtube/registering_an_application
#You can find the right scope here: https://developers.google.com/oauthplayground/
#--- Settings ---
clientId="000000000000.apps.googleusercontent.com"
@untergrundbiber
untergrundbiber / autodlyt.sh
Last active April 25, 2018 04:14
Auto-downloading YouTube new subscription videos http://blog.yjl.im/2010/11/auto-downloading-youtube-new.html
#!/bin/bash
# by Yu-Jie Lin
# BSD license
# 2010-11-10T19:13:46+0800
usage () {
echo "Usage: $(basename $0) username directory-to-store-everything"
exit 1
}
#!/bin/sh
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | grep -v linux-libc-dev | xargs apt-get purge -y
@untergrundbiber
untergrundbiber / kernel-update.sh
Last active December 28, 2015 14:49
Ubuntu Kernel Update
#!/bin/dash
LastKernelInstalled=$(ls /boot/ | grep img | cut -d "-" -f2 | tail -n 1)
LastKernelStable=$(lynx --dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | awk '/http/{print $2}' | grep -v rc | tail -n 1 | cut -d "/" -f 6)
LastKernelRC=$(lynx --dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | awk '/http/{print $2}' | grep rc | tail -n 1 | cut -d "/" -f 6)
link_stable=$(lynx --dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | awk '/http/{print $2}' | grep -v rc | tail -n 1)
link_rc=$(lynx --dump http://kernel.ubuntu.com/~kernel-ppa/mainline/ | awk '/http/{print $2}' | grep rc | tail -n 1)
# Check for dependencies
check_deps () {
DEPS=$(echo {lynx})