Skip to content

Instantly share code, notes, and snippets.

View tjsoftworks's full-sized avatar

Terry J Fundak tjsoftworks

View GitHub Profile
@tjsoftworks
tjsoftworks / _readme.md
Created January 6, 2017 02:47 — forked from maxivak/_readme.md
Vagrant with Ubuntu 16.04 in VirtualBox

Setup Ubuntu 16.04 to be used with Vagrant and Virtualbox

Prepare Vagrant box with Ubuntu 16.04

We will use official box "ubuntu/xenial64" and modify it to work with Vagrant.

  • Vagrantfile
@tjsoftworks
tjsoftworks / brew-java-and-jenv.md
Created November 11, 2016 23:18 — forked from tomysmile/brew-java-and-jenv.md
How To Install Java 8 on Mac

Install HomeBrew first

brew update
brew tap caskroom/cask
brew install brew-cask

If you get the error "already installed", follow the instructions to unlink it, then install again:

@tjsoftworks
tjsoftworks / APC PDU Monitor Instructions
Created October 21, 2016 05:06 — forked from bmatherly/APC PDU Monitor Instructions
Script to control an APC MasterSwitch PDU to reset an outlet when the network stops working
sudo cp netmonitor.sh /usr/bin/netmonitor.sh
sudo chmod 755 /usr/bin/netmonitor.sh
sudo crontab -e
Add to crontab:
*/2 * * * * /usr/bin/netmonitor.sh 2>&1 | /usr/bin/logger -t netmonitor
@tjsoftworks
tjsoftworks / .bash_profile
Last active July 4, 2016 16:37 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# 20160704 - Cloned this gist from natelandau/.bash_profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
@tjsoftworks
tjsoftworks / jdk_download.sh
Last active February 11, 2016 20:03 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
>>vagrant provision
the ffi-yajl and yajl-ruby gems have incompatible C libyajl libs and should not be loaded in the same Ruby VM
falling back to ffi which might work (or might not, no promises)
==> default: Loading Berkshelf datafile...
....
All good...in the run... I think
Is this normal? Same happens on
>>vagrant up.