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
@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
@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 / 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
apiVersion: v1
kind: Service
metadata:
name: keycloak
labels:
app: keycloak
spec:
ports:
- name: http
port: 8080
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 / index.d.ts
Last active October 22, 2019 10:59
[WIP] Evergreen UI Type Definitions
/* tslint:disable:interface-name max-classes-per-file no-empty-interface */
declare module 'evergreen-ui' {
import * as React from 'react';
type PositionTypes = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right';
type IntentTypes = 'none' | 'success' | 'warning' | 'danger';
type IconNameTypes =
''
| 'loading'
@mogita
mogita / keybase.md
Last active September 22, 2019 08:06
keybase.md

Keybase proof

I hereby claim:

  • I am mogita on github.
  • I am mogita (https://keybase.io/mogita) on keybase.
  • I have a public key ASCOZGQa9HhO2oTSonjM-cK4KD0mwaMESyLnSJ4ARb6u_go

To claim this, I am signing this object:

@mogita
mogita / bust_a_groove_2_faq_for_playstation.txt
Created January 15, 2019 17:37
Bust A Groove 2 FAQ for PlayStation
Originally found at
https://gamefaqs.gamespot.com/ps/196847-bust-a-groove-2/faqs/4975
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\ \\
\\ Bust A Move 2: Dance Tengoku Mix \\
\\ \\
\\ FAQ Ver. 1.0 \\
\\ \\
@mogita
mogita / dots.csv
Created October 10, 2018 07:24
dots.csv
label ccode region pop qu de ar aq lng lat arid capacity delivery
Buenaventura COL 6 248 3 3 3 1 -77.025 3.862 6.233 3.32 2193
Sebha LBY 1 54 1 2 1 1 14.462 27.004 0.004 0.36 6319
Dongola SDN 1 167 4 4 4 1 30.461 19.184 0.004 6.96 404
Merowe SDN 1 177 2 4 3 1 31.848 18.563 0.009 2.24 404
Nouadhibou MRT 1 75 3 4 3 1 -17.035 20.844 0.01 2.58 689
AsSuways EGY 1 304 1 3 2 1 32.477 29.847 0.013 0.77 2158
al_Asir_mir_Ramadan EGY 1 78 2 3 2 1 31.758 30.275 0.015 1.94 1515
Berber SDN 1 144 4 4 4 1 33.996 18.029 0.018 14.11 486
Tamenghest DZA 1 69 1 3 2 1 5.521 22.788 0.024 0.96 3261