Skip to content

Instantly share code, notes, and snippets.

View luong-komorebi's full-sized avatar
🐝
I may be slow to respond.

Luong Vo luong-komorebi

🐝
I may be slow to respond.
View GitHub Profile
@luong-komorebi
luong-komorebi / docker-cleanup-resources.md
Last active August 4, 2020 17:14 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Edit Aug 5 2020 : this script may be outdated, please visit https://docs.docker.com/config/pruning/ as a lot has changed in Docker

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes
@luong-komorebi
luong-komorebi / Ruby2.6.md
Last active February 8, 2019 07:59
what's new in ruby 2.6. Source : https://nithinbekal.com/posts/ruby-2-6/

What's new in Ruby 2.6

Ruby 2.6 was released on Christmas day, and brought a few interesting new features. Here’s a quick summary of what’s changed. As with my summaries of previous versions (2.5, 2.4, 2.3) I’m only summarizing features that I find most interesting. For a complete list of changes, take a look at the changelog.

Endless ranges

A new syntax was introduced to represent an endless range. This will be useful when matching ranges in case statements.

case n
when 1..9 then 'Single digit'
when 10..99 then 'Two digit'

Keybase proof

I hereby claim:

  • I am luong-komorebi on github.
  • I am luongvo (https://keybase.io/luongvo) on keybase.
  • I have a public key whose fingerprint is F58E 4A78 9347 2723 2D49 8617 0E5C F98D 50B1 45D0

To claim this, I am signing this object:

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@luong-komorebi
luong-komorebi / gource.sh
Last active December 27, 2017 04:56 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
@luong-komorebi
luong-komorebi / AndroidManifest.xml
Created July 26, 2017 03:12 — forked from BrandonSmith/AndroidManifest.xml
Quick example of how to schedule a notification in the future using AlarmManager
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cards.notification">
<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
@luong-komorebi
luong-komorebi / example.js
Created June 5, 2017 14:51 — forked from millermedeiros/example.js
execute multiple shell commands in series on node.js
// USAGE ------
// ============
var shell = require('./shellHelper');
// execute a single shell command
shell.exec('npm test --coverage', function(err){
console.log('executed test');
}});
  • chrome
  • Vmware
  • foxit
  • sublime
  • intelliJ
  • pycharm
  • onenote 2016
  • adobe (after effect + lightroom + pts)
  • bash on ubuntu on windows
  • 7 zip
@luong-komorebi
luong-komorebi / gmail.md
Last active December 17, 2016 17:04
Cách dùng gmail làm trung gian để gửi mail @tencongty.com

Hướng dẫn thiết lập gmail cho chúng ta

Gmail có đặc điểm là có giao diện dễ xài, quen thuộc với số đông người dùng. Tuy nhiên, vì chi phí lớn ($5/ người) cho email doanh nghiệp với đuôi @tencongty.com nên hiện tại brandartist của chúng ta phải thuê một thùng mail khác rẻ hơn. Các thùng mail bên ngoài thì không có giao diện như Gmail mà sẽ có giao diện riêng, dẫn đến một số khó khăn trong việc tương tác của người dùng bình thường.

Do đó, nhu cầu sản sinh cần thiết là làm sao dùng giao diện gmail, nhưng lại gửinhận được mail của công ty. ( Hay nói cách khác là biến gmail thành hộp thư trung gian )

Gửi

  • Bước 1: truy cập setting của gmail.
@luong-komorebi
luong-komorebi / ubuntu_agnoster_install.md
Created November 5, 2016 15:18 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 14.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH