Skip to content

Instantly share code, notes, and snippets.

View bmacauley's full-sized avatar

Brian Macauley bmacauley

View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@bmacauley
bmacauley / gh-clone-org.sh
Last active June 15, 2018 19:12
Clone github org repos
# export GITHUB_ORG=<github org>;curl -s https://$GITHUB_TOKEN@api.github.com/orgs/$GITHUB_ORG/repos | jq '.[].ssh_url' | xargs -n 1 git clone
curl -s https://api.github.com/orgs/$GITHUB_ORG/repos | jq '.[].ssh_url' | xargs -n 1 git clone
@bmacauley
bmacauley / ghe-clone-org.sh
Last active June 15, 2018 19:05
Clone github enterprise org repos
# export GITHUB_URL=<ghe url>;export GITHUB_ORG=<github org>;export GITHUB_TOKEN=<github token>;curl -s https://$GITHUB_TOKEN@$GITHUB_URL/api/v3/orgs/$GITHUB_ORG/repos | jq '.[].ssh_url' | xargs -n 1 git clone
curl -s https://$GITHUB_TOKEN@$GITHUB_URL/api/v3/orgs/$GITHUB_ORG/repos | jq '.[].ssh_url' | xargs -n 1 git clone
@bmacauley
bmacauley / Makefile
Created April 21, 2018 19:53 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@bmacauley
bmacauley / sync.py
Created April 2, 2018 20:02 — forked from kennethreitz/sync.py
GitHub Syncer. Clones or Pulls all GitHub repos (including watched list).
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Kenneth Reitz's GitHub Syncer
This script uses the GitHub API to get a list of all forked, mirrored, public, and
private repos in your GitHub account. If the repo already exists locally, it will
update it via git-pull. Otherwise, it will properly clone the repo.
It will organize your repos into the following directory structure:
@bmacauley
bmacauley / Update Fork.md
Created February 28, 2018 22:26 — forked from seankross/Update Fork.md
Update a Github Fork from the Original Repo

Taken from here

Add remonte branch:

git remote add --track master mleung git://github.com/mleung/feather.git

Verify:

git remote

@bmacauley
bmacauley / Update Fork.md
Created February 28, 2018 22:26 — forked from seankross/Update Fork.md
Update a Github Fork from the Original Repo

Taken from here

Add remonte branch:

git remote add --track master mleung git://github.com/mleung/feather.git

Verify:

git remote

@bmacauley
bmacauley / run-transit-vpc-poller.py
Created February 8, 2018 21:08 — forked from vkhatri/run-transit-vpc-poller.py
Python Wrapper to Execute Transit VPC Poller Module for Testing
# Module Source - https://github.com/vkhatri/aws-transit-vpc/tree/feature-vrf
# Change Module Source accordingly, currently
import os
import ast
import logging
import sys
# symlink transit-vpc-poller.py module for import workaround
# ln -s transit-vpc-poller.py transit_vpc_poller.py
import transit_vpc_poller

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@bmacauley
bmacauley / update-dns.py
Created June 24, 2017 16:36 — forked from mhjwork/update-dns.py
Dynamic DNS using AWS
#!/usr/bin/python
# Run this script as a cron job on a machine inside your network that is always on
# Prerequisites:
# - Python
# - boto3 module for AWS access
# - Route 53 DNS hosted zone that you use as the target
# - SNS topic to send notifications when the DNS is updated (IP changed)
#