Skip to content

Instantly share code, notes, and snippets.

View BretFisher's full-sized avatar
🗃️
All Day Containers!

Bret Fisher BretFisher

🗃️
All Day Containers!
View GitHub Profile
@BretFisher
BretFisher / .travis.yml
Created February 15, 2016 21:26
Travis-CI Docker Image Build and Push to AWS ECR
sudo: required #is required to use docker service in travis
language: php #can be any language, just php for example
services:
- docker # required, but travis uses older version of docker :(
install:
- echo "install nothing!" # put your normal pre-testing installs here
@BretFisher
BretFisher / log-delete.ps1
Created February 11, 2016 19:16
Exchange 2013 Log Cleanup PowerShell Script
Set-Executionpolicy RemoteSigned
$days=10 #You can change the number of days here
$IISLogPath="C:\inetpub\logs\"
$ExchangeLoggingPath="C:\Program Files\Microsoft\Exchange Server\V15\Logging\"
Function CleanLogfiles($TargetFolder)
{
if (Test-Path $TargetFolder) {
$Now = Get-Date
@BretFisher
BretFisher / update.sh
Created February 8, 2016 18:42
Mac Update/Cleanup Script
#!/bin/sh
# store the current dir
CUR_DIR=$(pwd)
# Update App Store apps
sudo softwareupdate -i -a
# Update Homebrew (Cask) & packages
brew update
@BretFisher
BretFisher / execstart.conf
Created January 27, 2016 22:38
Docker 1.9 UCP 0.6 RHEL Daemon startup
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=network.target docker.socket
Requires=docker.socket
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// -H unix://var/run/docker.sock --exec-opt native.cgroupdriver=cgroupfs --storage-driver=devicemapper --ip x.x.x.x
MountFlags=private
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.5
Comment: Hostname: pgp.mit.edu
mQINBFU4Ax4BEADmfzwSV9aXtxkiL6GCmvg3KYr4VmQc1LSqU7RekmbTdxcnPXrsUq7ZrFUD
h9zC+cKcjiQFcTyeoEEX/+9Y09tqOLKcqX4EtXozRGlBeAabCwFa9pwAmEb8g62cm7fSVLO+
DFFD6IX9H4rGPLhKNNXXuE3zJWKE4n1aZaXYRHRHUL55+Bgm3hT1Kcos/KnFje2YqDUy4xTk
kL4SJQwNoFILdK/ebVK1eaRspf+JMUh5qa5n4ExtpZfiH8vb67X5YaE9skz8AruG6COICH0D
fBSOqVnN3RjIWpWvGBAOhznCOrwPedGY+PAQzhOjfnXvtRqIEgZreBretg4ULC4R5VUE+1qA
J5IftuymKhlLiCBLgidk0Bh3JTbvH7FSHcLAd6Ljkyq1L3Sg4jQ9ciJpVzyS27eR7c2vft6X

Keybase proof

I hereby claim:

  • I am BretFisher on github.
  • I am bretfisher (https://keybase.io/bretfisher) on keybase.
  • I have a public key whose fingerprint is 3356 2888 3C9F 74C4 8772 B7EA E698 7430 7C9B 2417

To claim this, I am signing this object:

# Set the host's tags
tags:
- environment: dev
- app: ['core', 'apache-php']
- tier: application
- visibility: private
#tags: mytag0, mytag1
#!/bin/sh
# install various tools and apps on a fresh Mac
# symlink dotfiles
source dotfiles.sh
# set mac defaults
source osxdefaults.sh
@BretFisher
BretFisher / sVimrc
Last active August 29, 2015 14:16
sVim Config
" Example: https://github.com/flipxfx/sVim#svimrc-example
" This https://gist.github.com/BretFisher/9a77c850d5816a9b184e
let blacklists = ["*://app.datadoghq.com/*", "*://checkvist.com/*", "*://mail.google.com/*"]
@BretFisher
BretFisher / package.js
Last active June 8, 2017 15:07
Meteor package file example for pulling in single .css file via a npm module
// pulling in a single .css file from npm package todomvc-app-css
// https://github.com/tastejs/todomvc-app-css
// Using this to build a TodoMVC example with Meteor 1.0
Package.describe({
summary: 'CSS for TodoMVC apps',
version: '0.0.0'
});
// this will download the npm package to .npm inside package directory