Skip to content

Instantly share code, notes, and snippets.

View tylergets's full-sized avatar

Tyler Getsay tylergets

View GitHub Profile
@tylergets
tylergets / arraybuffer.js
Last active June 13, 2018 02:24
Web BLE Demo
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 / 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 / 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;
@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",