This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# | |
# INSTALLATION | |
# | |
# ln -s ${PWD}/xdiff $(brew --prefix)/bin/ | |
# sudo ln -s ${PWD}/xdiff /usr/local/bin/ | |
# | |
REPORT="$1" ; shift ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# INSTALLATION | |
# | |
# ln -s ${PWD}/subst $(brew --prefix)/bin/ | |
# sudo ln -s ${PWD}/subst /usr/local/bin/ | |
# | |
# ALTERNATIVE IMPLEMENTATION | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# frozen_string_literal: true | |
# | |
# INSTALLATION | |
# | |
# ln -s ${PWD}/git-hub $(brew --prefix)/bin/ | |
# sudo ln -s ${PWD}/git-hub /usr/local/bin/ | |
# | |
# CONFIGURATION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This first version should work on Mac OS X and Linux, but it spawns a process | |
# | |
# http://stackoverflow.com/questions/7220896/ | |
# https://github.com/rdp/os/blob/master/lib/os.rb#L127 | |
# http://www.ruby-doc.org/core-2.0/Process.html | |
# | |
# A better - but more complicated - way to achieve the same is documented here: | |
# | |
# https://build.betterup.com/tracking-a-processs-memory-usage-in-ruby/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# This script can be used to patch the following script on an Amazon Linux AMI: | |
# | |
# /etc/update-motd.d/70-available-updates | |
# | |
# which is run by cron on a daily basis to add package update info to the MOTD: | |
# | |
# 19 package(s) needed for security, out of 160 available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# INSTALLATION | |
# | |
# ln -s ${PWD}/git-subst $(brew --prefix)/bin/ | |
# | |
FROM="$1" ; | |
TO="$2" ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# INSTALLATION | |
# | |
# ln -s ${PWD}/git-stash-switcher $(brew --prefix)/bin/ | |
# | |
# COMING SOON! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rubocop:disable all | |
# https://github.com/pvdb/consenter | |
require 'io/console' | |
class Consenter # :nodoc: | |
VALID_RESPONSES = { | |
'y' => 'yes to this', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# | |
# install GNU grep (`/usr/local/bin/ggrep`)... | |
# | |
# brew tap homebrew/dupes; brew install grep | |
# | |
# usage - ensure `${PROJECTS_HOME}` is set... | |
# | |
# find ${PROJECTS_HOME}/seedy/content -name '*.md' | ./validate_external_urls.sh > seedy_external_urls.tsv |