I hereby claim:
- I am davidjfelix on github.
- I am davidjfelix (https://keybase.io/davidjfelix) on keybase.
- I have a public key ASBXhkpcdJ6o4vmyZRI1p7PDZK1XXL82RZB2iks6U7RNqQo
To claim this, I am signing this object:
from ctypes import c_int8 | |
from struct import calcsize | |
# Make 4 = 5 | |
c_int8.from_address(id(4) + calcsize('PP')).value = 5 | |
# A little more readable | |
address = id(4) | |
offset = calcsize('PP') |
class java { | |
class { 'apt': } | |
# Add PPA | |
apt::ppa { 'ppa:webupd8team/java': } -> | |
# Install Java | |
package { 'oracle-java7-installer': | |
ensure => latest, | |
require => [ | |
Apt::Ppa['ppa:webupd8team/java'], | |
Exec['accept_java7_license'], |
#!/bin/bash | |
set -euvxo pipefail | |
# Get commande line tools | |
xcode-select --install | |
# Get homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
I hereby claim:
To claim this, I am signing this object:
AWSTemplateFormatVersion: '2010-09-09' | |
Metadata: | |
License: Apache-2.0 | |
Parameters: | |
CidrBlocks: | |
Description: FIXME Remove. The CIDR blocks to use for the subnets in the services VPC. | |
Default: '10.0.0.0/24,10.0.1.0/24,10.0.2.0/24,10.0.3.0/24,10.0.4.0/24,10.0.5.0/24' | |
Type: CommaDelimitedList |
Redis is an in-memory network key/value store and nltk is the python natural language toolkit. We'll be using these libraries later for the lab.
import redis
import nltk
Setup our redis connection. It's on the VM, so local is fine.
Containers are great for shipping software, but sometimes you can go too far when stripping down your container to make it as small as possible. There’s a fine balance between a “no-frills” image and something impossible to debug (I’m looking at you, single binary go containers).
The normal way I see people debug a running container is to docker exec -it