Skip to content

Instantly share code, notes, and snippets.

@paddy2k
paddy2k / reg365.js
Created July 12, 2021 11:36
Export Zonefile from Register365/Namesco
var zoneArray = [];
var ttlByType = {
'CNAME': 7200,
'A': 3600,
'AAAA': 3600,
'MX': 3600,
'TXT': 600,
}

Keybase proof

I hereby claim:

  • I am paddy2k on github.
  • I am paddy2k (https://keybase.io/paddy2k) on keybase.
  • I have a public key whose fingerprint is 61F7 A141 227E 9BE7 0786 E1A0 CF20 BAE2 9C48 08A0

To claim this, I am signing this object:

@paddy2k
paddy2k / jsbin.uVoTIHik.css
Created January 8, 2014 01:01
A simple HTML5 QR Code scanner built using https://github.com/LazarSoft/jsqrcode
aside,
#navMenuBg{
left: 0px;
top: 50px;
position: fixed;
z-index: 1;
width: 100%;
height: 100%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
<!DOCTYPE html>
<html>
<head>
<title>QR Code Reader</title>
<meta charset=utf-8 />
<meta name="mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
@paddy2k
paddy2k / Default (Linux).sublime-mousemap
Last active December 15, 2015 05:58
Use the mouse to GoTo Definition with Sublime Text 3
[
{
"button": "button2", "modifiers": ["ctrl"],
"command": "goto_definition",
"press_command": "drag_select"
}
]
@paddy2k
paddy2k / jquery.feis.js
Created March 29, 2012 23:33
Faster Element by ID Selector for jQuery
/*Faster Element By ID Selector - @paddy2k*/(function($){$.id=function(id){return this(document.getElementById(id))}})($);
@paddy2k
paddy2k / Restore Wikipedia
Created January 18, 2012 09:59
Simple bookmark to restore access to Wikipedia. Create a bookmark in your browser and replace the URL with the code below. Then click the bookmark everytime you want to view a Wikipedia page.
javascript:(function(){var restoreWikipedia=document.createElement('style');restoreWikipedia.type='text/css';restoreWikipedia.media='all';restoreWikipedia.innerHTML='#mw-sopaOverlay{display:none;}#mw-page-base,#mw-head-base,#content,#mw-head,#mw-panel,#footer{display:block !important;}';document.head.appendChild(restoreWikipedia);})();