Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Decuir experimatt

View GitHub Profile
@experimatt
experimatt / 2021-10-24-npm-ls
Last active Oct 24, 2021
2021-10-24 npm ls output
View 2021-10-24-npm-ls
$ npm ls
client@0.1.0 ...
├── @fortawesome/fontawesome-svg-core@1.2.32
├── @fortawesome/free-regular-svg-icons@5.15.1
├── @fortawesome/free-solid-svg-icons@5.15.1
├── @fortawesome/react-fontawesome@0.1.12
├── antd@4.8.4
├── autoprefixer@10.3.7
├── axios@0.21.0
├── history@4.10.1
@experimatt
experimatt / List rails tests by folder.rb
Last active Aug 24, 2021
Script to generate a list of rails test cases by folder
View List rails tests by folder.rb
#!/usr/bin/env ruby
#
# A script to generate a list of tests within a rails project and output it as a csv
#
# Usage: ruby list_rails_tests.rb [output_file_path]
# Author: Matt Decuir
# Last Updated: 8/24/2021
#
# This scrips assumes you're running it from the project root
#
@experimatt
experimatt / iterm-colors-to-vscode.js
Last active Dec 21, 2021
A simple script to use your iTerm color profile in vscode's built-in terminal.
View iterm-colors-to-vscode.js
// This script takes an iTerm Color Profile as an argument and translates it for use with Visual Studio Code's built-in terminal.
//
// usage: `node iterm-colors-to-vscode.js [path-to-iterm-profile.json]
//
// To export an iTerm Color Profile:
// 1) Open iTerm
// 2) Go to Preferences -> Profiles -> Colors
// 3) Other Actions -> Save Profile as JSON
//
// To generate the applicable color settings and use them in VS Code: