Skip to content

Instantly share code, notes, and snippets.

# Workaround for a broken update
sudo dnf install -y libxkbcommon-x11 --enablerepo updates-testing
# Install basic Xorg server
sudo dnf install -y xorg-x11-xinit xorg-x11-server-Xorg xorg-x11-drv-evdrv xorg-x11-utils xorg-x11-font-utils xorg-x11-fonts-misc xorg-x11-drivers xterm xorg-x11-drv-intel ixorg-x11-drv-synaptics
# Install I3WM
sudo dnf install -y i3status i3lock i3 feh rxvt-unicode-256color-ml
# Install common tools
sudo dnf install -y vim git mutt zathura-plugins-all
# Not yet for F24

Keybase proof

I hereby claim:

  • I am fale on github.
  • I am fale (https://keybase.io/fale) on keybase.
  • I have a public key whose fingerprint is E815 3C49 2A8D FD8B 1CBD BC85 FDB3 DF20 B2DC 9C1B

To claim this, I am signing this object:

[Unit]
Description=PRG1 process
After=network.target
[Service]
Type=simple
User=PRG1
Group=PRG1
ExecStart=/usr/local/bin/PRG1.py
StandardOutput=syslog
### Keybase proof
I hereby claim:
* I am fale on github.
* I am fale (https://keybase.io/fale) on keybase.
* I have a public key whose fingerprint is B960 BE9D E7A8 FA12 273A 98BB 6D6A 29D6 709A 7851
To claim this, I am signing this object:
import datetime
def daterange(s, e):
start = 12 * s['year'] + s['month'] - 1
end = 12 * e['year'] + e['month']
months = []
for a in range(start,end):
months.append({'year': a//12, 'month': a % 12+1})
return months
import urllib.request
import json
import operator
from pprint import pprint
def urlToJSON (url):
response = urllib.request.urlopen(url)
string = response.readall().decode('utf-8')
return json.loads(string)