Skip to content

Instantly share code, notes, and snippets.

View amattu2's full-sized avatar

Alec M amattu2

View GitHub Profile
@amattu2
amattu2 / blinkpoc.py
Last active November 9, 2024 15:55 — forked from jakecrowley/blinkpoc.py
Blink IMMIS live viewing PoC
import subprocess
import threading
import requests
import socket
import ssl
from time import sleep, time
# Replace these with your own values
config = {
"region": "",
@amattu2
amattu2 / deployment.py
Created August 29, 2024 20:09
A Python3 script to create and update GitHub repository deployments
from numbers import Number
import os
import requests
import json
from dotenv import load_dotenv
environments = ["dev", "dev2", "qa", "qa2", "stage", "prod"] # update as needed
deployment_states = ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"]
def get_env_var(env_var):
@amattu2
amattu2 / postman.json
Created February 11, 2023 15:39
This is a WIP Postman and ThunderClient request repository for interacting with the TryFi.com (api.tryfi.com) pet collar API.
{
"info": {
"name": "TryFi",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"description": ""
},
"item": [
{
"name": "Auth",
"item": [
@amattu2
amattu2 / NOTES.txt
Created January 22, 2023 21:24
The goal is to extract insights from the repair data, particularly revolving around repair costs and vehicle mileage.
See https://gist.github.com/amattu2/e4e6be2e6114c2229c8647fa282c1a3a for the dataset
@amattu2
amattu2 / RepairOrder.php
Last active February 6, 2022 15:08
This is a PHP class for generating automotive-type invoices/repair orders. Uses FPDF as the PDF generator.
<?php
/*
* Produced: Fri Jan 07 2022
* Author: Alec M.
* GitHub: https://amattu.com/links/github
* Copyright: (C) 2022 Alec M.
* License: License GNU Affero General Public License v3.0
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@amattu2
amattu2 / Invoice.php
Created February 6, 2022 14:57
This is a FPDF class for generating a Billable invoice for itemized costs
<?php
/*
* Produced: Fri Jan 07 2022
* Author: Alec M.
* GitHub: https://amattu.com/links/github
* Copyright: (C) 2022 Alec M.
* License: License GNU Affero General Public License v3.0
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@amattu2
amattu2 / SimpleICS.class.php
Last active March 27, 2023 09:27 — forked from furkanmustafa/SimpleICS.php
A simple ICS (iCalendar) event generator class.
<?php
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@amattu2
amattu2 / Code.gs
Created January 18, 2022 13:54
A very simple Google Apps Script implementation to add pre-configured "Print Regions" to Google Sheets
const PRINT_HEADER = "Generating export...";
const PRINT_OPTS = {
'size': 0,
'fzr': false,
'portrait': false,
'fitw': true,
'gridlines': false,
'printtitle': false,
'sheetnames': false,
'pagenum': 'CENTER',
@amattu2
amattu2 / service-history-listing.html
Last active December 22, 2021 15:40
This is an automotive vehicle service history listing design/template using HTML/CSS. It's designed for use within the scope of an automotive shop management system.
<!--
Produced: Sun Dec 19 2021
Author: Alec M.
GitHub: https://amattu.com/links/github
Copyright: (C) 2021 Alec M.
License: License GNU Affero General Public License v3.0
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
@amattu2
amattu2 / EDA.ipynb
Last active May 26, 2024 13:04
An automotive repair exploratory data analysis Python and Jupyter Notebook project. Relies on proprietary repair data ranging from 2002 to 2021. Partially incomplete
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.