Skip to content

Instantly share code, notes, and snippets.

@jjangga0214
jjangga0214 / jdk-on-ubuntu.md
Last active October 17, 2018 04:38
[jdk on ubuntu] #jdk #ubuntu #java #linux

jdk on ubuntu

현재 설치된 버전 확인, 변경, 색 및 설치

# 현재 설치된 버전 확인 및
# 이후 나타난 interactive console 에서 번호를 선택하여 앞으로 시스템에서 사용할 jdk 를 고를 수 있다. 
update-alternatives --config java

# jdk 검색 
apt search openjdk
@jjangga0214
jjangga0214 / file-ubuntu.md
Last active October 21, 2018 08:04
[file-ubuntu] #file #root

우분투에서 파일 시스템 정리

그냥 파일 앱에서 보면 root가 볼 수 있는 파일들이 보이지 않을 수 있다. 이것은 터미널에서 sudo du -sh * 등과 같은 명령어를 실행해도 마찬가지이다. root 로서 컴퓨터 상의 파일시스템을 모두 보는 명령어는 다음과 같다.

gksudo baobab

출처 "what-is-taking-up-so-much-space-on-my-disk-beside-the-filesystem"

주의
@jjangga0214
jjangga0214 / github_gpg_key.md
Last active December 21, 2018 06:46 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@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
@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 / 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 / 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

docker

docker-compose

docker-compose --project-name <name> --file ./path/to/docker-compose.yml up
docker-compose --project-name  down --volumes

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 

kubectl

minikube

# alias mk=minikube
minikube start
minikube stop
minikube delete