Skip to content

Instantly share code, notes, and snippets.

View darkn3rd's full-sized avatar
🏠
Working from home

Joaquin Menchaca darkn3rd

🏠
Working from home
View GitHub Profile
@darkn3rd
darkn3rd / osx_automount_nfs.md
Last active August 29, 2015 14:27 — forked from L422Y/osx_automount_nfs.md
Automounting NFS share in OS X into /Volumes

I have spent quite a bit of time figuring out automounts of NFS shares in OS X...

Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:

/etc/auto_master (see last line):

#
# Automounter master map
#

+auto_master # Use directory service

Kickstart

Setting up a PXE Server.

  • Environment
  • VirtualBox
  • Network - static
  • Disable Firewall, SELinux
  • Services
# Place this in .bash_profile
# CygWin version of Window Variables
export WINDIR="/cygdrive/c/Windows/"
export USERPROFILE="/cygdrive/c/Users/${USERNAME}"
# Custome Variable
SYSTEM32="${WINDIR}/system32"
# Common Paths
WINPATHS="${SYSTEM32}:${WINDIR}:${SYSTEM32}/Wbem:${SYSTEM32}/WindowsPowerShell/v1.0"
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_PATH="/usr/local/Cellar/maven/3.3.9/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin:/Users/joaquinmenchaca/.rvm/gems/ruby-2.0.0-p643/bin:/Users/joaquinmenchaca/.rvm/gems/ruby-2.0.0-p643@global/bin:/Users/joaquinmenchaca/.rvm/rubies/ruby-2.0.0-p643/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/joaquinmenchaca/.rvm/bin"
INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF-8"
INFO global: VAGRANT_OLD_ENV_USER="joaquinmenchaca"
INFO global: VAGRANT_OLD_ENV_NVM_NODEJS_ORG_MIRROR="https://nodejs.org/dist"
INFO global: VAGRANT_OLD_ENV_PS1="\\[\\e[0;33m\\]\\u\\[\\e[0m\\]@\\[\\e[0;32m\\]\\h\\[\\e[0m\\]:\\[\\e[0;34m\\]\\w\\[\\e[0m\\]\\$ "
INFO global: VAGRANT_OLD_ENV_TERM_PROGRAM="Apple_Terminal"
INFO global: VAGRANT_OLD_ENV_IRBRC="/Users/joaquinmenchaca/.rvm/rubies/ruby-2.0.0-p643/.irbrc"
@darkn3rd
darkn3rd / 20160418.osx_elcapitan.sleep_wake_authd
Created April 19, 2016 05:26
OS X El Capitan Kernel Panic - Sleep/Wake Authd
Date/Time: 2016-04-18 19:28:00 -0700
OS Version: Mac OS X 10.11.4 (Build 15E65)
Architecture: x86_64h
Report Version: 22
Event: Sleep Wake Failure
Steps: 8
Hardware model: Macmini7,1
Active cpus: 4
@darkn3rd
darkn3rd / org.apache.storm:storm-core:jar:0.10.1-SNAPSHOT
Created April 26, 2016 00:45
Apache Storm 0.10.1 Build Broken
$ mvn clean install -X
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/lib/apache/maven/3.2.5
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-85-generic", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/lib/apache/maven/3.2.5/conf/settings.xml
[DEBUG] Reading user settings from /home/vagrant/.m2/settings.xml
@darkn3rd
darkn3rd / vagant_up_debug
Created July 5, 2016 02:21
Vagrant Up w/ Docker Provisioner
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_NVM_IOJS_ORG_MIRROR="https://iojs.org/dist"
INFO global: VAGRANT_OLD_ENV_TERM_PROGRAM_VERSION="361.1"
INFO global: VAGRANT_OLD_ENV_TERM_SESSION_ID="EEDFF798-BC3A-4260-A805-DCDF9D222719"
INFO global: VAGRANT_OLD_ENV___CF_USER_TEXT_ENCODING="0x1F6:0x0:0x0"
INFO global: VAGRANT_OLD_ENV_LANG="en_US.UTF-8"
INFO global: VAGRANT_OLD_ENV__system_arch="x86_64"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-1.8.1/bin/vagrant"
@darkn3rd
darkn3rd / vagrant_provision_fail
Created July 5, 2016 02:24
Vagrant Provision Fail w/ Docker Provisioner
INFO global: Vagrant version: 1.8.1
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV_M2="/usr/local/Cellar/maven/3.3.9/bin"
INFO global: VAGRANT_OLD_ENV_SHELL="/bin/bash"
INFO global: VAGRANT_OLD_ENV__system_type="Darwin"
INFO global: VAGRANT_OLD_ENV_LOGNAME="joaquinmenchaca"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_OLD_ENV_CLASSPATH=":/Users/joaquinmenchaca/Classes"
INFO global: VAGRANT_OLD_ENV_GEM_HOME="/Users/joaquinmenchaca/.rvm/gems/ruby-2.3.1"
@darkn3rd
darkn3rd / Ansible-Container Side-Kick Build Fail
Created July 5, 2016 04:48
Ansible-Container vs. Debian Jessie
$ ansible-container --debug build
Project name is express
Initialized with params: {'purge_last': True, 'subcommand': 'build', 'engine_args': {'engine_name': 'docker', 'purge_last': True, 'subcommand': 'build', 'engine_args': {...}, 'base_path': '/Users/joaquinmenchaca/projarea/web-microframework/express', 'ansible_options': u'', 'flatten': False, 'kwargs': {'debug': True, 'subcommand': 'build', 'no_purge_last': True}, 'debug': True, 'rebuild': False, 'no_purge_last': True}, 'no_purge_last': True, 'ansible_options': u'', 'flatten': False, 'kwargs': {'debug': True, 'subcommand': 'build', 'no_purge_last': True}, 'debug': True, 'rebuild': False}
(Re)building the Ansible Container image.
Using temporary directory /var/folders/yk/6cp276m16_5f9q0m4s_8dfcr0000gp/T/tmptGFmYg...
Building Docker Engine context...
Rendered Jinja Template:
FROM python:2.7
# Add the dockerproject repo
@darkn3rd
darkn3rd / ansible-container-rebuild-fail
Created July 5, 2016 08:48
Ansible-Container Rebuild Fail
$ ansible-container build
(Re)building the Ansible Container image.
Building Docker Engine context...
Starting Docker build of Ansible Container image (please be patient)...
Ansible Container image has ID sha256:eefd96096f90601c4e06572e7ea511d7235ba5b2931eccd04d3a50a01fd58d2a
Starting Docker Compose engine to build your images...
ERROR: for ansible-container No such image: sha256:8b59430249e8ed9e5e275c8b35fc9eb53500f61250d4e0bdbad71ff3eba2be34
Attaching to
Cleaning up Ansible Container builder...