Skip to content

Instantly share code, notes, and snippets.

Avatar

Justas Ažna reederz

View GitHub Profile
View refreshing-calendar.html
<html>
<head>
<script type="text/javascript">
setInterval(function () {
console.log('Refreshing...');
// see https://stackoverflow.com/a/4062084
document.getElementById('calendar-frame').src = document.getElementById('calendar-frame').src;
console.log('Refreshed.');
}, 3000)
</script>
@reederz
reederz / sources.list
Last active Apr 6, 2016
Compute Stick /etc/apt/sources.list
View sources.list
deb http://dk.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb http://dk.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ trusty universe
deb http://dk.archive.ubuntu.com/ubuntu/ trusty-updates universe
@reederz
reederz / blacklist.conf
Last active Sep 4, 2015
Block Referer Spam in NGINX ( blogpost detailing the process http://fadeit.dk/blog/post/nginx-referer-spam-blacklist )
View blacklist.conf
# /etc/nginx/blacklist.conf
map $http_referer $bad_referer {
hostnames;
default 0;
"~social-buttons.com" 1;
"~semalt.com" 1;
"~kambasoft.com" 1;
"~savetubevideo.com" 1;
@reederz
reederz / keybase.md
Last active Sep 25, 2015
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am reederz on github.
  • I am reederz (https://keybase.io/reederz) on keybase.
  • I have a public key whose fingerprint is 5290 E776 21CF 9A07 CA65 1BE9 38E3 4522 E18B 968F

To claim this, I am signing this object:

View onename.com proof
Verifying that +justas is my openname (Bitcoin username). https://onename.com/justas
@reederz
reederz / gatesense.html
Created Feb 25, 2015
Gatesense Slides - revealjs
View gatesense.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Gatesense - Community-driven IoT platform</title>
<meta name="description" content="Gatesense - Community-driven IoT platform">
<meta name="author" content="Justas Azna">