Skip to content

Instantly share code, notes, and snippets.

View scottschreckengaust's full-sized avatar
🏄‍♂️
I may be slow to respond.

Scott Schreckengaust scottschreckengaust

🏄‍♂️
I may be slow to respond.
View GitHub Profile
@scottschreckengaust
scottschreckengaust / minimum.template
Created January 25, 2024 17:37
Minimal CloudFormation template
---
AWSTemplateFormatVersion: "2010-09-09"
Resources:
Topic:
Type: "AWS::SNS::Topic"
Metadata:
cfn_nag:
rules_to_suppress:
- id: "W47"
@scottschreckengaust
scottschreckengaust / websocketlistener.user.js
Created January 5, 2024 05:34
Creating a WebSocket Listener
// ==UserScript==
// @name A Test
// @namespace com.github
// @version 0.0.0
// @description A Test
// @author Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>
// @match http://*/*
// @match https://*/*
// @grant none
// @antifeature
@scottschreckengaust
scottschreckengaust / git.txt
Last active November 2, 2022 19:05
Schreck's Useful Snippets - seldom used, way useful, but hard to remember
################################################################################
# This will minimize a repository to only the current commit:
################################################################################
export ORIGIN_URL=$(git remote get-url origin); \
export COMMIT=$(git rev-parse HEAD); \
rm -rf .git; \
git init .; \
git remote add origin ${ORIGIN_URL}; \
git fetch origin ${COMMIT} --depth 1; \
git reset --mixed ${COMMIT}; \

Keybase proof

I hereby claim:

  • I am scottschreckengaust on github.
  • I am scottschrecken (https://keybase.io/scottschrecken) on keybase.
  • I have a public key ASDfxF4fbhLl-vj8q_u7pWXQEmDAiS3Ffb23xKcOwLDc1Qo

To claim this, I am signing this object:

// Convert Excel dates into JS date objects
//
// @param excelDate {Number}
// @return {Date}
function getJsDateFromExcel(excelDate) {
// JavaScript dates can be constructed by passing milliseconds
// since the Unix epoch (January 1, 1970) example: new Date(12312512312);