This file contains hidden or 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 | |
| baseurl="http://somafm.com" | |
| tmpdir="/tmp/" | |
| boldtext=`tput bold` | |
| normaltext=`tput sgr0` | |
| WGET="/usr/bin/wget" | |
| MPLAYER="/usr/bin/mplayer" | |
| stationnames=("Christmas Rocks!" "Christmas Lounge" "Xmas in Frisko (holiday)" "Groove Salad (ambient/electronica)" "Lush (electronica)" "Earwaves (experimental)" "Deep Space One (ambient)" "Drone Zone (ambient)" "PopTron (alternative)" "DEF CON Radio (specials)" "Dub Step Beyond (electronica)" "Space Station Soma (electronica)" "Mission Control (ambient/electronica)" "Indie Pop Rocks! (alternative)" "Folk Forward (folk/alternative)" "BAGeL Radio (alternative)" "Digitalis (electronica/alternative)" "Sonic Universe (jazz)" "Secret Agent (lounge)" "Suburbs of Goa (world)" "Boot Liquor (americana)" "Illinois Street Lounge (lounge)" "The Trip (electronica)" "cliqhop idm (electronica)" "Iceland Airwaves (alternative)" "Covers (eclectic)" "Underground 80s (alternative/electronica)" "Beat Blender (electronica)" "Doomed (ambient/industrial)" "Black Rock FM (eclectic)" "SF |
This file contains hidden or 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
| from datetime import datetime, timedelta | |
| import json | |
| import time | |
| import ephem | |
| from flask import Flask | |
| import requests | |
| from werkzeug.contrib.fixers import ProxyFix | |
| from constants import MAIN_LIGHTS_GROUP_ID |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import email, email.header, datetime, imaplib, re, sys | |
| host = 'imap.gmail.com' | |
| username = '' | |
| password = '' | |
| folder = 'INBOX' | |
| def login(host, username, password): |
This file contains hidden or 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
| [Unit] | |
| Description=Startup KVM Guests in a specific order | |
| After=syslog.target network.target | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/local/bin/kvmStartup | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or 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
| # S1 Pro | |
| [stepper_x] | |
| step_pin: PC2 | |
| dir_pin: PB9 | |
| enable_pin: !PC3 | |
| microsteps: 16 | |
| rotation_distance: 40 | |
| endstop_pin: !PA5 | |
| position_endstop: -6 | |
| position_min: -6 |