Skip to content

Instantly share code, notes, and snippets.

View yzguy's full-sized avatar

Adam Smith yzguy

  • Akamai Technologies
  • Pennsylvania
View GitHub Profile
package main
import (
"fmt"
"time"
"github.com/sparrc/go-ping"
"github.com/guptarohit/asciigraph"
)
func main() {

Keybase proof

I hereby claim:

  • I am yzguy on github.
  • I am yzguy (https://keybase.io/yzguy) on keybase.
  • I have a public key ASDW1g3mVwRJV4rgf6vlONyB54QsIWZqyJnFSIyqe7bJfgo

To claim this, I am signing this object:

firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description "WAN to internal"
#!/usr/bin/env python
import sys
import dns.query
import dns.zone
import dns.name
from dns.exception import DNSException
from dns.rdatatype import SOA
---
interfaces:
ge-0/0/0:
decription: WAN Interface
vlan-tagging: true
units:
- number: 3
vlan-id: 3
family:
- type: inet
@yzguy
yzguy / vimrc
Created February 11, 2018 02:32
" Use vim-plug for plugins
set nocompatible
call plug#begin('~/.vim/plugged')
if has('nvim')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zchee/deoplete-jedi'
Plug 'zchee/deoplete-go'
Plug 'fishbullet/deoplete-ruby'
#!/usr/bin/env python
import boto3, re
from optparse import OptionParser
from terminaltables import SingleTable
# Option Parser (allows custom output)
parser = OptionParser()
parser.add_option("-r", "--results", type="int", dest="results",
package main
import (
"fmt"
"os"
"strings"
)
var mapping = map[string]string{
"a": "4",
<!DOCTYPE html>
<html>
<header>
<title>BDX Inc.</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
import requests
# HTTP(S) proxy
# Through Fiddler
proxies = {
"http": "http://localhost:8080",
"https": "http://localhost:8080"
}