Skip to content

Instantly share code, notes, and snippets.

View majuscule's full-sized avatar

Dylan Lloyd majuscule

View GitHub Profile
@majuscule
majuscule / knife.rb
Created April 21, 2016 19:21
dynamically configure ssh-gateway by env/role
stack_save_args = ARGV.clone
require 'optparse'
options = {}
begin
OptionParser.new do |opts|
opts.on('-E', '--environment env') do |v|
options[:environment] = v
end
end.parse!
rescue OptionParser::InvalidOption => e

Keybase proof

I hereby claim:

  • I am majuscule on github.
  • I am majuscule (https://keybase.io/majuscule) on keybase.
  • I have a public key whose fingerprint is 4ACE 24CA A5A1 C1E9 53E0 607A BE93 C5C1 8CD4 C40F

To claim this, I am signing this object:

#!/usr/bin/env bash
ERROR=0
for DOMAIN in $(ls -1 /etc/nginx/sites-enabled); do
/root/letsencrypt/letsencrypt-auto certonly \
-d $DOMAIN -d www.$DOMAIN \
--webroot -w /srv/http/$DOMAIN \
--rsa-key-size 4096 \
--renew-by-default
@majuscule
majuscule / gist:5682215
Last active December 17, 2015 22:29 — forked from Getty/gist:5681812
I love Chivalry: Medieval Warfare (checkout http://www.chivalrythegame.com/blog/) and I saw that the community needs a bigger gameserver. With this project I want to crowdfund a good high class Windows server to drive a public community orientated server with the most lag free possible maximum, and stable maps (or a stable map rotation), to assure (especially for casual players) the experience of those epic fights.
What is this project all about?
===============================
Chivalry: Medieval Warfare is a first person game that is not like a common first person shooter, more like a first person slayer, you can find more information about it here:
http://store.steampowered.com/app/219640
I love Chivalry: Medieval Warfare see http://www.chivalrythegame.com/blog/ and I also love to setup gameserver, and I saw that the community likes bigger gameserver. With this project I want to crowdfund a good high cass windows server to drive public community orientated server with the most lag free possible maximum, and stable maps (or a stable map rotation), to assure especially casual players to get the experience of those epic fights and still fight the lag problems :).
What is this project all about?
I love Chivalry: Medieval Warfare see http://www.chivalrythegame.com/blog/ and I also love to setup gameserver, and I saw that the community likes bigger gameserver. With this project I want to crowdfund a good high cass windows server to drive public community orientated server with the most lag free possible maximum, and stable maps (or a stable map rotation), to assure especially casual players to get the experience of those epic fights and still fight the lag problems :).
What is this project all about?
~ $ cat .ssh/config
Host gh
User git
HostName github.com
~ $ dzil release
[DZ] beginning to build DDG-GoodieBundle-OpenSourceDuckDuckGo
[ExtraTests] rewriting release test xt/release/pod-syntax.t
[ExtraTests] rewriting release test xt/release/eol.t
~ $ cat .ssh/config
Host gh
User git
HostName github.com
~ $ dzil release
[DZ] beginning to build DDG-GoodieBundle-OpenSourceDuckDuckGo
[ExtraTests] rewriting release test xt/release/pod-syntax.t
[ExtraTests] rewriting release test xt/release/eol.t
[DZ] guessing dist's main_module is lib/DDG/GoodieBundle/OpenSourceDuckDuckGo.pm
#!/usr/bin/env perl
use strict;
use warnings;
use XML::SAX::ParserFactory;
use XML::Validator::Schema;
my $validator = XML::Validator::Schema->new(file => 'longtail.xsd');
my $parser = XML::SAX::ParserFactory->parser(Handler => $validator);
<?xml version="1.0"?>
<longtail>
<doc>
<title>Title 1</title>
<abstract>foo bar</abstract>
<source_name>majuscule</source_name>
<source_url>http://dylansserver.com</source_url>
</doc>
<doc>
<title>Title 2</title>