sudo apt install -y dbus
wget http://raspbian.raspberrypi.org/raspbian/pool/main/p/playerctl/libplayerctl-dev_2.0.1-1_armhf.deb
wget http://raspbian.raspberrypi.org/raspbian/pool/main/p/playerctl/gir1.2-playerctl-2.0_2.0.1-1_armhf.deb
wget http://raspbian.raspberrypi.org/raspbian/pool/main/p/playerctl/libplayerctl2_2.0.1-1_armhf.deb
wget http://raspbian.raspberrypi.org/raspbian/pool/main/p/playerctl/playerctl_2.0.1-1_armhf.deb
sudo dpkg -i libplayerctl-dev_2.0.1-1_armhf.deb
sudo dpkg -i gir1.2-playerctl-2.0_2.0.1-1_armhf.deb
sudo dpkg -i libplayerctl2_2.0.1-1_armhf.deb
sudo dpkg -i playerctl_2.0.1-1_armhf.deb
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
05943f25fec2ebe063de94d615cdce54646dd31bd9b90b45fecb04f04b34079ff387bf887e64d75d050ec68643b72f2a06432be7d517ad02da050f9aff7e96fb |
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
#!/usr/bin/env python | |
import RPi.GPIO as GPIO | |
import time | |
import sys | |
out_pin = int(sys.argv[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
# This data has been compiled from | |
# https://en.m.wikipedia.org/wiki/List_of_official_languages_by_country_and_territory | |
country_languages = { | |
'Abkhazia': ['Abkhaz', 'Russian'], | |
'Afghanistan': ['Pashto', 'Dari'], | |
'Albania': ['Albanian'], | |
'Algeria': ['Arabic', 'Tamazight'], | |
'Andorra': ['Catalan'], | |
'Angola': ['Portuguese'], |
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
# Code stolen shamelessly from | |
# https://www.raspberrypi.org/forums/viewtopic.php?p=876947&sid=44c21629719b08f74de2b3b465db8d5c#p876947 | |
# I merely modified some bits | |
import RPi.GPIO as GPIO | |
import time | |
GPIO.setmode(GPIO.BCM) | |
pin = 4 |
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
#!/usr/bin/python | |
import random | |
import os | |
import subprocess | |
import sys | |
from PIL import Image | |
ROOT_DIR = os.path.expanduser("~/Mount/box") | |
WALLPAPER_DIR = os.path.join(ROOT_DIR, "Pictures") |
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 | |
# mpv --idle --no-video --loop --input-ipc-server=/tmp/mpvsocket | |
# socat /tmp/mpvsocket udp4-listen:5000,reuseaddr,fork | |
SOCKETS=(#"192.168.1.2:5000" | |
"192.168.1.3:5000" | |
"192.168.1.4:5000" | |
"192.168.1.9:5000" | |
"192.168.1.8:5000") |
// bin_hello.cpp
#include "lib_hello.h"
int main() {
hello_world();
}
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 pygame | |
import random | |
width, height = (450, 600) | |
background_color = (10,10,10) | |
clock = pygame.time.Clock() | |
screen = pygame.display.set_mode((width, height)) | |
pygame.display.set_caption("Falling Blocks") | |
pygame.display.flip() |
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
HotKeySet("{F10}", "Exitter") | |
While 1 | |
$color = PixelGetColor(545,229) | |
If $color = 5460819 Then | |
Send("{DOWN UP}") | |
Send("{UP DOWN}") | |
Sleep(150) | |
Send("{UP UP}") | |
Sleep(300) |