Skip to content

Instantly share code, notes, and snippets.

View jenting's full-sized avatar

JenTing jenting

  • Taiwan
  • 14:55 (UTC +08:00)
View GitHub Profile
@jenting
jenting / rsyslog-server.conf
Created May 16, 2019 03:08
rsyslog server (RFC3164/RFC5424)
# Module
module(
load="imudp"
)
module(
load="imtcp"
MaxSessions="2000"
)
# Input
#!/bin/bash
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
ssh-add -L
@jenting
jenting / settings.json
Created July 22, 2019 13:19
VSCode settings
{
"go.formatFlags": [
"-local",
"github.com/SUSE"
]
}
@jenting
jenting / openssl-client.conf
Created July 29, 2019 02:40
openssl client configuration
[req]
req_extensions = v3_req
distinguished_name = req_distinguished_name
[req_distinguished_name]
[v3_req]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
extendedKeyUsage = clientAuth
@jenting
jenting / vscode.sh
Created August 15, 2019 00:46
VScode extensions reinstall
code --list-extensions | xargs -L 1 echo code --install-extension`
@jenting
jenting / 1-setup.md
Created August 27, 2019 16:09 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.

@jenting
jenting / crd.sh
Created January 16, 2020 02:17
CRD v1 k8s 1.16+
kubectl get crd.apiextensions.k8s.io foos.example.com -o yaml
kubectl get crd.v1.apiextensions.k8s.io foos.example.com -o yaml
kubectl get crd.v1beta1.apiextensions.k8s.io foos.example.com -o yaml
@jenting
jenting / gist:8a5ba1e929f27996d5a02172f8e88ee4
Created January 20, 2020 14:23 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@jenting
jenting / python.vim
Created March 2, 2020 00:59
Vim Python
set textwidth=79
set shiftwidth=4
set tabstop=4
set expandtab
set softtabstop=4
set shiftround
set autoindent
@jenting
jenting / patch-volume-finalizers.sh
Created March 9, 2020 07:37
patch pv/pvc finalizers
kubectl get pv | tail -n+2 | awk '{print $1}' | xargs -I{} kubectl patch pv {} -p '{"metadata":{"finalizers": null}}'
kubectl get pvc | tail -n+2 | awk '{print $1}' | xargs -I{} kubectl patch pvc {} -p '{"metadata":{"finalizers": null}}'