Skip to content

Instantly share code, notes, and snippets.

@jclusso
jclusso / karabiner.json
Created September 5, 2024 20:09
Disables all keys on Magic Keyboard so it can be mounted under the desk and only used for Touch ID.
{
"global": { "show_in_menu_bar": false },
"profiles": [
{
"devices": [
{
"identifiers": { "is_keyboard": true },
"ignore": true
},
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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 July 25, 2024 15:14
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"[email protected]", b"[email protected]")'
@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
odt
aiff
csv
rm
ogv
asf
bin
cpp
kmz
mkv