Skip to content

Instantly share code, notes, and snippets.

View ericandrewlewis's full-sized avatar

Eric Lewis ericandrewlewis

View GitHub Profile
@ericandrewlewis
ericandrewlewis / noip2.service
Last active May 17, 2021 03:08 — forked from NathanGiesbrecht/noip2.service
Systemd Service file for no-ip.com dynamic ip updater
# Simple No-ip.com Dynamic DNS Updater
#
# 1) Install DUC (Dynamic Update Client) and create the configuration file
# as described on noip website https://my.noip.com/#!/dynamic-dns/duc
# 2) Copy this file noip2.service to /etc/systemd/system/
# 3) Execute `sudo systemctl enable noip2`
# 4) Execute `sudo systemctl start noip2`
[Unit]
Description=No-ip.com Dynamic Update Client
@ericandrewlewis
ericandrewlewis / 32.asm
Last active November 24, 2020 08:54 — forked from FiloSottile/32.asm
NASM Hello World for x86 and x86_64 Intel Mac OS X(get yourself an updated nasm with brew)
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32
global start
section .text
start:
push dword msg.len
push dword msg
push dword 1
mov eax, 4
@ericandrewlewis
ericandrewlewis / index.htm
Last active August 29, 2015 14:10 — forked from rapidrapids/4095.css
A test for IE9 to clarify that IE9 has a 4095 selector limit, not rules or rulesets.
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Selector test</title>
<link rel="stylesheet" href="test.css" />
<link rel="stylesheet" href="test2.css" />
<link rel="stylesheet" href="test3.css" />
</head>
<body>
<?php
// ...<snip>...
<span class="milestone"><# wp.hooks.applyFilters('milestonerevs.metadata', data) #></span>
// ...<snip>...
add_action( 'admin_footer-revision.php', 'wpse151630_test' );
function wpse151630_test() {
?>
<script>