Skip to content

Instantly share code, notes, and snippets.

View mogita's full-sized avatar
🏡
Working remotely

Yun Wang mogita

🏡
Working remotely
View GitHub Profile
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: keycloak
spec:
tls:
- hosts:
- KEYCLOAK_HOST
rules:
- host: KEYCLOAK_HOST
apiVersion: v1
kind: Service
metadata:
name: keycloak
labels:
app: keycloak
spec:
ports:
- name: http
port: 8080
@mogita
mogita / notepad-in-browser.md
Created December 24, 2020 08:08
Open an instant notepad in your browser

Copy and paste the following whole line and save it to your browser's bookmark. Click on the bookmark you created to have an instant available notepad. No extensions/plugins required, no JavaScript ever runs.

Caution: closing the browser or tab will lose anything in the notepad.

data:text/html,%3Chtml%20contenteditable%3E%3Cstyle%3Ebody%7Bfont-family%3A%22JetBrains%20Mono%22%2C%20%22Source%20Code%20Pro%22%2CConsolas%2CMenlo%2Cmonospace%3Bcolor%3A%23aaaeb3%3Bbackground-color%3A%23282c34%3Bfont-size%3A10px%3Bline-height%3A1.5em%3Bpadding%3A12px%3B%7D%3C%2Fstyle%3E%3C%2Fhtml%3E

Styles customization:

  • Copy the part after data:text/html,, URL decode it
@mogita
mogita / .vimrc
Created June 30, 2021 12:02
Vim Simple Auto Complete
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Auto Complete
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Navigate the complete menu item like CTRL+n / CTRL+p would
inoremap <expr> <Down> pumvisible() ? "<C-n>" : "<Down>"
inoremap <expr> <Tab> pumvisible() ? "<C-n>" : "<Tab>"
inoremap <expr> <Up> pumvisible() ? "<C-p>" : "<Up>"
" Select the complete menu item like CTRL+y would
inoremap <expr> <CR> pumvisible() ? "<C-y>" : "<CR>"
@mogita
mogita / .vimrc
Created September 23, 2021 07:35
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic — @amix3k
"
" Awesome_version:
" Get this config, nice color schemes and lots of plugins!
"
" Install the awesome version from:
"
" https://github.com/amix/vimrc