Skip to content

Instantly share code, notes, and snippets.

curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
curl --silent --location https://rpm.nodesource.com/setup_14.x | sudo bash -
sudo yum install -y yarn
# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash
# nvm install 14
# nvm use 14
sudo yum install -y git

gcp

gcloud

# Create configuration
gcloud init

# Show configs
gcloud config list

Dockerfiles

multi stages build with busybox

FROM golang:1.11-alpine AS build
WORKDIR /src/
COPY main.go go.* /src/
RUN CGO_ENABLED=0 go build -o /bin/demo

kubectl

minikube

# alias mk=minikube
minikube start
minikube stop
minikube delete

helm

helm install [-f <config.yaml>] <release> <chart> -n <namespace> # e.g. # helm install hello ./demo -n demo
helm uninstall <release> [--keep-history] 
helm rollback <release> <revision>
helm upgrade -f <config.yaml> <release>
helm list [--all|--uninstalled]
helm history <release>
helm get values 

docker

docker-compose

docker-compose --project-name <name> --file ./path/to/docker-compose.yml up
docker-compose --project-name  down --volumes
@jjangga0214
jjangga0214 / playstore-and-libhoudini-for-anbox.md
Created October 5, 2019 13:33
Installs play store and libhoudini for anbox
# [ref](https://www.linuxuprising.com/2018/07/anbox-how-to-install-google-play-store.html)
anbox.appmgr \
&& wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh \
&& chmod +x install-playstore.sh \
&& sudo ./install-playstore.sh \
&& sudo ./install-playstore.sh --clean
@jjangga0214
jjangga0214 / breakpoint.js
Created June 12, 2019 06:50 — forked from cb109/breakpoint.js
Vue Breakpoints Mixin (also available via npm: https://www.npmjs.com/package/vue-md-breakpoint)
// Now officially integrated into Vuetify:
//
// https://github.com/vuetifyjs/vuetify/blob/master/src/components/VApp/mixins/app-breakpoint.js
// https://github.com/vuetifyjs/vuetify/blob/master/src/components/VApp/mixins/app-breakpoint.spec.js
/**
* A Vue mixin to get the current width/height and the associated breakpoint.
*
* Useful to e.g. adapt the user interface from inside a Vue component
* as opposed to using CSS classes. The breakpoint pixel values and
@jjangga0214
jjangga0214 / cloudSettings
Last active December 19, 2021 23:36
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-12-19T23:33:04.877Z","extensionVersion":"v3.4.3"}
@jjangga0214
jjangga0214 / openvpn.md
Last active February 21, 2019 09:30
tutorial for setting openvpn server and connecting to it through a client program

Use Your Own VPN with OpenVPN

This let you know how to run your own vpn server and connect client to it.

install OpenVPN on your server (ON SERVER)

I use ubuntu as a server here, but expect it to work on other distros as well.

# let us assume username is ubuntu
mdkir /home/ubuntu/ov