Skip to content

Instantly share code, notes, and snippets.

View TranQuangTienSA's full-sized avatar

Tran Quang Tien (SA) TranQuangTienSA

View GitHub Profile
@TranQuangTienSA
TranQuangTienSA / add-user-to-group.sh
Last active May 8, 2020 04:17
Add linux user to a exist group #linux #ubuntu #user #group #docker
sudo usermod -aG root $USER
sudo usermod -aG docker $USER
@TranQuangTienSA
TranQuangTienSA / 0_reuse_code.js
Created August 7, 2017 15:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@TranQuangTienSA
TranQuangTienSA / idea
Created December 19, 2016 08:30 — forked from chrisdarroch/idea
Open a project in IntelliJ IDEA from your command line!
#!/bin/sh
# check for where the latest version of IDEA is installed
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1`
wd=`pwd`
# were we given a directory?
if [ -d "$1" ]; then
# echo "checking for things in the working dir given"
wd=`ls -1d "$1" | head -n1`