Skip to content

Instantly share code, notes, and snippets.

View perigrin's full-sized avatar

Chris Prather perigrin

View GitHub Profile
@perigrin
perigrin / .gitignore
Created March 6, 2019 18:05 — forked from ctsrc/.gitignore
Random dungeon generator from https://news.ycombinator.com/item?id=19309378, deobfuscated, refactored and commented
/.idea/
/cmake-build-debug/
/dungeon
@perigrin
perigrin / generate.c
Created March 6, 2019 18:05 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
│21:35:07 bryan.horstmann-allen | So a customer would be, like, "Samsung Mobile". And everything we do now would be shoved under that Org. │
│21:35:26 bryan.horstmann-allen | Then when we add JPC, there would be a "Joyent Cloud" customer. And we'd create new datacenters/room/racks for that. │
│21:35:38 bryan.horstmann-allen | Each org/customer would have its own builds/workspaces/whatever.
{
"additionalProperties": "",
"properties": {
"bios_version": {
"type": "string"
},
"memory": {
"type": "object"
},
"processor": {
~/dev/ansible-github-deploy-key$ perl -v
This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi
(with 68 registered patches, see perl -V for more detail)
Copyright 1987-2015, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
# Copyright (c) 2012 Henrik Brix Andersen <henrik@brixandersen.dk>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
Successfully installed Canary-Stability-2011
Successfully installed AnyEvent-7.13
Successfully installed AnyEvent-HTTP-2.23
Successfully installed URI-Encode-XS-0.09
Successfully installed AnyEvent-InfluxDB-1.0.2.0
gzip: stdin: unexpected end of file
/bin/tar: Child returned status 1
/bin/tar: Error is not recoverable: exiting now
Successfully installed Readonly-2.05
root@ford:~# traceroute 67.205.137.242
traceroute to 67.205.137.242 (67.205.137.242), 30 hops max, 60 byte packets
1 router2-dal.linode.com (67.18.7.162) 0.916 ms 1.013 ms 1.000 ms
2 173.255.207.16 (173.255.207.16) 0.711 ms 0.940 ms 173.255.207.12 (173.255.207.12) 0.686 ms
3 173.255.207.8 (173.255.207.8) 0.826 ms 0.804 ms 0.823 ms
4 dls-b21-link.telia.net (62.115.120.84) 2.113 ms dls-b21-link.telia.net (62.115.137.106) 0.960 ms nyk-bb4-link.telia.net (62.115.120.174) 46.166 ms
5 nyk-bb4-link.telia.net (213.155.130.208) 46.276 ms dls-b21-link.telia.net (62.115.120.88) 1.982 ms dls-b21-link.telia.net (62.115.140.9) 1.264 ms
6 * nyk-bb1-link.telia.net (213.155.130.64) 45.092 ms nyk-b2-link.telia.net (62.115.137.101) 45.803 ms
7 nyk-b2-link.telia.net (62.115.137.99) 45.878 ms * nyk-b2-link.telia.net (62.115.137.101) 46.192 ms
8 * * *
SSH_BIN=`which ssh`
alias machine_list="cat ~/.ssh/config | egrep '^Host' | grep -v '\*' | cut -d ' ' -f 2"
# Setup SSH aliases
for MACHINE in `machine_list`
do
alias $MACHINE="TERM=xterm-256color $SSH_BIN $MACHINE"
done