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
chdir(/tmp) | |
fchdir() to previous dir | |
chdir(/usr/local/share/vim) | |
fchdir() to previous dir | |
could not source "$VIM/vimrc" | |
chdir(/usr/local/share/vim/vim80) | |
fchdir() to previous dir | |
could not source "$VIMRUNTIME/macmap.vim" | |
chdir(/Users/vagrant) |
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
brew install python python3 | |
==> Downloading https://homebrew.bintray.com/bottles/python-2.7.13.sierra.bottle.tar.gz | |
Already downloaded: /Users/vagrant/Library/Caches/Homebrew/python-2.7.13.sierra.bottle.tar.gz | |
==> Pouring python-2.7.13.sierra.bottle.tar.gz | |
==> Using the sandbox | |
==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/u | |
==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/u | |
==> /usr/local/Cellar/python/2.7.13/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/u | |
==> Caveats | |
Pip and setuptools have been installed. To update them |
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
import flask | |
import socket | |
import fcntl | |
import struct | |
app = flask.Flask(__name__) | |
# http://stackoverflow.com/questions/24196932/how-can-i-get-the-ip-address-of-eth0-in-python | |
def get_ip_address(ifname): |
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
sftp username@host -b <<EOF | |
put filename | |
EOF |
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 | |
###---------------------------------------------------------------------------- | |
### VARIABLES | |
###---------------------------------------------------------------------------- | |
declare myServers=('typeX' 'typeY') | |
declare netInternal='10.240.0' | |
let 'machineCount = 3' | |
let 'dTens = 1' |
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
#------------------------------------------------------------------------------ | |
# PUPOSE: Function: Divides by 2^10 until < 1024 and then append metric suffix | |
# AUTHOR: Joe Negron - LOGIC Wizards ~ NYC | |
# LICENSE: BuyMe-a-Drinkware: Dual BSD or GPL (pick one) | |
# USAGE: byteMe (bytes) | |
# ABSTRACT: Converts a numeric parameter to a human readable format. | |
#------------------------------------------------------------------------------ | |
#------------------------------------------------------------------------------ |
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
$ cat values.yaml | |
replicaCount: 1 | |
image: | |
repository: neo4j | |
tag: enterprise | |
pullPolicy: Always | |
ingress: | |
annotations: { | |
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "ssl", | |
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443,7687", |
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
# During the first run, the default debian account is used; with that my account is created. | |
# During the second run, the attempt is made with my account but it fails. | |
{ | |
"provisioners": [ | |
{ | |
"type": "ansible", | |
"user": "admin", | |
"playbook_file": "scripts/configure.yml", | |
"extra_arguments": [ "-v" ], |
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
# ----------------------------------------------------------------------------- | |
# NETWORK SERVICES: DHCP | |
# FIX: modularize: https://github.com/todd-dsm/tf_aws_vpc_dhcp_options | |
# ----------------------------------------------------------------------------- | |
resource "aws_vpc_dhcp_options" "dev" { | |
source = "github.com/todd-dsm/tf_aws_vpc_dhcp_options?ref=v0.1" | |
domain_name = "dev.ptest.us" | |
domain_name_servers = ["205.251.194.141"] | |
ntp_servers = ["104.154.189.119"] |
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
egrep -v '^(#|$)' ~/.ansible/ansible.cfg | |
[defaults] | |
inventory = $HOME/.ansible/hosts | |
roles_path = $HOME/.ansible/roles | |
host_key_checking = False | |
retry_files_enabled = False | |
[privilege_escalation] | |
[paramiko_connection] | |
[ssh_connection] | |
control_path = %(directory)s/ansible-ssh-%%C |