Skip to content

Instantly share code, notes, and snippets.

@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_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 / 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 / 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 / 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 / local-ssl-create.sh
Last active February 12, 2018 17:40
For creating local SSL certs given a CSR file, CA file, and CA Key file
#!/usr/bin/env bash
fname="$HOME/.local-ssl-create-hosts.lst"
sname="$HOME/.local-ssl-create-hosts.properties"
function dedupe_list {
cat "$fname" | downcase | sort | uniq - "$fname"
}
function merge_stdin_and_params {
@henderea
henderea / dev.conf
Created February 10, 2018 16:59
nginx dev server config
server {
listen 80;
server_name dev.henderea.com henderea.dev;
location ~ /(\d+)(/.*) {
proxy_pass http://127.0.0.1:$1$2$is_args$args;
proxy_set_header Cookie $http_cookie;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
@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