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 / docker_py_results.md
Created September 27, 2016 23:38
docker_py-1.10.3 install on Ubuntu 14
# pip install docker.py
Collecting docker.py
/usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insec
#### SESSION ####
vagrant@workstation:~/chef-repo$ knife bootstrap ${ADDRESS} -V --sudo --ssh-user ${USER} --node-name ${NODE_NAME} --run-list ${RUN_LIST}
INFO: Using configuration from /home/vagrant/chef-repo/.chef/knife.rb
Doing old-style registration with the validation key at /home/vagrant/chef-repo/.chef/vagrantdev-validator.pem...
Delete your validation key in order to use your user credentials instead
Connecting to node
@darkn3rd
darkn3rd / awesome_customer_ubuntu
Last active October 24, 2016 06:39
Awesome Customer Ubuntu
vagrant@workstation:~/chef-repo$ knife bootstrap ${ADDRESS} -V --sudo --ssh-user ${USER} --node-name ${NODE_NAME} --run-list ${RUN_LIST}
INFO: Using configuration from /home/vagrant/chef-repo/.chef/knife.rb
Doing old-style registration with the validation key at /home/vagrant/chef-repo/.chef/vagrantdev-validator.pem...
Delete your validation key in order to use your user credentials instead
Connecting to node
node -----> Existing Chef installation detected
node Starting the first Chef Client run...
node Starting Chef Client, version 12.5.1
node resolving cookbooks for run list: ["awesome_customers_ubuntu"]
INFO global: Vagrant version: 1.8.7
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_OLD_ENV__system_type="Darwin"
INFO global: VAGRANT_OLD_ENV_OLDPWD="/Users/joaquin/projarea/sysadmin-exp"
INFO global: VAGRANT_OLD_ENV_LSCOLORS="GxFxCxDxBxegedabagaced"
INFO global: VAGRANT_OLD_ENV_rvm_prefix="/Users/joaquin"
INFO global: VAGRANT_OLD_ENV_SHLVL="1"
INFO global: VAGRANT_OLD_ENV_GEM_PATH="/Users/joaquin/.rvm/gems/ruby-2.3.0:/Users/joaquin/.rvm/gems/ruby-2.3.0@global"
INFO global: VAGRANT_OLD_ENV_IRBRC="/Users/joaquin/.rvm/rubies/ruby-2.3.0/.irbrc"
@darkn3rd
darkn3rd / expecting.md
Created February 19, 2017 07:13 — forked from ksafranski/expecting.md
Basic principles of using tcl-expect scripts

Intro

TCL-Expect scripts are an amazingly easy way to script out laborious tasks in the shell when you need to be interactive with the console. Think of them as a "macro" or way to programmaticly step through a process you would run by hand. They are similar to shell scripts but utilize the .tcl extension and a different #! call.

Setup Your Script

The first step, similar to writing a bash script, is to tell the script what it's executing under. For expect we use the following:

#!/usr/bin/expect
@darkn3rd
darkn3rd / base.dockerfile
Created March 8, 2017 02:48
Example Base Docker File for Node App
FROM node:6.10
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV APP_ROOT /usr/src/app
RUN mkdir -p $APP_ROOT && \
groupadd -r appuser -g 451 && \
useradd -u 451 -r -g appuser -d $APP_ROOT -s /sbin/nologin -c "Docker image user" appuser && \
@darkn3rd
darkn3rd / envile.j2
Created March 8, 2017 04:09
Ansible Jinja2 To Cosume Yaml
{% for key, val in envvars.iteritems() %}
export {{ key }}='{{ val }}'
{% endfor %}
@darkn3rd
darkn3rd / GUIDE.MD
Last active September 3, 2021 13:18
Pedantic ADHD Guide to DevOps ToolBox
@darkn3rd
darkn3rd / LEARNING_GUIDE.md
Last active June 15, 2022 15:12
DevOps Learning Guide

DevOps Learning Guide

These are different methods that I have developed to rapidly learn technology.

Top Down Approach through Business Use Case

Understand the business case as to what problem trying to solve and how you are trying to solve it. Ultimately in business, problems are usually tied to lowering the time and money of some goal, and a particular application or DevOps tool will help in dimensions.

Any particular solution in DevOps also incorporates a particular philosophy and thus embeds processes into the tool or system. This is important to understand. It is vital to not to be deep into the weeds of any particular implementation specifics, or else you won't be able to see the concepts behind the tool and the business problem that is trying to be understood.

@darkn3rd
darkn3rd / UBUNTU_GUIDE.md
Last active June 5, 2019 20:42
Pedantic ADHD Guide to DevOps ToolBox for Ubuntu Xenial

Pedantic ADHD Guide to DevOps ToolBox (Ubuntu Xenial)

This is my guide to getting essential tools for DevOps on Zorion 12.1 falvor of Ubuntu 16.04 Xenial:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Zorin
Description:	Zorin OS 12.1
Release:	12