Skip to content

Instantly share code, notes, and snippets.

View rudymccomb's full-sized avatar

Rudy McComb rudymccomb

View GitHub Profile
# Please comment-out unneeded updates as necessary (as this would add multiple GBs to your image)
# It is possible not all of these are 10.6-compatible, please test as applicable
# via https://github.com/thisisdave/instaCATS/blob/master/printers.catalog
# and https://raw.github.com/n8felton/Mac-OS-X-Scripts/master/InstaDMG/CatalogFiles/printers.catalog
Apple Updates:
Brother Printer Drivers 2.9 for OS X http://support.apple.com/downloads/DL894/en_US/BrotherPrinterDrivers2.9.dmg sha1:ced12cc349a6990094796395f8da579ba07ec5b7
Canon Printer Drivers v2.9 for OS X http://support.apple.com/downloads/DL899/en_US/CanonPrinterDrivers2.9.dmg sha1:d6dc46eeaf3d976966fa6c413b817314df867b38
Epson Printer Drivers v2.11 for OS X http://support.apple.com/downloads/DL1398/en_US/EPSONPrinterDrivers2.11.dmg sha1:40861b8d791ecb692612e9e2aff698a3cfbae982
FujiXerox Printer Drivers v2.3 for OS X http://support.apple.com/downloads/DL904/en_US/FujiXeroxPrinterDrivers.dmg sha1:e6275c6b766dc657255d8356766c8f5f3949a634
#!/usr/bin/env bash
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
$password = $macosx_productversion_major ? {
'10.7' => 'aaa6c1f945132d2599079fe90c9d20e608e607344b86328c1ef8ad8dc820c1bb5a31fd816b8ae546fed6dcf58ff023794f8250a66935d6d0687b737f24aae2ed',
'10.8' => '0590ade19e6953c135ae872ae77618235df7d46c63de7f9a0fcdf2cd9e7d85e4b7ca868101235b6158e05a309805ee4814b027a4be9c23ec2926bc8172269affba5c9a5985e81091fa6898076d297f1faa75fa617551ef1671d7520055c4a0d97b9b9c5805aa322baedbcd8ee9c523811653ac2ea9e9c8d8f1ac519a0f2b595e',
default => 'SHA1 Style 10.5 and 10.6 Hash',
}
user { 'test':
ensure => present,
uid => '550',
password => $password,
input {
redis {
host => 'redis1.hgv.iss.local'
data_type => list
key => logpassing
}
redis {
host => 'redis2.hgv.iss.local'
data_type => list
key => logpassing
[2014-10-08 11:57:18,321][INFO ][node ] [elasticsearch1] version[1.3.2], pid[30113], build[dee175d/2014-08-13T14:29:30Z]
[2014-10-08 11:57:18,321][INFO ][node ] [elasticsearch1] initializing ...
[2014-10-08 11:57:18,331][INFO ][plugins ] [elasticsearch1] loaded [marvel], sites [marvel, HQ, head, kopf]
[2014-10-08 11:57:20,489][INFO ][node ] [elasticsearch1] initialized
[2014-10-08 11:57:20,490][INFO ][node ] [elasticsearch1] starting ...
[2014-10-08 11:57:20,642][INFO ][transport ] [elasticsearch1] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/172.25.64.110:9300]}
[2014-10-08 11:57:20,651][INFO ][discovery ] [elasticsearch1] mailtools/e7fTclupS9yUVExgIoI7SQ
[2014-10-08 11:57:23,734][INFO ][cluster.service ] [elasticsearch1] detected_master [elasticsearch2][PJVKMGO_TjWOLz51Vj2viQ][elasticsearch2][inet[/172.25.64.111:9300]], added {[logstash-logstash1-2756

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

# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
#
# Nginx proxy for Elasticsearch + Kibana
#
# In this setup, we are password protecting the saving of dashboards. You may
# wish to extend the password protection to all paths.
#
# Even though these paths are being called as the result of an ajax request, the
# browser will prompt for a username/password on the first request
#
# If you use this, you'll want to point config.js at http://FQDN:80/ instead of
{
"title": "Apache and Tomcat Logs",
"services": {
"query": {
"list": {
"0": {
"query": "apache !tomcat !static",
"alias": "",
"color": "#7EB26D",
"id": 0,
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1