Skip to content

Instantly share code, notes, and snippets.

@fauzan-n
fauzan-n / iTerm2 Shortcut
Created May 9, 2020
After I cannot find article of Iterm2 complete shortcut, I tried all of the sortcut my self and write here. (Iterm2 Build 3.3.9 )
View iTerm2 Shortcut
[DEFAULT]
CTRL + Q = delete whole line
CTRL + W = delete previous word
CTRL + E = go to end of line
CTRL + R = back search
CTRL + T = swap last characted (fix typo)
CTRL + Y = paste something
CTRL + U = delete whole line
CTRL + I = suggestion (same as tab)
@fauzan-n
fauzan-n / iTerm2 Shortcut
Created May 9, 2020
After I cannot find article of Iterm2 complete shortcut, I tried all of the sortcut my self and write here
View iTerm2 Shortcut
[DEFAULT]
CTRL + Q = delete whole line
CTRL + W = delete previous word
CTRL + E = go to end of line
CTRL + R = back search
CTRL + T = swap last characted (fix typo)
CTRL + Y = paste something
CTRL + U = delete whole line
CTRL + I = suggestion (same as tab)
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
View kubernetes-deployment-with-variable.yaml
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: app-name-example
namespace: default
spec:
replicas: 2
selector:
matchLabels:
app: app-name-example
View globalesec.yaml
apiVersion: v1
data:
DB_PASSWD: ZGV2ZGJwYXNzd2Q=
kind: Secret
metadata:
name: globalsec
namespace: default
View globalenv.yaml
apiVersion: v1
data:
environment: develop
db_host: "develop-mysql.default.svc.cluster.local:3306"
db_user: devdbuser
kind: ConfigMap
metadata:
name: globalenv
namespace: default
View spring-cloud-multi-properties-configmap-with-env-and-secret.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: app-name-example
namespace: default
data:
application.yml: |-
app:
name: app-name-example
spring:
View spring-cloud-multi-properties-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: app-name-example
namespace: default
data:
application.yml: |-
app:
name: app-name-example
spring:
View spring-cloud-properties-configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: app-name-example
namespace: default
data:
application.yml: |-
app:
name: app-name-example
spring:
View default-cluster-role-binding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: rbac-default-namespace
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: ClusterRole