Skip to content

Instantly share code, notes, and snippets.

View DonRichards's full-sized avatar

Don Richards DonRichards

  • Johns Hopkins University
  • Knoxville, TN
  • 22:58 (UTC -05:00)
  • X @highlander411
View GitHub Profile
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@DonRichards
DonRichards / gist:9a39d3376fb4526212cd
Last active August 9, 2024 03:11
Setup NPM for Nodemon Environment in Windows 10
C:\>npm install -g nodemon
C:\>npm config get prefix
C:\>set PATH=%PATH%;C:\Users\username\AppData\Roaming\npm;
C:\>set PATH=%PATH%;C:\Program Files (x86)\nodejs;
// Node still places 64bit versions in the 32bit directory
@DonRichards
DonRichards / npm-debug.log
Created November 2, 2015 13:58
npm install jsonwebtoken bcrypt q --save
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files (x86)\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'jsonwebtoken',
1 verbose cli 'bcrypt',
1 verbose cli 'q',
1 verbose cli '--save' ]
2 info using [email protected]
3 info using [email protected]
@DonRichards
DonRichards / Setup.sh
Last active November 23, 2015 16:47
OSX Environment Setup
#!/bin/sh
# Guide kinda https://github.com/monfresh/laptop | https://github.com/nicolashery/mac-dev-setup#system-update
fancy_echo() {
local fmt="$1"; shift
# shellcheck disable=SC2059
printf "\n$fmt\n" "$@"
}
@DonRichards
DonRichards / com.googlecode.iterm2.plist
Created February 9, 2016 17:25
iTerm2 Configuration File
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<false/>
<key>AnimateDimming</key>
<false/>
@DonRichards
DonRichards / development.make
Last active February 10, 2016 17:40
Drupal Make File Test
; This file was auto-generated by drush make
core = 7.x
api = 2
projects[drupal][version] = "7.42"
; Modules
projects[ctools][version] = "1.9"
projects[colorbox][version] = "2.10"
Apr 20, 2016 1:49:41 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/djatoka/lib/Linux-x86-64
Apr 20, 2016 1:49:41 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '75' did not find a matching property.
Apr 20, 2016 1:49:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 20, 2016 1:49:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Apr 20, 2016 1:49:41 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 834 ms
@DonRichards
DonRichards / catalina.2016-04-20.log
Last active April 21, 2016 18:56
Islandora Newspaper Batch Ingest Troubleshooting Date picker from DC-MODS-Metadata. Tomcat: catalina*.log; Apache: logs.tgz; Watchdog: watchdog-out.txt; Sample Files: independent.zip
Apr 20, 2016 1:49:41 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/djatoka/lib/Linux-x86-64
Apr 20, 2016 1:49:41 PM org.apache.catalina.startup.SetAllPropertiesRule begin
WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxSpareThreads' to '75' did not find a matching property.
Apr 20, 2016 1:49:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 20, 2016 1:49:41 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Apr 20, 2016 1:49:41 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 834 ms
sudo softwareupdate -i -a
brew update
brew upgrade
brew cleanup
brew cask outdated | xargs brew cask reinstall
npm install npm -g
npm update -g
sudo gem update --system
sudo gem update
pip install --upgrade pip