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
from getpass import getpass | |
from pywemo import discovery | |
from pywemo.ouimeaux_device import Device | |
def discover() -> Device | None: | |
for device in discovery.discover_devices(): | |
print(device) | |
if input("y/N? ").lower() == "y": |
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
# backups/Dockerfile | |
FROM vividboarder/docker-restic-cron | |
MAINTAINER ViViDboarder <vividboarder@gmail.com> | |
# Install SQLite | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends sqlite3 \ | |
&& apt-get clean \ | |
&& rm -rf /var/apt/lists/* |
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 | |
# Make a directory to hold local libs and bins | |
mkdir -p ~/usr/local | |
# Get protobuf | |
wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz | |
# Extract protobuf | |
tar -xvzf protobuf-2.5.0.tar.gz | |
cd protobuf-2.5.0 |
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
/* | |
Gmail Message Snoozing | |
Quick implementation to allow snoozing of unread messages in Gmail | |
Usage: | |
The move unread emails into a snooze label for the desired snooze time. After | |
the specified time, the message should be moved back into your inbox. This will | |
only effect unread emails to prevent messages from continuing to bounce back |
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 | |
# Create local theme dir | |
mkdir -p ~/.themes | |
# Enter theme dir | |
# Clone latest theme | |
git clone http://github.com/rhoconlinux/elementary-milk-theme.git ~/.themes/elementary-milk-theme | |
# Set current theme to cloned theme | |
gsettings set org.gnome.desktop.interface gtk-theme elementary-milk-theme | |
gsettings set org.gnome.desktop.wm.preferences theme elementary-milk-theme |
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
;-- On Startup | |
vol_Step = 3 | |
;-- Hotkeys | |
;-- Volume adjust | |
HotKey #PgUp, volUp ; Win+Page Up | |
HotKey #PgDn, volDn ; Win+Page Down | |
HotKey #End, volMute ; Win+End | |
;-- Browser Navigation | |
HotKey !#Left, browserBack ; Ctrl+Win+Left |
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
; HHKB Pro2 emulation by AndrewZorn | |
; for use with QWERTY | |
; with DIP in position 011100 | |
; (Mac Mode, Backspace, Left Fn) | |
; | |
; inspired by and based on ripster's | |
; | |
; Modified with Dip Switches by ViViDboarder | |
; | |
; "Inser" becomes `/~ because Backspace is too big |