Skip to content

Instantly share code, notes, and snippets.

@jj-meyer
jj-meyer / main.js
Created October 28, 2020 13:43 — forked from vladdu/main.js
List all undefined CSS classes
/*
This script attempts to identify all CSS classes mentioned in HTML but not defined in the stylesheets.
In order to use it, just run it in the DevTools console (or add it to DevTools Snippets and run it from there).
Note that this script requires browser to support `fetch` and some ES6 features (fat arrow, Promises, Array.from, Set). You can transpile it to ES5 here: https://babeljs.io/repl/ .
Known limitations:
- it won't be able to take into account some external stylesheets (if CORS isn't set up)
- it will produce false negatives for classes that are mentioned in the comments.
@jj-meyer
jj-meyer / Export-Import-Auth0-Tenant-Settings.md
Last active July 26, 2020 20:03
Export and Import Auth0 Tenant Settings

npm i auth0-deploy-cli

./node_modules/.bin/a0deploy export --config_file warrant.json --format yaml --output_folder warrant
./node_modules/.bin/a0deploy import --config_file warrant.json --input_folder warrant/tenant.yml
./node_modules/.bin/a0deploy export --config_file cybercourt.json --format yaml --output_folder cybercourt
./node_modules/.bin/a0deploy import --config_file cybercourt.json --input_folder cybercourt/tenant.yml
@jj-meyer
jj-meyer / a-successful-git-branching-model
Last active May 19, 2016 13:18
A Successful git Branching Model
http://nvie.com/posts/a-successful-git-branching-model/
@jj-meyer
jj-meyer / Setup-a-Laraval-application-using-Git.md
Last active June 6, 2016 06:19
Step by step guide to set-up a new Laravel application. This workflow ensures that the application repository continue to pull changes from the laravel/laravel repository. Very important! Always git-pull changes from the laravel repository before doing a composer update.

Setup a Laravel application using Git - Chapter 1

Setup Laravel App, preserving framework updates

MINIMUM_ARGS=1
E_BADARGS=65
#bash_scripts/newLaravelApp.sh

#Use to clear existing folder completely
rm -rfI * .env* .git*
@jj-meyer
jj-meyer / Resize-vagrant-box-from-existing-base-box.md
Last active July 6, 2022 06:09
# Resize a vagrant box disk from an existing base box