3.2.16

Favorite dev tools of 2016

Ported from my googledoc tech talk :)   Excuse the absolutely horrible plain text.  I'll add screenshots later.


no need for gist 
 
cat /etc/config.yml | nc termbin.com 9999

make immutable names for your VMs !

$> ruby -e 's=[*("A".."Z")].sample(1)[0]; a=["dog","wolf","owl","mouse"].sample(1)[0] ; n=rand(15); puts "#{a}-#{s}#{n}"' ….

dog-Y11
mouse-U2
wolf-C8


download and use zsh w/ oh-my-zsh

zshell



Ansible: just run it from source.

(1) clone ansible from github ; git checkout v1.9.0-2 ;

(2) `cd ./ansible`

(3) `source ./hacking/env-setup`

(4) `alias ansible=bin/ansible` . 


CTRLSF+NERDTree FTW.
elmiko: roll your own
plugin manager
http://elmiko.github.io/2016/01/22/choice-of-tooling.html

this seems pretty complicated.


if only they made it easier !

IntelliJ: Migrating to JDK 8.
Latest version of IntelliJ support automatic completion for migrating older constructs to JDK 8 lambdas, etc...

Intellij: Developing Spark apps w/ SBT, in IntelliJ

IntelliJ: Golang
getting vim-go to do this is not easy (impossible)? ctrln == regex.

Intellij: Prefs -> File Types -> Click ‘+’ -> enter the terms you care about.
make your own highlighter.
(keywords)

So.
Can
I
use
Intellij
for
everything?

Yes. Every project.  Global Search. One window.  The intellij terminal is awesome

Stateless testing of distributed systems and microservices.vagrant, docker-machine

Docker-machine; remember, docker is just a client…. :)
➜  ~  docker-machine create my-new-microsvc --driver=virtualbox
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM… To see how to connect Docker to this machine, run: docker-machine env my-new-microsvc

➜  ~  docker-machine env my-new-microsvc
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/Users/jayvyas/.docker/machine/machines/my-new-microsvc"
export DOCKER_MACHINE_NAME="my-new-microsvc"
# Run this command to configure your shell:
# eval "$(docker-machine env my-new-microsvc)"

➜  ~  docker-machine rm -f my-new-microsvc

vagrant up: making it stateless with animal names
ssh -i ~/.ssh/libra.pem ec2-54-165-101-116.compute-1.amazonaws.com
vagrant ssh-config will give you hints
on how to ssh into your boxes if you
dont already know.

vagrant up: providers: more than just vbox, for openstack, use ggiamarchi's impl.
 
we support these all
internally for our team to save time for folks!
try them out.
if you find a bug it helps alot b/c we can keep them up to date!
let us know.

users = me, huamin, rj, jon cope

vagrant up: openstack
setup a sec. group that is open ; grab the api endpoints ; add your ssh key ;

vagrant up: openstack

vagrant up: ansible
The magic part:
Programmatic construction of an inventory. This gets used to drive the roles that ansible applies to machines later on.
Using the ALL option to leverage ansible parallel steps.



vagrant up :ansible
what you need to know to use it w/ ansible.

example: using docker-machine to statelessly test microsvc apps for kube.
(use --link for svc glue) see k8petstore.sh build-dev scripts in upstream kubernetes.

No comments:

Post a Comment