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 | |
DIALOG=${DIALOG=dialog} | |
tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$ | |
trap "rm -f $tempfile" 0 1 2 5 15 | |
ar=() | |
for i in `cat ~/.ssh/config |grep -w Host| sed -e "s/Host //g" | grep -Ei '[a-z]'` | |
do | |
ar+=($i "") | |
done | |
$DIALOG --title "SSH Servers" --menu "Bitte wähle ein Server:" 0 0 10 "${ar[@]}" 2> $tempfile |
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 | |
/usr/bin/youtube-dl -i -f 'bestaudio[ext=m4a]' --write-thumbnail --embed-thumbnail \ | |
--metadata-from-title "%(title)s" \ | |
--metadata-from-title "%(artist)s" \ | |
--output '/%(playlist_title)s/%(title)s/%(title)s.%(ext)s' \ | |
--download-archive "$1.txt" \ | |
--write-info-json \ | |
-q https://www.youtube.com/playlist?list=$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
import explorerhat, time, random | |
import RPi.GPIO as GPIO | |
import cwiid | |
mode = 0 | |
back = explorerhat.analog.three | |
front = explorerhat.analog.four | |
speed = 50 | |
wii_connected = False |
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
import explorerhat, time, random | |
import RPi.GPIO as GPIO | |
import cwiid | |
import os | |
import sys | |
speed = 50 | |
wii_connected = False | |
def connect_wii(): |
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
# -*- coding: utf-8 -*- | |
import os, pygame, random | |
pygame.init() | |
pygame.mouse.set_visible(False) | |
BACKGROUND = (0,0,0) | |
INTERVAL = os.getenv('INTERVAL', 60) | |
IMAGEFOLDER = os.getenv('IMAGEFOLDER', 'images') |