Skip to content

Instantly share code, notes, and snippets.

View Oschangkai's full-sized avatar

KaiYi Oschangkai

View GitHub Profile
@ruo91
ruo91 / cloud-config.yaml
Created September 25, 2015 23:12
Rancher OS - example: cloud-config.yaml
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1TjQnNq/HMlI4JCCakK2SQwclw2T+HzuAo3p1+HSj7LsDTJEaMzvaQ3OmeXt6ZHycmv9Cx3sBDhGCu02891C2PKahNTplIi0dC0kFZcfu4J6ZynZLmaGPG81oBpZddEknazawWKq5Xdx20He+qoN86zGbrcXQKKZ30haZmzu/n/315Kazhyy7Iuaf1EvrSEbW97LBNtxAaEtolbPMPFjdjwD4LjARpeP7JNuAe4EQElfBElXdvQJxd4bcchavvNa68Y3IKGZ2kyKGBcZDLOICpGaZBOLYLhuwLn+zO3Hh3xYSGyXQQqUJVx4hRGIolm41F1vQMUS9Zxx/PMleqvWD
rancher:
network:
interfaces:
eth*:
dhcp: true
dns:
@ronaldsuwandi
ronaldsuwandi / config.fish
Last active July 30, 2021 07:54
My personal fish shell config for OS X. Supports git branch (fast git checks), virtualenv (if installed) and Kubernetes current context
function ls --description 'List contents of directory'
command ls -lFG $argv
end
function subl --description 'Launches sublime text in a new window'
command subl -n $argv
end
function code --description 'Launches visual code studio in a new window'
command code -n $argv
@bryanbarnard
bryanbarnard / SimpleHttpClient.cs
Created December 23, 2013 19:15
Simple C# .NET 4.5 HTTPClient Request Using Basic Auth and Proxy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Http;
using System.Net;
namespace HTTP_Test