Skip to content

Instantly share code, notes, and snippets.

@henderea
henderea / create-webpack.sh
Last active March 31, 2024 15:30
A script for creating a project with my webpack template
#!/usr/bin/env bash
NAME="$1"
GH_USER="henderea"
GH_REPO="webpack-template"
TEMP_DIR=$(mktemp -d -t webpack-template-XXX)
ZIP_NAME="$TEMP_DIR/webpack-template-master.zip"
curl -sSL -o "$ZIP_NAME" "https://github.com/$GH_USER/$GH_REPO/archive/master.zip"
unzip "$ZIP_NAME" -d "$TEMP_DIR"
mv "$TEMP_DIR/webpack-template-master" "$1"
@henderea
henderea / output.txt
Created December 16, 2019 13:57
output from running "pod repo update" with bundler 2.1.0
Traceback (most recent call last):
6: from /Users/erichenderson/.rvm/gems/ruby-2.6.3/bin/ruby_executable_hooks:10:in `<main>'
5: from /Users/erichenderson/.rvm/gems/ruby-2.6.3/gems/executable-hooks-1.6.0/lib/executable-hooks/hooks.rb:49:in `run'
4: from /Users/erichenderson/.rvm/gems/ruby-2.6.3/gems/executable-hooks-1.6.0/lib/executable-hooks/hooks.rb:49:in `each'
3: from /Users/erichenderson/.rvm/gems/ruby-2.6.3/gems/executable-hooks-1.6.0/lib/executable-hooks/hooks.rb:50:in `block in run'
2: from /Users/erichenderson/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/rubygems-bundler-1.4.5/lib/rubygems_executable_plugin.rb:4:in `block in <top (required)>'
1: from /Users/erichenderson/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Users/erichenderson/.rvm/rubies/ruby-2.6.3/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- rubygems-bundler/noexec (LoadError)
10: from /Users/erichenderson/.rvm/gems/ru
@henderea
henderea / 2019-04-23T20_35_08_156Z-debug.log
Last active April 23, 2019 20:52
Errors installing a package that uses keytar (Ubuntu 18.04 LTS)
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/home/henderea/.nvm/versions/node/v12.0.0/bin/node',
1 verbose cli '/home/henderea/.nvm/versions/node/v12.0.0/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '@henderea/jse'
1 verbose cli ]
2 info using npm@6.9.0
3 info using node@v12.0.0
@henderea
henderea / 2019-04-23T20_37_45_718Z-debug.log
Created April 23, 2019 20:46
Errors installing a package that uses keytar (macOS 10.14.4)
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/Users/erichenderson/.nvm/versions/node/v12.0.0/bin/node',
1 verbose cli '/Users/erichenderson/.nvm/versions/node/v12.0.0/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '@henderea/jse'
1 verbose cli ]
2 info using npm@6.9.0
3 info using node@v12.0.0
@henderea
henderea / my-service.sh
Last active June 7, 2018 14:55
Manage com.henderea.* services in launchctl
#!/usr/bin/env bash
if [[ $EUID == "0" ]]; then
domain_target="system"
plist_dir="/Library/LaunchDaemons"
else
domain_target="gui/$EUID"
plist_dir="$HOME/Library/LaunchAgents"
fi
@henderea
henderea / scripts.txt
Last active June 7, 2018 14:38
List of scripts
27a5bf48dd5c5610dda624b8d3af24bb check_open_files.rb
764b427cde1a7fa562b7fe8427aedb51 create-webpack.sh
982f84ad2f7b3609802aa6cfe64ae576 local-ssl-create.sh
46bce664c7463d8588c786cffd5a1ffd clone_repo.rb
6bda431d92d5b3769ef5ee93c3d355e6 git-svn-prune.sh
ccadcd4e5bc0f0908d91272d9366de98 git-svn-relocate.rb
74016363040a932c3fcac61c7ca7efd7 my-service.sh
@henderea
henderea / git-svn-relocate.rb
Created February 20, 2018 14:07
run a git-svn version of "svn relocate"
#!/usr/bin/env ruby
Signal.trap('SIGINT') {
Process.waitall
puts
exit 1
}
require 'readline'
require 'fileutils'
@henderea
henderea / git-svn-prune.sh
Created February 20, 2018 14:05
a script for pruning deleted remote branch references from a git-svn repo
#!/usr/bin/env bash
# Delete references to SVN branches that no longer exist
# Usage (this will not execute without asking you to confirm the list):
# git-svn-prune.sh
# Started with
# Set your SVN prefix
GIT_SVN_PREFIX="$1"
@henderea
henderea / clone_repo.rb
Created February 20, 2018 14:03
Clone an svn repo with git-svn
#!/usr/bin/env ruby
Signal.trap('SIGINT') {
Process.waitall
puts
exit 1
}
require 'readline'
@henderea
henderea / install_scripts.sh
Last active February 12, 2018 18:28
Shell function for installing the scripts
# include this in your .bashrc or .zshrc if you want to enable command output for install_scripts
# INSTALL_SCRIPTS_DEBUG=1
function _install_scripts_debug {
[[ $INSTALL_SCRIPTS_DEBUG -eq 1 ]] && echo $@
}
function install_scripts {
INSTALL_SCRIPTS_VERSION="20"
# define configuration