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 / config.fish
Last active July 13, 2016 02:22
Configuration for Fish Shell #macos #bash #fish
# ~/.config/fish/config.fish
# @see more at http://hackercodex.com/guide/install-fish-shell-mac-ubuntu/
set normal (set_color normal)
set magenta (set_color magenta)
set yellow (set_color yellow)
set green (set_color green)
set red (set_color red)
set gray (set_color -o black)
@pvmchau
pvmchau / gist:8408b714f68de4a961d0
Created March 8, 2015 05:08
Drupal useful articles
- Lấy edit form element của 1 field bất kỳ trong 1 entity bất kỳ
# http://www.alexweber.com.br/en/articles/how-manually-add-entity-field-forms-custom-drupal-form
@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\]"

Tunnelball changes in 07.Mar

  • TUN-74: Edit "upcoming_events" views: edit "Create Activity Link" field.
  • TUN-76: Edit "upcoming_events" views page: Add expose filter for "field_category" field.
  • TUN-66: Edit webform "Advertise with Tunnelball" (node/80/edit): Add Price for People ... field, edit webform submittion comfirm.
  • TUN-61: Add new Rules "Redirect user after logging".
  • TUN-73: Edit template.php: edit tunnelball_preprocess_user_profile(): edit heartbeat field: replace "useractivity" feed messages with "relationsactivity" feed messages.

Tunnelball changes in 08.Mar

  • TUN-63:
  • Re-config "Account Settings": change Activation email to "Require a verification e-mail, but wait for the approval e-mail to let users set their password".
@pvmchau
pvmchau / test.make
Last active December 14, 2015 10:59
core = 7.x
api = 2
projects[drupal][version] = 7.20
; ###
; Custom modules & themes
; ###
; ---
; Modules
@pvmchau
pvmchau / lg_main.make
Last active December 14, 2015 10:59
Langgo Main MakeFile
core = 7.x
api = 2
projects[drupal][version] = 7.20
; ###
; Custom modules & themes
; ###
; ---
; Modules
- Homepage
+ Border cho form search
+ Bỏ min-height cho doctor title block
+ Thêm tên phòng ban vào hình
- Doctor
+ Chỉnh pager khi chuyển trang
+ Chỉnh pager khi responsi
- Doctor detail
Update Dashboard block
- Update custom_blog module
- Update "About the blog" Block settings
- Export imagecache
http://drupal.org/files/920450-support_multiple.patch
http://drupal.org/node/920450#comment-6876090
@pvmchau
pvmchau / amr_update.php
Last active December 10, 2015 02:38
Deloy blog dashboard, blogger blocks and Newsfeed page.
<?php
$root = '/home/andytruong/live';
$tmp = '/home/andytruong/tmp';
$drush = '/home/andytruong/drush/drush';
function run($cmds = array()) {
if (is_string($cmds)) return run(array($cmds));
foreach ($cmds as $cmd) {
print_r($cmd . "\n");