Skip to content

Instantly share code, notes, and snippets.

View guliujian's full-sized avatar

airbob,gu guliujian

  • RealAI.Inc
  • Beijing,China
View GitHub Profile
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: use-kube-system-psp
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
- kube-system
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'jiangmiao/auto-pairs'
Plugin 'Yggdroot/indentLine'
Plugin 'tell-k/vim-autopep8'
Plugin 'scrooloose/nerdcommenter'
@guliujian
guliujian / rbash.sh
Created April 5, 2018 09:24
some simple bash with specific command
#!/bin/bash
commands=("history" "last")
timestamp(){ date +'%Y-%m-%s %H:%M:%S'; }
log(){ echo -e "$(timestamp)\t$1\t$(whoami)\t$2" > /tmp/rbash.log; }
trycmd()
{
# Provide an option to exit the shell
if [[ "$ln" == "exit" ]] || [[ "$ln" == "q" ]]
then
curl https://downloads.lede-project.org/releases/17.01.4/targets/ar71xx/generic/lede-sdk-17.01.4-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz -LO
xz -d lede-sdk-17.01.4-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz
tar -xvf lede-sdk-17.01.4-ar71xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar
git clone https://github.com/mchome/openwrt-dogcom.git package/openwrt-dogcom
make package/openwrt-dogcom/compile V=99 -j1