Skip to content

Instantly share code, notes, and snippets.

View xntric78's full-sized avatar

Christopher M Pieper xntric78

View GitHub Profile

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
# OSX for MXP (Mavericks/Yosemite)
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# and here
# https://gist.github.com/MatthewMueller/e22d9840f9ea2fee4716
# Ask for the administrator password upfront
# Author: Corban Baxter
# Date created: 6/14/2011
# this is a handy shell script for devs to get setup with
# a local python development enviorment using virtualenv
# and virtualenvwrapper. to be used with osx 10.6 and up.
# Dependencies
# Xcode - download from developer.apple.com or via the Appstore (http://itunes.apple.com/us/app/xcode/id422352214?mt=12)
@xntric78
xntric78 / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/usr/bin/env python
import os
import time
import shutil
import tarfile
import socket
from ConfigParser import SafeConfigParser
import boto
from boto.s3.key import Key

Keybase proof

I hereby claim:

  • I am xntric78 on github.
  • I am xntric78 (https://keybase.io/xntric78) on keybase.
  • I have a public key whose fingerprint is C237 D511 781B 9108 69CD EA95 A9BB 23D4 34F6 0341

To claim this, I am signing this object:

@xntric78
xntric78 / efs-backup.sh
Last active December 11, 2017 12:04
Bash script to rsync files from one EFS to a backup EFS
#!/bin/bash
# Example would be to run this script as follows:
# Every 6 hours; retain last 4 backups
# efs-backup.sh $src $dst hourly 4 efs-12345
# Once a day; retain last 31 days
# efs-backup.sh $src $dst daily 31 efs-12345
# Once a week; retain 4 weeks of backup
# efs-backup.sh $src $dst weekly 7 efs-12345
# Once a month; retain 3 months of backups
# efs-backup.sh $src $dst monthly 3 efs-12345
@xntric78
xntric78 / swagger.json
Created February 28, 2017 21:05 — forked from steverice/swagger.json
PagerDuty API Swagger
{
"swagger": "2.0",
"info": {
"title": "PagerDuty API",
"description": "The PagerDuty API provides programmatic access to entities within a PagerDuty account. It is designed around [RESTful principles](https://en.wikipedia.org/wiki/Representational_state_transfer) with a path structure based on resources and their relationships.\n\nAll requests and responses are serialized in [JSON](https://en.wikipedia.org/wiki/JSON), including error responses.\n\nSchema are designed to be reusable across requests and across endpoints.\n\nMore sophisticated API clients should treat PagerDuty resources as unique objects keyed by the `id` field that can be used in any API request involving resources of that type.\n\nEvery resource contains a `type` field that identifies the schema it uses.\n\n## Rate limiting\n\nEach account and authentication mechanism is limited to the number of API requests it can make every minute. API requests that exceed the API rate limit will return an [HTTP status code](error_codes.html#http_res
@xntric78
xntric78 / 1_Dockerised_JMeter.md
Created June 24, 2017 23:05 — forked from hhcordero/1_Dockerised_JMeter.md
Dockerized JMeter - A Distributed Load Testing Workflow