Skip to content

Instantly share code, notes, and snippets.

@beat
beat / ddns-api.php
Last active Jan 21, 2022 — forked from fredsted/ddns-api.php
Virtualmin Dynamic DNS (DDNS) server
View ddns-api.php
<?php
// This script receives DDNS updates via HTTP and stores them into a JSON file for another script.
// example: http://server/ddns-api.php?code=DDNS_CODE&hostname=home = updates home.domain.com to IP of requester
// example: http://server/ddns-api.php?code=DDNS_CODE&hostname=home&myip=1.2.3.4 = updates home.domain.com to IP 1.2.3.4
// example: http://server/ddns-api.php?code=DDNS_CODE&hostname=home&myip6=1:2:3::4 = updates home.domain.com to IPv6
// example: http://server/ddns-api.php?code=DDNS_CODE&hostname=home&myip=1.2.3.4&myip6=1:2:3::4 = updates home.domain.com to IPv4 and IPv6 given
// example: http://server/ddns-api.php?code=DDNS_CODE&hostname=home&action=delete = deletes home.domain.com from DNS
define('DDNS_DATA_FILE', '/home/ddns/ddns.json');
@beat
beat / Apps-bootstraped-list-view-sample
Created Sep 13, 2013
Apps: Example bootstrap markup (mockup) for list view
View Apps-bootstraped-list-view-sample
<div id="web" class="tab-pane active">
<fieldset class="uploadform">
<link rel="stylesheet" href="http://joomla32.joomlapolis.com/demos/install-from-web/media/jui/css/chosen.css?web-developer-reload=1379024748306" type="text/css">
<legend>Install from Web</legend>
<div id="j-sidebar-container" class="span3">
<div id="sidebar">
<div class="sidebar-nav">
<ul id="submenu" class="nav nav-list">
<li class=""><a href="#">Popular</a></li>