Skip to content

Instantly share code, notes, and snippets.

View tylergets's full-sized avatar

Tyler Getsay tylergets

View GitHub Profile
@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/>
@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 / 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 / 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 / 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 / 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 / install_pubkey.sh
Last active October 11, 2017 18:12
Public Key
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC9O/oqd1tu5NohBrO6ElIrOxxmnA5caJJlswtrh1gsUfotJdL5cPV9B2Bu2O+vzA4lKB0NkZCfcM7RoXPWFaJSNU9SDx2n/4CSn/tVUoexClBVwazVWA/AZGCcbazbTUFLhgUTc3JIO5ll/nrLIIN5gC3FSoeyBuce71OuLM+4DQreTMFj5rANiRh75uq9pXIKG0jTUpA4RlbfPAgNcf7Abs9vLCAd3ucoT8KuFulX7y5YIElblVWWhroUfApYeHYCECJNUsdfX3Wz0hnsNAclkK8vXMpHCjPvW/PjmzWjwJg3LpAyfZW0wdbjxr57yAmBjfnepK7r6MCGjj+3MrclFDEUgjswAlgbqu+04GK48N7XhWqqPZ5BQnQcXlBtCOhiXDNsaq9OOvpEeHcYqAJVoZN+FlFdp+So5EwxjRv/7vqWa4gN/sd6PDXLlPo5rRno7asbXxxKTglbYCtVpNXX6nqaFoyKkKwqDWwEgNfZ3w2on0PNjadNp5VLphgK2k81D6qGYwYdQq91W3BGHjcF26ITiuFMiObhyq9X1lIZ+PXofcYbrdARAXAMPYN+90K1KQBYS2REK2Ql8b93ON3g0c/+rcY4OE00CmpDxosW+TM893YfWlEOsSQhhvUwJz6y8Lhm4PrmPoxFXOpcLkvHc0tuu7uKeodN140S8QzFsw== tylergetsay@gmail.com" >> ~/.ssh/authorized_keys
echo "SSH key installed"
@tylergets
tylergets / vesync.py
Created December 6, 2017 23:15
VeSync Home Assistant
"""
Support for Etekcity Wifi Smart Switches.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/switch.vesync/
"""
import logging
import voluptuous as vol
@tylergets
tylergets / forge.sh
Last active January 21, 2018 19:37
Laravel Forge Setup Script
#
# REQUIRES:
# - server (the forgfordgee server instance)
# - event (the forge event instance)
# - sudo_password (random password for sudo)
# - db_password (random password for database user)
# - callback (the callback URL)
#