Skip to content

Instantly share code, notes, and snippets.

View ToJa92's full-sized avatar

Tobias Jansson ToJa92

  • Ida Infront
View GitHub Profile
@ToJa92
ToJa92 / hover.py
Created November 15, 2017 17:54 — forked from andybarilla/hover.py
DDNS Script for Hover (using their unofficial API)
#!/usr/bin/env python
"""hover.py: Provides dynamic DNS functionality for Hover.com using their unofficial API."""
__author__ = "Tobias Jansson"
__credits__ = ["Andrew Barilla", "Dan Krause"]
__license__ = "GPL"
__version__ = "1.0"
import requests
@ToJa92
ToJa92 / iron-router-login.js
Created April 17, 2014 17:44
An iron-router `onBeforeAction` method that renders a template if no user is logged in. It should not be used to check whether a user is logged in or not.
onBeforeAction: function(pause) {
if(! Meteor.user()) {
this.render("adminLogin");
pause();
}
}