Skip to content

Instantly share code, notes, and snippets.

View admalledd's full-sized avatar

Eric Driggers admalledd

  • Vancouver, WA, USA
View GitHub Profile
@RobinDaugherty
RobinDaugherty / extract_dyn_zone.js
Last active December 7, 2017 14:50
Export zone from Dyn Standard DNS
// Since Dyn provides no way to export a zone, this extracts the zone data from the "advanced editor" form.
// Run this in the console on the editor page, and it will produce a single string.
// You may need to clean up the string slightly. Look for hostnames that end with multiple dots and clean those out.
dyn_zone_getter = {
host: jQuery("#adv_table tr > td:nth-child(1)").map(function(){return $(this).text()}),
ttl: jQuery("#adv_table tr > td:nth-child(2) > input").map(function(){return $(this).val()}),
type: jQuery("#adv_table tr > td:nth-child(3)").map(function(){return $(this).text()}),
data: jQuery("#adv_table tr > td:nth-child(4) > input").map(function(){return $(this).val()}),
as_zone: function() {
@maisieccino
maisieccino / .Xresources
Last active June 20, 2019 22:44
dotfiles for "Up Again"
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
URxvt.scrollBar: false
URxvt*transparent: false
@lubosz
lubosz / weather.sh
Created April 14, 2015 19:11
display a weather gif in terminal
#!/bin/sh
DOWNLOAD_DIR=~/Downloads/weather
REGION=txgulf
# make download dir if not available
if [ ! -d "$DOWNLOAD_DIR" ]; then
mkdir -p $DOWNLOAD_DIR
fi
@imjasonh
imjasonh / markdown.css
Last active May 24, 2024 22:56
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@sublee
sublee / regular_crossword.py
Last active December 12, 2015 06:19
Test suite for a regular crossword
# Question: http://www.coinheist.com/rubik/a_regular_crossword/grid.pdf
# My Answer: http://sphotos-h.ak.fbcdn.net/hphotos-ak-prn1/534798_4778312810689_972807554_n.jpg
import re
assert re.match(r'.*H.*H.*', 'NHPEHAS')
assert re.match(r'(DI|NS|TH|OM)*', 'DIOMOMTH')
assert re.match(r'F.*[AO].*[AO].*', 'FOXNXAXPH')
assert re.match(r'(O|RHH|MM)*', 'MMOMMMMRHH')
assert re.match(r'.*', 'MCXNMMCRXEM')
assert re.match(r'C*MC(CCC|MM)*', 'CMCCCCMMMMMM')
@sli
sli / namegenerator.py
Created August 3, 2012 02:43
Quick and dirty dungeon name generator.
import random
NOUNS = [
'Tomb', 'Castle', 'Dungeon', 'Catacombs', 'Sewers', 'Mansion', 'Cave', 'Mines',
'Laboratory', 'Hobble', 'Prison', 'Asylum', 'Stockade', 'Vault', 'Reformatory',
'Oubliette', 'Sepulcher', 'Mausoleum', 'Pit', 'Crypt', 'Necropolis', 'Culverts',
'Grotto',
]
ADJECTIVES = [
@Eqiunox
Eqiunox / help.html
Created June 25, 2012 21:07
admalledd.html
<!DOCTYPE html>
<html>
<head>
<TITLE>mc.admalledd.com help</TITLE>
<style type="text/css">
#navbar{
@datagrok
datagrok / gist:2199506
Last active April 8, 2023 17:36
Virtualenv's `bin/activate` is Doing It Wrong