Skip to content

Instantly share code, notes, and snippets.

View drewmace's full-sized avatar

Drew Mace drewmace

  • Fallston, Maryland, USA
View GitHub Profile
@drewmace
drewmace / osx_install.sh
Last active August 29, 2015 14:27 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@drewmace
drewmace / osx-for-hackers.sh
Last active August 29, 2015 14:27 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@drewmace
drewmace / osx_setup.md
Last active August 29, 2015 14:27 — forked from pavgup/osx_setup.md

Setup Mac OS X Mountain Lion or Mavericks

Edit: I few months ago I got a new laptop and did the same thing on Mavericks.

I just replaced the hard drive of my mbp and decided to do a clean install of Mountain Lion (10.8.5) since I was still using Snow Leopard (10.6.8).

I kinda regret for not using Boxen to automate the

@drewmace
drewmace / idea.vmoptions
Last active November 18, 2015 21:34 — forked from pavgup/idea.vmoptions
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration. This can be found under ~/Library/Preferences/IntelliJ15/
-server
-Xms2G
-Xmx4G
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
@drewmace
drewmace / setup.yml
Created December 5, 2015 03:57 — forked from libero18/setup.yml
ansible-playbook setup.yml
---
- hosts: 127.0.0.1
connection: local
tasks:
- name: Make sure using latest Homebrew
shell: "brew update"
- name: Update already-installed formula
shell: "brew upgrade"
@drewmace
drewmace / pedantically_commented_playbook.yml
Last active April 11, 2016 00:18 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@drewmace
drewmace / gist:ba97f1d8011364bc532f130297a0c224
Created June 6, 2016 02:03 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant
# 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.
@drewmace
drewmace / gist:ac44a8aa4e92083819413b9abbe51a3f
Created June 6, 2016 02:05 — forked from fernandoaleman/gist:4551494
How to recursively delete Amazon S3 zero byte files from buckets
s3cmd ls --recursive s3://BUCKET_NAME | ruby -rdate -ne 'date, time, size, uri = $_.split; puts uri if size == "0"' | xargs s3cmd del
A few of my Git tricks, tips and workflows
By Markus Prinz • In Git • 4929 Words
Note: A german translation is available here
This post is based on a talk I gave at the 18th Cocoaheads Meetup Vienna (CHW018) on Feb 17th, 2011. It is an annotated tour of my Git config, Git related scripts and commands, and various other tips and tricks I picked up over the years. You can find most of these things in my dotfiles repo, as well with a lot of other stuff, like parts of my Zsh config. Patches welcome.
Warning: Some of these tricks and tips are specific to my setup (Mac OS X Snow Leopard, Git 1.7.4) and workflow(s), and might not quite work for you as described. I also assume you have basic knowledge of the command line.
The Basics
How to update sdkman from gvm
http://mike-neck.hatenadiary.com/entry/2015/09/17/234228