Skip to content

Instantly share code, notes, and snippets.

View pvmchau's full-sized avatar

Chau Viet Minh Pham pvmchau

View GitHub Profile
@pvmchau
pvmchau / DP.md
Created November 1, 2019 02:23 — forked from mrsinguyen/DP.md
Đức Phật có đi đái ko?

ĐỨC PHẬT ĐI ĐÁI

Thuở nhỏ, câu hỏi đầu tiên của tôi về Phật là liệu khi Đức Phật uống nhiều nước thì ngài có đi đái hay không. Lớn lên, rồi cuộc sống rồi cơm áo rồi ân oán tình thù cứ xoay vần làm cản trở nhiều lần định tiếp cận Phật của tôi. Tôi chỉ muốn tiếp cận để tìm hiểu xem thực sự nếu ngài uống nhiều nước, thì ngài có đi đái hay không.

Mới đầu tiếp cận, thì bạn cũng quá hiểu, Phật là một sự khủng khiếp, quyền năng vô thượng. Đến Tôn Ngộ Không là anh hùng trong mắt bọn chúng tôi, mà Phật lật tay phát úp gọn. Một mảnh bùa gán lên là năm trăm năm người anh hùng chỉ có nằm ăn viên sắt và uống nước rỉ đồng mà sống qua ngày. Rồi thiên hạ triệu triệu người triều bái, cúng hàng trăm vạn lượng hoàng kim để cầu khẩn Ngài. Ngài là thần trên muôn thần, đến Ngọc Hoàng thượng đế bá đạo anh hùng như vậy mà vẫn dưới quyền ngài bảo kê.

Nói chung, tiếp cận ngài chỉ thấy dân gian mô tả quyền năng vô hạn lượng, và lòng từ bi cũng lượng vô hạn. Tôi không cách nào hỏi được thế thực sự ngài có đi đái hay không.

Rồi đến nh

@pvmchau
pvmchau / ps1.bash
Last active July 13, 2016 02:22 — forked from mrsinguyen/ps1.bash
#macos #bash #ps1
## Edit and add to .bash_profile file (MacOS) and .bashrc file (Ubuntu)
## Bash prompt
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
1.could not access PID file for nginx ... failed!
$ sudo fuser -k 80/tcp ; sudo /etc/init.d/nginx restart
drush scr
http://ac.buzzwoo.de/
2.resulotion
cvt 1280 1024
xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
#config sites directory
SITES_ROOT="/usr/share/nginx/www"
#config database connect. Notice if multi database connect then default is a name of first connect.
DB_URL="mysql://root:root@localhost/drupal7;mysql://root:root@localhost/drupal7_2"
#setup remote for git
GIT_REMOTE_DB="https://github.com/tuongduy/backup_db.git" #link remote repository for database
GIT_REMOTE_FILES="https://github.com/tuongduy/backup_files.git" #link remote repository for files
#config for backup
#!/bin/sh
# Configuration:
PATH_CONFIG="$HOME/vietcoop"
FILE_ARG="$1"
#check file config
if [ ! -f "$PATH_CONFIG/$FILE_ARG" ]
then
echo -e "Not found file config at '$PATH_CONFIG/$FILE_ARG'"
exit
#!/bin/sh
# Configuration:
DRUPAL_ROOT="$SITES_ROOT/$SITE_NAME_RESTORE"
DRUPAL_DIR="$SITES_ROOT/sites/$SITE_NAME_RESTORE"
GIT_REMOTE_DB="https://raw.github.com/gist/5f39454c80939a29d425/f2045d53d15d41f2f8cfbc8570dfdb243667fb76/test.sql"
DRUSH_MAKE_FILE="https://raw.github.com/gist/b84fd6235b58779398c5/3324cbb4faa4d3c39a3af6b26ea7cf418c9ab00f/test.make"
DB_URL="mysql://root:root@localhost/langgo_db_1;mysql://root:root@localhost/langgo_db_2"
ROOT_USER_NAME="root"
ROOT_USER_PASS="root"
@pvmchau
pvmchau / README.md
Created August 29, 2012 04:18 — forked from mbostock/.block
Epicyclic Gearing

From Wikipedia: Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Built with D3.js.