Skip to content

Instantly share code, notes, and snippets.

View tomkap's full-sized avatar
🤹‍♂️
during Chaos management

Thomas K. tomkap

🤹‍♂️
during Chaos management
View GitHub Profile
@tomkap
tomkap / mr.robot_season-2_easter-egg-sites.md
Created August 18, 2016 20:44 — forked from eyecatchup/mr.robot_season-2_easter-egg-sites.md
A collection of "Mr. Robot" Season 2 Easter Egg Sites. #mrrobot #hackingrobot #robotegg
#!/usr/bin/env bash
# .conkyrc:
# ${execi 28800 ~/i3/weather.sh}
METRIC="metric" && UNIT="C"
GEOLOC=$(curl -s ipinfo.io)
LATLON=$(echo $GEOLOC | jq -r '.loc')
LAT=${LATLON%,*}
LON=${LATLON#*,}
WEATHER=$(curl -s http://api.openweathermap.org/data/2.5/weather\?lat\=${LAT}\&lon\=${LON}\&units\=${METRIC})
#!/usr/bin/env bash
# 1) visudo:
# %sudo ALL=NOPASSWD: ALL
# 2) user
# # usermod -a -G sudo username
# 3) .conkyrc:
# ${execi 28800 ~/i3/debian_updates.sh}
sudo apt-get -qy update > /dev/null
NUMOUPD=$(sudo aptitude search "~U" | wc -l)
@tomkap
tomkap / nafpaktos_weather.py
Last active August 29, 2015 14:21
I feel pretty, oh so pretty, I feel pretty and witty and gay...
#!/usr/bin/env python
from xml.dom import minidom
from urllib import urlopen
site = 'http://www.nafpaktia-weather.gr/tmp/database.xml'
site_data = urlopen(site).read()
xmldoc = minidom.parseString(site_data)
tags = ['city', 'date', 'time', 'temp'];
for tag in tags:
value = xmldoc.getElementsByTagName(tag)
print('%s => %s') % (tag.upper(), value[0].firstChild.nodeValue)

Keybase proof

I hereby claim:

  • I am tomkap on github.
  • I am tomkap (https://keybase.io/tomkap) on keybase.
  • I have a public key whose fingerprint is C1E8 A9FE 1D62 EEFD 7339 B74E 0D87 54B0 D20E F68B

To claim this, I am signing this object: