Skip to content

Instantly share code, notes, and snippets.

View matemoln's full-sized avatar

Mate Molnar matemoln

View GitHub Profile
;build it with
;ahk/Compiler/Ahk2Exe.exe //in move-mouse.ahk //out move-mouse.exe
;copy exe to "%APPDATA%/Microsoft/Windows/Start Menu/Programs/Startup/"
Menu, Tray, Icon, C:\Windows\Cursors\aero_link_l.cur
Loop
{
; Move mouse
@matemoln
matemoln / vpnc-script
Last active March 25, 2018 14:59
custom vpnc-script
#!/bin/sh
# Routes that we want to be used by the VPN link
# ROUTES="0.0.0.0/31"
# HORIZON_CLIENT_URI="..."
# Helpers to create dotted-quad netmask strings.
MASKS[1]="128.0.0.0"
MASKS[2]="192.0.0.0"
MASKS[3]="224.0.0.0"
*/15 * * * * sudo find /var/cache/raspotify/files/* -mmin +59 -type f -delete >/dev/null 2>&1
cd
sudo apt-get update
sudo apt-get install build-essential git xmltoman autoconf automake libtool libdaemon-dev libpopt-dev libconfig-dev libasound2-dev avahi-daemon libavahi-client-dev libssl-dev
git clone https://github.com/mikebrady/shairport-sync.git
cd shairport-sync
autoreconf -i -f
./configure --sysconfdir=/etc --with-alsa --with-avahi --with-ssl=openssl --with-metadata --with-systemd
make
sudo make install
sudo systemctl enable shairport-sync