Skip to content

Instantly share code, notes, and snippets.

View jclusso's full-sized avatar

Jarrett Lusso jclusso

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jclusso
jclusso / update_campfire_github_action.yml
Last active February 5, 2024 17:18
Update Campfire with a GitHub Action that creates a PR.
name: Update Campfire Source
on:
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
git-filter-repo --name-callback 'return name.replace(b"old name", b"new name")'
git-filter-repo --email-callback 'return email.replace(b"old@email.com", b"new@email.com")'
@jclusso
jclusso / safety-serve-auto-advance.js
Created April 21, 2021 23:40
Safety Serve Auto-Advance
// ==UserScript==
// @name Safety Serve Auto-Advance
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Auto-Advance
// @author You
// @match https://course.safetyserve.com/*
// @grant none
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==
@jclusso
jclusso / aws-ec2-pricing-hourly-to-monthly.js
Created March 4, 2021 23:23
Convert AWS EC2 Pricing from Hourly to Monthly
// ==UserScript==
// @name AWS EC2 Pricing Hourly to Monthly
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Hourly to Monthly Pricing
// @author You
// @match https://aws.amazon.com/ec2/pricing/*
// @grant none
// ==/UserScript==
@jclusso
jclusso / webpack.config.coffee
Created April 15, 2020 19:53
Shopify webpack config to work with themekit
path = require('path')
read = require('read-yaml')
MiniCssExtractPlugin = require('mini-css-extract-plugin')
UglifyJsPlugin = require('uglifyjs-webpack-plugin')
browserSync = require('browser-sync');
BrowserSyncPlugin = require('browser-sync-webpack-plugin')
CopyPlugin = require('copy-webpack-plugin')
RemovePlugin = require('remove-files-webpack-plugin')
devMode = process.env.NODE_ENV == 'development'
@jclusso
jclusso / hubspot_api.rb
Created April 16, 2019 15:41
Basic HubSpot API class
class HubSpotAPI
def self.oauth
OAuth2::Client.new(
ENVHelper.get('hubspot_client_id'),
ENVHelper.get('hubspot_client_secret'),
site: 'https://app.hubspot.com/oauth/authorize',
token_url: 'https://api.hubapi.com/oauth/v1/token'
)
end
@jclusso
jclusso / common_file_extensions.txt
Last active August 29, 2018 19:20
most top level domains removed - source: https://github.com/dyne/file-extension-list
odt
aiff
csv
rm
ogv
asf
bin
cpp
kmz
mkv
@jclusso
jclusso / em-ga-converted.js
Created February 28, 2015 03:24
Exit Monitor Converted + Google Analytics Goal
$(document).on("em:converted", function(event, data) {
ga('send', 'event', 'exitmonitor', 'signup', 'email');
});