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 | |
fileprefix=telefoonlijst | |
cd /tmp | |
echo 'mirror --no-empty-dirs -I $fileprefix*' | lftp http://www_rt/telefoon-email-web/ | |
evince "$(ls -1tr $fileprefix* | tail -n 1)" --fullscreen | |
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
require 'socket' | |
# client socket # | |
host = piet.net | |
port = 1234 | |
s = TCPSocket.open(host, port) | |
while line = s.gets | |
puts line |
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 | |
# requires kodi callbacks plugin - see http://kodi.wiki/view/Add-on:Kodi_Callbacks | |
# rpi audio switching - https://www.raspberrypi.org/documentation/configuration/audio-config.md | |
# https://github.com/KenV99/service.xbmc.callbacks2/blob/da7449f3d462cd7fe89a9c343ee3ab5cf3778dc9/default.py | |
# def playing_type returns [music|movie|episode|stream|liveTV|recordedTV|PVRradio|unknown] | |
if [ ! $# -eq 1 ]; then | |
echo "usage: switch_audio mediatype" | |
exit 1 |
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
cat << EOF > /etc/network/interfaces | |
# Include files from /etc/network/interfaces.d: | |
source-directory /etc/network/interfaces.d | |
auto lo | |
iface lo inet loopback | |
iface eth0 inet manual | |
allow-hotplug wlan0 |
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
// copied from https://gist.github.com/lexicalunit since I could not star it | |
// c++ -I/usr/local/include -L/usr/local/lib -lVariant schema_validate.cpp | |
#include <cstdio> | |
#include <iostream> | |
#include <iomanip> | |
#include <algorithm> | |
#include <fstream> | |
#include <sstream> | |
#include <iterator> |
NewerOlder