Skip to content

Instantly share code, notes, and snippets.

View zbb88888's full-sized avatar
🎯
Focusing

zbb88888 zbb88888

🎯
Focusing
  • ChinaMobile
  • suzhou
View GitHub Profile
@zbb88888
zbb88888 / gist:c675169f68c127241b24ee55ca05a1d2
Created June 16, 2023 06:30 — forked from Flet/gist:5447732
Sublime Text: Eclipse Shortcuts keymap
[
{ "keys": ["f12"], "command": "htmlprettify"},
{ "keys": ["f1"], "command": "fold" },
{ "keys": ["f2"], "command": "unfold" },
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
@zbb88888
zbb88888 / ovs-cheat.md
Created February 7, 2023 01:39 — forked from djoreilly/ovs-cheat.md
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port
@zbb88888
zbb88888 / create-kube-user.sh
Created July 21, 2022 05:54 — forked from henning/create-kube-user.sh
create k8s user, certificate, permissions and client config
#!/bin/bash
CLUSTERNAME=mycluster.mydomain
NAMESPACE=default
USERNAME=myclusteruser
GROUPNAME=mygroup
openssl genrsa -out ${USERNAME}.key 2048
CSR_FILE=$USERNAME.csr
@zbb88888
zbb88888 / kubectl-shortcuts.sh
Created February 15, 2022 07:39 — forked from tamas-molnar/kubectl-shortcuts.sh
aliases and shortcuts for kubectl
alias kc='kubectl'
alias kclf='kubectl logs --tail=200 -f'
alias kcgs='kubectl get service -o wide'
alias kcgd='kubectl get deployment -o wide'
alias kcgp='kubectl get pod -o wide'
alias kcgn='kubectl get node -o wide'
alias kcdp='kubectl describe pod'
alias kcds='kubectl describe service'
alias kcdd='kubectl describe deployment'
alias kcdf='kubectl delete -f'
@zbb88888
zbb88888 / isayme.xcs
Created February 14, 2022 07:17 — forked from isayme/isayme.xcs
xshell color scheme
[isayme]
text(bold)=eaeaea
magenta(bold)=ff00ff
text=ffffff
white(bold)=eaeaea
green=00c000
red(bold)=d20000
green(bold)=00ff00
black(bold)=808080
red=c00000
@zbb88888
zbb88888 / heat_vm_boot_from_volume.yaml
Created January 15, 2021 02:03 — forked from samos123/heat_vm_boot_from_volume.yaml
A heat template which creates a vm booted from a cinder volume that contains the image
heat_template_version: 2013-05-23
description: >
A HOT template that holds a VM instance booted from Volume where the image
is copied to the volume automatically. The VM does nothing, it is only created.
parameters:
key_name:
type: string
description: Name of an existing key pair to use for the instance