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
#!/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" |
#!/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/" |
#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 |
#!/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" |
#!/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 |
#!/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}) |