Skip to content

Instantly share code, notes, and snippets.

View rsrchboy's full-sized avatar

Chris Weyl rsrchboy

View GitHub Profile
@rsrchboy
rsrchboy / log.txt
Last active April 6, 2016 17:12
domain services, dho-based hosting, and us
[11:12:30 AM] ‎rsrchboy‎: so
‎[11:12:57 AM] ‎rsrchboy‎: I had a great conversation about getting hosting/dns settings to what we want with kyle
‎[11:14:34 AM] ‎rsrchboy‎: I think we found a far easier way, that's generally applicable to non-remix dho sites, for people using us for domreg and dns (most, I suspect; all for us)
‎[11:16:08 AM] ‎john.swanson‎: ah, really? nice! what is it?
‎[11:16:23 AM] ‎rsrchboy‎: a combo of a couple things
‎[11:17:01 AM] ‎rsrchboy‎: one is that our current approach -- just manipulating dns records -- is doable, but doesn't integrate well into the way we manage dns
‎[11:18:51 AM] ‎rsrchboy‎: there's two way we really configure dns records: one is through a domainservice (there are multiple types: fully-hosted, mirroring, redirect, parked, etc, etc); the other is through custom dns records a consumer can enter
‎[11:19:42 AM] ‎rsrchboy‎: fwiw, these are stashed away in dreamhost.domain_service and the actual records/zones in dns.zone and dns.record
‎[11:20:23 AM] ‎rsrchboy‎: the d
@rsrchboy
rsrchboy / mappings.vim
Created December 13, 2013 21:02
screen, vim, tabs, and C-PgUp/C-PgDn mappings
" make C-PgUp and C-PgDn work, even under screen
" see https://bugs.launchpad.net/ubuntu/+source/screen/+bug/82708/comments/1
:nmap [5;5~
:nmap [6;5~
@rsrchboy
rsrchboy / .htaccess
Created December 11, 2013 19:44
primary google apps domain change work around
# google services for wps.io
RedirectMatch 301 ^/mail$ https://mail.google.com/a/wps.io
RedirectMatch 301 ^/cal(endar|)$ https://www.google.com/calendar/hosted/wps.io
RedirectMatch 301 ^/docs$ https://docs.google.com/a/wps.io
RedirectMatch 301 ^/drive$ https://drive.google.com/a/wps.io
@rsrchboy
rsrchboy / apache2.log
Created July 25, 2013 22:23
Recent updates; changelogs of interest This is from a precise update, today.
apache2 (2.2.15-1) unstable; urgency=low
* This release adds and enables mod_reqtimeout, which limits the time
Apache waits for a client to send a complete request. This helps to
mitigate against certain denial of service attacks. In case of problems
with slow clients, the timeout values can be adjusted in
/etc/apache2/mods-available/reqtimeout.conf , or the module can be
disabled with "a2dismod reqtimeout".
-- Chuck Short <zulcss@ubuntu.com> Tue, 13 Apr 2010 09:09:34 -0400
@rsrchboy
rsrchboy / 2013-07-11 11.39.55.jpg
Last active December 19, 2015 15:38
puppet manual
2013-07-11 11.39.55.jpg
@rsrchboy
rsrchboy / test.pl
Created June 25, 2013 23:21
perl layers RULE! gzip testfile.txt perl ./test.pl < testfile.txt.gz
#!/usr/bin/env perl
use strict;
use warnings;
use v5.10;
binmode STDIN, ':gzip';
say while <>
@rsrchboy
rsrchboy / gitconfig.ini
Created June 21, 2013 16:31
some of my git aliases
[alias]
co = checkout
br = branch
st = status
df = diff
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
wdiff = diff --color-words
@rsrchboy
rsrchboy / gist:5828833
Created June 21, 2013 04:34
t530 installed memory specs look @ "part number" and search on amazon / newegg
Handle 0x0007, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 16 GB
Error Information Handle: Not Provided
Number Of Devices: 2
Handle 0x0008, DMI type 17, 34 bytes
$ brightbox-servers create --user-data="#include https://raw.github.com/gist/3129203/puppet-git-receiver-install" img-9h5cv
Creating a nano (typ-4nssg) server with image Ubuntu Precise 12.04 LTS server (img-9h5cv) with 0.10k of user data
id status type zone created_on image_id cloud_ip_ids name
-----------------------------------------------------------------------------
srv-3te8u creating nano gb1-a 2012-07-17 img-9h5cv
-----------------------------------------------------------------------------
$ git init
@rsrchboy
rsrchboy / gist:4113553
Created November 19, 2012 20:09
on-the-fly subtyping
use MooseX::AttributeShortcuts;
use MooseX::CoercePerAttribute;
use MooseX::AlwaysCoerce;
# create an attribute where value must be a subtype of Str that ends in '.',
# and can be coerced from a non-conformant Str by adding a '.'
has foo => (
is => 'ro',
isa => 'Str',