Skip to content

Instantly share code, notes, and snippets.

View mattyjones's full-sized avatar

Matt Jones mattyjones

  • Northeast-US
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mattyjones on github.
  • I am mattyjones (https://keybase.io/mattyjones) on keybase.
  • I have a public key whose fingerprint is F494 E301 1F64 0BA5 664B BA9A 079C 9247 5474 C24B

To claim this, I am signing this object:

@mattyjones
mattyjones / linux_vpn.sh
Created October 30, 2016 21:28
Start and stop strongswan vpn's in linux in a sane manner
#! /bin/bash
# Manage our vpn connections from the commandline in an IAC way. This script
# should just be alias'd in your shell rc file for ease of use.
# TODO:
#
# validate consul datacenters
# ensure only one vpn connection is up
# provide vpn details if requested

Defining A Telegraf Plugin In Elzar

This serves as a style and example guide for configuring chef attriutes to install and manage telegraf plugins.

Setting the attribute name

Set the top level attribute naming scheme, this is used for plugins going out to the entire cookbook and will be the most commmon example.

default['devops_artifactory']['telegraf']['inputs'] = {}

Open Source Software Development

Overview

This will be a progressive 6 week program to learn about basic open source software development tools and methodologies. We will explore common tools used in open source software development as well as concepts surrounding the open source community.

The core concept will be learning to program using the Python language. Ancillary concepts that will be explored include:

  • problem solving
  • how to ask the right questions and find the answers using common online sites
@mattyjones
mattyjones / key.pub
Created January 16, 2017 02:17
Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Keybase OpenPGP v2.0.58
Comment: https://keybase.io/mattyjones
xsFNBFgOrJcBEADakmC6GH6I97BLINIV7zHjp9pNj8KDVXVua1bIeA/JCBeWizTG
JhYDtF6z2j1IrEsn5FlYA5rf66HLX+xg1z/PkCg9fp2VIaoHddgaGbZtLCJWsCCh
2KEhcPcqGMqmyV86seeFvpOe9/I61M5bQ2Q0Jcm46J4CZseI5r+VECzlUKS6ECwn
A+yKMfNKnQaQsnoVuacO51FYxChMLSuKE0ExnhnObMBgc9OT6vGegEH1caBCATWp
jw23w90mjOiUht2XI2WODPiJ3+erNb/wBDbrzWOIMV39EapyeQZ5bGlioTFcL5W0
L2LDtGgzg40VMmDx4kajJBmfbMQ4t/ji/XBdINY0zSQHRwmiRHV6nLS65OrKiLgt

.gitlab-vi.yml

production:
  script:
    - hugo --cacheDir $HOME/cache
    - sudo cp -R public/* /var/www/html/
    - sudo chown -R root:root /var/www/html/
  only:
 - master

Keybase proof

I hereby claim:

To claim this, I am signing this object:

New Functionality

I am submitting the inital stable version of a pagerduty module that will allow a developer the following functionality:

/users

  • add users
  • update users
  • remove users

/teams

  • add teams
@mattyjones
mattyjones / Brewfile
Created May 23, 2018 01:14
Sample brew file
# SF Laptop Brewfile
#
# Not included:
# OmniGraffle
# Git-Tower
# oh-my-zsh
# Capto
# Transmit
# MacTex
# OmniFocus
# tested with Python >=3.6
import urllib.request
def check_url(url):
ret = urllib.request.urlopen(url)
if ret.code == 200:
c = True
else:
c = False