Skip to content

Instantly share code, notes, and snippets.

@beat
beat / Apps-bootstraped-list-view-sample
Created September 13, 2013 00:06
Apps: Example bootstrap markup (mockup) for list view
<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>
@beat
beat / ddns-api.php
Last active January 1, 2023 10:41 — forked from fredsted/ddns-api.php
Virtualmin Dynamic DNS (DDNS) server
<?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');