Skip to content

Instantly share code, notes, and snippets.

View tylergets's full-sized avatar

Tyler Getsay tylergets

View GitHub Profile
@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 / wifi-freshner.ino
Created November 26, 2018 23:01
Arduino code for wifi air freshner
gith#include <Button.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
int motorPin = 14;
int buttonPin = 4;
static unsigned char motorState = LOW;
@tylergets
tylergets / extras.sh
Last active March 20, 2022 20:25
Arch Setup
# All Fonts
yay -S all-repository-fonts
@tylergets
tylergets / setup.sh
Created April 28, 2022 11:44
Ubuntu 21.04 Server Setup
#!/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
@tylergets
tylergets / index.js
Created April 14, 2023 14:21
Search for OpenAI API Keys in APK files
const fs = require('fs');
const { exec } = require('child_process');
const apktoolPath = 'apktool'; // Update this with the path to apktool if it's not in your PATH
const rgPath = 'rg'; // Update this with the path to ripgrep if it's not in your PATH
// Regular expression you want to search for
const keyPattern = 'sk\\-[A-Za-z0-9]{32}';
// Execute a command and return a promise
SELECT
"Order".id,
C.name,
A.line1,
A.line2,
A.city,
A.zip,
S.name,
H.name as "hatchery_name",
HA.line1 as "hatchery_line1",
@tylergets
tylergets / gm_api.java
Created December 19, 2018 01:59
GM API
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;