Skip to content

Instantly share code, notes, and snippets.

View otruffer's full-sized avatar

Oskar Truffer otruffer

  • Optimo Medical AG
  • Bern, Switzerland
View GitHub Profile
#!/usr/bin/env ruby
# OP
# Author : Emad Elsaid (https://github.com/blazeeboy)
# Added backup.
# Author : Oskar Truffer (https://github.com/otruffer)
#
# autochanging wallpaper from reddit images
# you have to point the script to your existing
# file you set it as a wallpaper and it will override
# it with a new image every 5 minutes.
#!/usr/bin/env stack
-- stack runghc --resolver lts-7.10 --install-ghc --package fsnotify
{-# LANGUAGE OverloadedStrings #-}
import qualified Data.Text.IO as T
import System.FSNotify
import Control.Concurrent (threadDelay, Chan, forkIO, killThread)
import Control.Concurrent.Chan (newChan, readChan, getChanContents)
import Control.Monad (forever)
import System.Environment (getArgs)

AoE2:HD Works like a charm (24.05.2018)

First Install Wine

! This removes any previous versions of wine !

rm -R ~/.wine
sudo apt remove --purge wine*
wget https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository -y 'https://dl.winehq.org/wine-builds/ubuntu/'