Moved to Toila.net
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Implements hook_nodequeue_autocomplete(). | |
| */ | |
| function smartqueue_og_nodequeue_autocomplete($queue, $subqueue, $string, $where, $where_args) { | |
| // Disable language selection temporarily, enable it again later. | |
| if (module_exists('i18n')) { | |
| i18n_selection_mode('off'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| phploc ~/www/drupal/8/ | |
| phploc 1.6.4 by Sebastian Bergmann. | |
| Directories: 342 | |
| Files: 1715 | |
| Lines of Code (LOC): 216374 | |
| Cyclomatic Complexity / Lines of Code: 0.07 | |
| Comment Lines of Code (CLOC): 83501 | |
| Non-Comment Lines of Code (NCLOC): 132873 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mozilla/5.0(iPad; U; CPU OS 4_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8F191 Safari/6533.18.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -Naur nohack/sites/all/modules/ubercart/payment/uc_payment/uc_payment.module_11_07_2012 dev/sites/all/modules/ubercart/payment/uc_payment/uc_payment.module_11_07_2012 | |
| --- nohack/sites/all/modules/ubercart/payment/uc_payment/uc_payment.module_11_07_2012 1970-01-01 07:00:00.000000000 +0700 | |
| +++ dev/sites/all/modules/ubercart/payment/uc_payment/uc_payment.module_11_07_2012 2012-05-15 06:54:07.000000000 +0700 | |
| @@ -0,0 +1,828 @@ | |
| +<?php | |
| + | |
| +/** | |
| + * @file | |
| + * Defines the payment API that lets payment modules interact with Ubercart. | |
| + * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -Naur nohack/sites/all/modules/ubercart/uc_order/templates/uc_order-customer.tpl.php dev/sites/all/modules/ubercart/uc_order/templates/uc_order-customer.tpl.php | |
| --- nohack/sites/all/modules/ubercart/uc_order/templates/uc_order-customer.tpl.php 2012-04-26 15:48:51.000000000 +0700 | |
| +++ dev/sites/all/modules/ubercart/uc_order/templates/uc_order-customer.tpl.php 2012-08-06 23:12:06.000000000 +0700 | |
| @@ -231,7 +231,15 @@ | |
| <b><?php echo $product->qty; ?> x </b> | |
| </td> | |
| <td width="98%"> | |
| - <b><?php echo $product->title .' - '. uc_price($price_info, $context); ?></b> | |
| + <b><?php echo $product->title .' - '. uc_price($price_info, $context); ?> | |
| + <?php |
- Sử dụng vcbot để hỗ trợ cho các nhu cầu tra cứu, lưu trữ, …
- Toàn bộ VC tham gia channel chung.
- Mỗi team nhỏ sẽ tham gia channel tương ứng.
- Không gửi thông tin nhạy cảm (thông tin cá nhân, password, …) trên các board, dầu là private.
- Các thông tin nhạy cảm, lưu ở Trello, rồi gửi link ở channel.
- Đăng ký nickname trước khi chính thức tham gia channel.
- Mention nick name của member khi cần họ lưu ý.
Drupal Bot là một project/tool trên nền Drupal, giúp Drupal có thể vận hành bot trên các kênh IRC, sử dụng Bot khéo léo, bot trở thành công cụ rất hiệu quả, rất thú vị.
Đây là một số lệnh để điều khiểm bot:
- Xem tình trạng bot:
drush bot-status - Reset tình trạng bot:
drush bot-status-reset -y - Start bot:
drush bot-start - Start bot deamon:
nohup drush bot-start &
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ref: http://drush.ws/examples/example.drushrc.php | |
| # Ref: http://books.tag1consulting.com/scalability/drupal/start/backups | |
| echo 'Including config file…' | |
| if [ -f ./.config ]; then | |
| . ./.config | |
| fi | |
| echo 'Getting database connection settings…' | |
| CMD='foreach ($GLOBALS['"'"'databases'"'"']['"'"'default'"'"'] as $key => $info)'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name = "VC Go" | |
| version = 7.x-1.x-dev | |
| description = "Detect old URL, redirect to the new path." | |
| core = 7.x |