Skip to content

Instantly share code, notes, and snippets.

@harald-aigner
harald-aigner / spDYN_update.sh
Created September 2, 2017 17:52
Script for updating spDYN dynamic DNS entries (https://spdyn.de)
#!/bin/sh
#
# Script for updating spDYN dynamic DNS entries (https://spdyn.de)
#
# Usage:
# - Save this script as $HOME/bin/spDYN_update.sh
# - Make it executable: chmod u+x $HOME/bin/spDYN_update.sh
# - Create a cron entry (crontab -e) and supply <HOST_NAME> and <UPDATE_TOKEN>
# according to your spDYN settings. Example for running every 10 minutes:
# */10 * * * * $HOME/bin/spDYN_update.sh <HOST_NAME> <UPDATE_TOKEN> > /dev/null
@yumminhuang
yumminhuang / package_updates_check.py
Created March 18, 2015 20:39
Python script to check apt-get updates
#!/usr/bin/env python
#coding=utf-8
import apt
import apt_pkg
from time import strftime
import os
import subprocess
import sys
#!/usr/bin/python
# -*- coding: UTF-8 -*-
# vim: ai ts=4 sts=4 et sw=4
# Autor: Hector Miuler Malpica Gallegos
# Email: miuler@gmail.com
# Rev: $Rev
# -------------------------------------------------------------------
# https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators