First and foremost, this is not a document on how to create an environment for developing applications targeting Kubernetes as its runtime. This document is to outline the steps required to create an environment for contributing to Kubernetes based on recently setting up both Linux and Mac development environments. This document is written as if you will be creating your development enivonment on OS X but just know that things are basically the same when on other OSes. Of course, the installation and configuration of these tools will changed based on which OS you're on, and possibly other things, but the gist is that in this guide when you see that tool X is required, you follow whatever steps to install tool X on your OS.
This file contains hidden or 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
| // | |
| // Cylinder.swift | |
| // | |
| // | |
| // Created by Josh Robbins on 24/02/2018. | |
| // Copyright © 2018 BlackMirror. All rights reserved. | |
| // | |
| import Foundation | |
| import SceneKit |
This file contains hidden or 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
| default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
| default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
| default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
This file contains hidden or 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
| # Install Docker on Xenial 16.04.1 x64 | |
| # Ref https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
| # No interactive for now. | |
| export DEBIAN_FRONTEND=noninteractive | |
| # Update your APT package index. | |
| sudo apt-get -y update | |
| # Update package information, ensure that APT works with the https method, and that CA certificates are installed. | |
| sudo apt-get -y install apt-transport-https ca-certificates | |
| # Add the new GPG key. | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D |
This file contains hidden or 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
| git log --graph --pretty=format:'commit: %C(bold red)%h%Creset %C(red)<%H>%Creset %C(bold magenta)%d %Creset%ndate: %C(bold yellow)%cd %Creset%C(yellow)%cr%Creset%nauthor: %C(bold blue)%an%Creset %C(blue)<%ae>%Creset%n%C(cyan)%s%n%Creset' |
This file contains hidden or 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
| #!/bin/sh | |
| set -e | |
| if [ -z "${CONFIGURATION}" ]; then | |
| CONFIGURATION=debug | |
| fi | |
| # Create the development toolchain. | |
| rm -rf ~/public/swift-project/build/Ninja-ReleaseAssert/swift-dev.xctoolchain |
This file contains hidden or 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 | |
| # Automatically installs swiftenv and run's swiftenv install. | |
| # This script was designed for usage in CI systems. | |
| git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv | |
| export SWIFTENV_ROOT="$HOME/.swiftenv" | |
| export PATH="$SWIFTENV_ROOT/bin:$PATH" | |
| eval $(swiftenv init -) | |
| if [ -f ".swift-version" ] || [ -n "$SWIFT_VERSION" ]; then |
This file contains hidden or 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 | |
| # This is a little script to make backporting patches to milestone proposed. | |
| # Instructions | |
| # ------------ | |
| # Make sure that milestone-proposed exists and is up to date: | |
| # git branch -D milestone-proposed | |
| # git checkout -b milestone-proposed origin/milestone-proposed | |
| # Grab the file and stick it in your <project> directory: | |
| # curl -OL https://raw.github.com/gist/2206428/bp.sh | |
| # Make sure the script is runnable: |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <net/if.h> | |
| #include <ifaddrs.h> | |
| #include <errno.h> | |
| #include <net/if_dl.h> |