Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
from django.contrib.sessions.backends.base import SessionBase, CreateError | |
from django.conf import settings | |
from django.utils.encoding import force_unicode | |
import redis | |
class SessionStore(SessionBase): | |
""" Redis store for sessions""" | |
def __init__(self, session_key=None): | |
self.redis = redis.Redis( |
Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
# -*- coding: utf-8 -*- | |
import socket | |
import os | |
print("Connecting...") | |
if os.path.exists("/tmp/python_unix_sockets_example"): | |
client = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) | |
client.connect("/tmp/python_unix_sockets_example") | |
print("Ready.") | |
print("Ctrl-C to quit.") |
#### Example SSH config file | |
# Host = a list of domains, IPs and personalized aliases that use this config | |
# entry. These alias names follow "Host" and are space delimited. | |
# e.g. Host 192.168.1.1 example.com example1 myalias1 | |
# Hostname = the IP or real hostname | |
# e.g. Hostname 192.168.1.1 | |
# User = the username | |
# e.g. User jdoe | |
# Port = if this is a non standard port, i.e. not 22 |
Packer
Packer is used to build image from a base image, perform provisions and store (commit) the final image.
We use provisioners and Packer templates to do the actual work to create the final image.
We use Ansible for provisioning.
Python
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
Hello software developers,
Please check your code to ensure you're not making one of the following mistakes related to cryptography.