Skip to content

Instantly share code, notes, and snippets.

View tylergets's full-sized avatar

Tyler Getsay tylergets

View GitHub Profile
@tylergets
tylergets / monoprice.fff
Last active May 21, 2017 18:43
Monoprice Maker Select FFF Profile w/ PETG
<?xml version="1.0"?>
<profile name="Monoprice Maker Select" version="2016-06-08 08:00:00" app="S3D-Software 3.1.0">
<baseProfile></baseProfile>
<printMaterial>PLA</printMaterial>
<printQuality>Medium</printQuality>
<printExtruders></printExtruders>
<extruder name="Primary Extruder">
<toolheadNumber>0</toolheadNumber>
<diameter>0.4</diameter>
<autoWidth>0</autoWidth>
@tylergets
tylergets / increase_limit.sh
Created March 16, 2017 08:45
Change the open file limit on OSX Sierra.
#!/bin/bash
#Thanks to https://superuser.com/a/1171028
echo "This script increases the max files a proccess can have open in OSX Sierra."
echo "It should improve IDE performance in large projects with multiple watchers."
set -e
plistcontent=$(cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
@tylergets
tylergets / gist:cb3689fa0455f84e5547f104592cf999
Created March 1, 2017 22:32
Application instance as singleton
public class MyApp extends MultiDexApplication {
private static MyApp sInstance = null;
@Override
public void onCreate() {
super.onCreate();
sInstance = this;
}
@tylergets
tylergets / init.lua
Created October 7, 2016 00:01 — forked from dalemanthei/init.lua
Hamerspoon config examples for hyper key
-- hattip https://github.com/lodestone/hyper-hacks
-- hattip https://gist.github.com/ttscoff/cce98a711b5476166792d5e6f1ac5907
-- hattip https://gist.github.com/prenagha/1c28f71cb4d52b3133a4bff1b3849c3e
local hyper = {'cmd','alt','shift','ctrl'}
-- A global variable for the Hyper Mode
k = hs.hotkey.modal.new({}, "F17")
@tylergets
tylergets / install.sh
Created July 26, 2016 02:46
OSX Setup Commands. Currently disables animations.
#!/bin/bash
# MacOS/OSX Setup Scripts
# By Tyler Getsay's Preference
# Last tested on El Captain
#
# Disable window animaions
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Disable QuickLook animations
defaults write -g QLPanelAnimationDuration -float 0
# Disable window resize animations
@tylergets
tylergets / Safe.Connect.client.plist
Created July 21, 2016 22:20
University of Cincinnati requires their Safe Connect client to access their wireless, no problem. However I do have a problem with it running on my computer all the time. Here is a way to disable it. LaunchAgent is located in /Library/LaunchAgents
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ExitTimeOut</key>
<integer>5</integer>
<key>HopefullyExitsFirst</key>
<true/>
<key>KeepAlive</key>
<false/>