Skip to content

Instantly share code, notes, and snippets.

Avatar

Tyler Getsay tylergets

View GitHub Profile
@tylergets
tylergets / setup.sh
Created Apr 28, 2022
Ubuntu 21.04 Server Setup
View setup.sh
#!/bin/bash
# Tailscale Setup
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/hirsute.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/hirsute.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
apt-get update
apt-get install tailscale
tailscale up
# Docker Install
View extras.sh
# All Fonts
yay -S all-repository-fonts
View gm_api.java
package com.gm.onstar.sdk.client;
import com.gm.onstar.sdk.request.AlertRequest;
import com.gm.onstar.sdk.request.UpdateVehicleDetailRequest;
import defpackage.cxr;
import defpackage.cyl;
import defpackage.cyn;
import defpackage.dap;
import defpackage.daq;
import defpackage.das;
@tylergets
tylergets / wifi-freshner.ino
Created Nov 26, 2018
Arduino code for wifi air freshner
View wifi-freshner.ino
gith#include <Button.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
int motorPin = 14;
int buttonPin = 4;
static unsigned char motorState = LOW;
View arraybuffer.js
startDemo() {
let JUMPER_SERVICE = "cdeacb80-5235-4c07-8846-93a37ee6b86d";
let JUMPER_CHARACTERISTIC = "cdeacb81-5235-4c07-8846-93a37ee6b86d";
navigator.bluetooth.requestDevice({filters: [{services: [JUMPER_SERVICE]}]})
.then(device => device.gatt.connect())
.then(server => {
console.log('Connected to device');
return server.getPrimaryService(JUMPER_SERVICE);
})
@tylergets
tylergets / forge.sh
Last active Jan 21, 2018
Laravel Forge Setup Script
View forge.sh
#
# 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)
#
@tylergets
tylergets / vesync.py
Created Dec 6, 2017
VeSync Home Assistant
View vesync.py
"""
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
View install_pubkey.sh
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 / monoprice.fff
Last active May 21, 2017
Monoprice Maker Select FFF Profile w/ PETG
View monoprice.fff
<?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 Mar 16, 2017
Change the open file limit on OSX Sierra.
View increase_limit.sh
#!/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">