- https://coreos.com/blog/running-kubernetes-example-on-CoreOS-part-2/
- https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/guestbook/README.md
- https://coreos.com/blog/introducing-rudder/
- https://github.com/coreos/flannel
| import java.io.FileDescriptor; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.io.PrintStream; | |
| public class HelloWorld{ | |
| private static HelloWorld instance; | |
| public static void main(String[] args){ | |
| instantiateHelloWorldMainClassAndRun(); |
| #!/usr/bin/perl | |
| package LDAPAuth; | |
| use nginx; | |
| use Authen::Simple::LDAP; | |
| use MIME::Base64; | |
| sub handler { | |
| my $r = shift; |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "flag" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| ) |
| // This systemd runs iptables-restore on boot: | |
| [Unit] | |
| Description=Packet Filtering Framework | |
| DefaultDependencies=no | |
| After=systemd-sysctl.service | |
| Before=sysinit.target | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/sbin/iptables-restore /opt/docker/scripts/iptables/iptables.rules |
| aptitude install -y build-essential | |
| wget "http://downloads.sourceforge.net/project/e1000/ixgbevf stable/2.11.3/ixgbevf-2.11.3.tar.gz" | |
| tar -zxf ./ixgbevf-* | |
| cd ixgbevf*/src | |
| make install | |
| modprobe ixgbevf | |
| sudo update-initramfs -c -k all | |
| echo "options ixgbevf InterruptThrottleRate=1,1,1,1,1,1,1,1" > /etc/modprobe.d/ixgbevf.conf |
| Team behind Go: | |
| - Ken Thompson | |
| - Co-Creator of Unix | |
| - Co-Creator of UTF-8 | |
| - Creator of 'B', the direct predecessor to the 'C' programming language | |
| - Rob Pike | |
| - Co-Creator of Unix | |
| - Co-Creator of UTF-8 | |
| - Co-Authored Practice of Programming and The Unix Programming Environment with Brian Kernighan |
| #!/bin/sh | |
| # Update latest epel | |
| wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| sudo rpm -Uvh epel-release-6-8.noarch.rpm | |
| # Download and build mosh | |
| sudo yum -y install rpm-build rpmdevtools protobuf-compiler protobuf-devel libutempter-devel zlib-devel ncurses-devel openssh-clients perl-IO-Tty openssl-devel gcc gcc-c++ | |
| rpmdev-setuptree | |
| cd ~/rpmbuild/SOURCES |
| # Start the old vagrant | |
| $ vagrant init centos-6.3 | |
| $ vagrant up | |
| # You should see a message like: | |
| # [default] The guest additions on this VM do not match the install version of | |
| # VirtualBox! This may cause things such as forwarded ports, shared | |
| # folders, and more to not work properly. If any of those things fail on | |
| # this machine, please update the guest additions and repackage the | |
| # box. |
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "fmt" | |
| ) | |
| func EncryptAESCFB(dst, src, key, iv []byte) error { | |
| aesBlockEncrypter, err := aes.NewCipher([]byte(key)) |