Skip to content

Instantly share code, notes, and snippets.

View sufuf3's full-sized avatar
:octocat:
Focusing

Samina Fu sufuf3

:octocat:
Focusing
View GitHub Profile
@sufuf3
sufuf3 / cssobj_git_diff.json
Last active July 30, 2017 09:29
cssobj_git_diff.json
{
- "name": "cssobj",
- "description": "Runtime CSS manager, Turn CSS into dynamic JS module, Stylesheet CRUD (Create, Read, Update, Delete) in CSSOM, Solve com
mon problems of CSS-in-JS, name space (local) class names, media query hook for IE8, styled components",
- "filename": "cssobj.min.js",
- "keywords": [
- "cssom",
- "prefixer",
- "css generate",
- "diff css",
#!/bin/sh
curl -o ~/cord-bootstrap.sh https://raw.githubusercontent.com/opencord/cord/cord-5.0/scripts/cord-bootstrap.sh
chmod +x cord-bootstrap.sh
./cord-bootstrap.sh -d
export VAGRANT_SERVER_URL="https://vagrantcloud.com"
logout
login
time bash ./cord-bootstrap.sh -v -x -t "PODCONFIG=rcord-controlkube.yml config" \
-t "build" | tee -a ~/setup.log
@sufuf3
sufuf3 / container-registry-list.md
Created March 12, 2018 14:10
container registry list

Services to securely store your Docker images.

  • Amazon EC2 Container Registry Amazon EC2 Container Registry (ECR) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images.
  • Atomic Registry - Red Hat Atomic Registry is an open source enterprise registry based on the Origin and Cockpit projects, enhancing the Docker registry library.
  • Azure Container Registry Manage a Docker private registry as a first-class Azure resource
  • CargoOS A bare essential OS for running the Docker Engine on bare metal or Cloud.
  • Cycle.io Bare-metal container hosting.
  • Docker Hub provided by Docker Inc.
  • Docker Registry v2 - The Docker toolset to pack, ship, store, and deliver content
@sufuf3
sufuf3 / Install NVIDIA Driver and CUDA.md
Created March 23, 2018 06:42 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
sudo kubeadm reset
sudo swapoff -a
sudo kubeadm init --pod-network-cidr=10.244.0.0/16
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.9.1/Documentation/kube-flannel.yml
kubectl taint nodes --all node-role.kubernetes.io/master-
{
"addresses":[
{
"address":"10.246.1.3/24",
"gateway":"10.246.1.1"
}
],
"routes":[
{
"dst":"0.0.0.0/0"
http://kubernetes.kansea.com/docs/user-guide/services/#proxy-mode-userspace
https://jimmysong.io/kubernetes-handbook/concepts/service.html
https://github.com/kubernetes/kubernetes/tree/master/pkg/proxy/ipvs
https://jimmysong.io/posts/accessing-kubernetes-pods-from-outside-of-the-cluster/
https://github.com/kubernetes/contrib/tree/master/keepalived-vip
https://feisky.gitbooks.io/kubernetes/zh/plugins/keepalived-vip.html
https://www.nctusam.com/2017/09/08/kubernetes-keepailved-vip/
https://kubernetes.feisky.xyz/cha-jian-kuo-zhan/ingress/keepalived-vip
@sufuf3
sufuf3 / etcd-op.md
Last active October 8, 2018 10:54
etcd add

On coco2

$ export ETCDCTL_API=3
$ export CA=/etc/etcd/ssl
$ etcdctl --write-out=table  --cacert=${CA}/etcd-ca.pem     --cert=${CA}/etcd.pem     --key=${CA}/etcd-key.pem --endpoints=100.67.151.2:2379 member list
+------------------+---------+-------+---------------------------+---------------------------+
|        ID        | STATUS  | NAME  |        PEER ADDRS         |       CLIENT ADDRS        |
+------------------+---------+-------+---------------------------+---------------------------+
| 23a97cc01374ffea | started | coco4 | https://100.67.151.4:2380 | https://100.67.151.4:2379 |
@sufuf3
sufuf3 / 2018-NTCU系友座談會分享.md
Last active October 8, 2020 05:17
20181208-NTCU 資工系友座談會分享

20181208-NTCU 資工系友座談會分享

前言

不論是大學畢業想要找工作、或是正在抉擇碩班的領域,抑或是回心轉意回到資訊領域的懷抱,都可以參考這一篇分享。 前提是,你確定目前的你在未來打算在資訊領域打滾一陣(輩)子。 那這篇會非常非常適合你參考看看。

這篇分享是依據自己的經驗,給自己下的一些小結論,希望分享給大家,讓大家可以少走一點坎坷路。 至於自己的坎坷嘛!就只會在 2018/12/08 這天有機會分享給大家拉!

wget --quiet https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz
sudo tar -zxf go1.13.1.linux-amd64.tar.gz -C /usr/local/
echo 'export GOROOT=/usr/local/go' >> /home/$USER/.bashrc
echo 'export GOPATH=$HOME/go' >> /home/$USER/.bashrc
echo 'export PATH=/home/$USER/protoc/bin:$PATH:$GOROOT/bin:$GOPATH/bin' >> /home/$USER/.bashrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=/home/$USER/protoc/bin:$PATH:$GOROOT/bin:$GOPATH/bin
# setup golang dir
mkdir -p /home/$USER/go/src