Skip to content

Instantly share code, notes, and snippets.

View sanglt's full-sized avatar
🎯
Focusing

Sang Lê sanglt

🎯
Focusing
View GitHub Profile
@sanglt
sanglt / gist:11389878
Last active August 29, 2015 14:00
hhvm Drupal 7.27 all test
This file has been truncated, but you can view the full file.
CPU: 2 core Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz, 2GB RAM, Debian 7
php -v
HipHop VM 3.1.0-dev+2014.04.28 (rel)
Compiler: heads/master-0-g991e92dc79342cf6d28738e599f0b769524b29e8
Repo schema: ef97af11f95fbd0ef957e5fdfc299fe13f0a71cf
Command: php -d display_errors="stderr" scripts/run-tests.sh --concurrency 6 --url 'http://localhost' --color --verbose --all
BBLIB (4000) (clientsocket.cc:226) (0x7d9c0800) Processing message (type 4)
BBLIB (4000) (clientsocket.cc:510) (0x7d9c0800) Got Service Arrival
BBLIB (4000) (clientsocket.cc:520) (0x7d9c0800) deviceHostName: SangZ30
BBLIB (4000) (clientsocket.cc:521) (0x7d9c0800) serviceName: 21EF5500E81B2983A19111FEFC107D
BBLIB (4000) (clientsocket.cc:522) (0x7d9c0800) serviceType: tunnel
BBLIB (4000) (clientsocket.cc:523) (0x7d9c0800) serviceSubType:
BBLIB (4000) (clientsocket.cc:524) (0x7d9c0800) port: 1111
BBLIB (4000) (clientsocket.cc:525) (0x7d9c0800) protocol: tcp
BBLIB (4000) (clientsocket.cc:526) (0x7d9c0800) interfaceIndex: 14
BBLIB (4000) (clientsocket.cc:527) (0x7d9c0800) Paired: yes
2014/07/29 15:23:19 [error] 31854#0: *58213 open() "/var/www/techrum.vn/threads/doanh-so-galaxy-s5-sut-giam-25-trong-q3-2014.8119/js/jquery/galleria/themes/folio/galleria.folio.min.js" failed (2: No such file or directory), client: 207.46.13.105, server: www.techrum.vn, request: "GET /threads/doanh-so-galaxy-s5-sut-giam-25-trong-q3-2014.8119/js/jquery/galleria/themes/folio/galleria.folio.min.js HTTP/1.1", host: "www.techrum.vn"
2014/07/29 15:23:20 [error] 31854#0: *58213 open() "/var/www/techrum.vn/threads/free-beauty-garden.7964/js/jquery/galleria/galleria-1.2.7.min.js" failed (2: No such file or directory), client: 207.46.13.105, server: www.techrum.vn, request: "GET /threads/free-beauty-garden.7964/js/jquery/galleria/galleria-1.2.7.min.js HTTP/1.1", host: "www.techrum.vn"
2014/07/29 15:23:20 [error] 31854#0: *58213 open() "/var/www/techrum.vn/threads/hinh-anh-offline-gionee-e7-tai-t-p-hcm.3906/galleria/themes/folio/js/jquery/jquery-1.10.2.min.js" failed (2: No such file or directory), client: 207.46.13.105
@sanglt
sanglt / purl_item_edit_validate_fix.patch
Created January 9, 2015 03:24
Error : Call to undefined function purl_item_edit_validate()
diff --git a/purl.module b/purl.module
index 955b989..141ad10 100644
--- a/purl.module
+++ b/purl.module
@@ -98,7 +98,7 @@ function purl_form_alter(&$form, &$form_state, $form_id) {
case 'menu_edit_menu':
case 'menu_edit_item':
case 'redirect_edit_form':
- module_load_include('inc', 'purl', 'purl.admin');
+ form_load_include($form_state, 'inc', 'purl', 'purl.admin');
SELECT /*+ NOPARALLEL bypass_recursive_check */
SP_ALIAS_190,
((CASE SP_ALIAS_191
WHEN 1
THEN 'PROVIDER::ALL_PROV::'
WHEN 0
THEN 'PROVIDER::PROV::'
ELSE NULL END) || SP_ALIAS_190) ALIAS_3553,
SP_ALIAS_194,
SP_ALIAS_191,
@sanglt
sanglt / result
Created April 13, 2015 07:15
PHP 5.5.22 Drupal 7.36
sanglt@ubuntu:~/oss/drupal-7.36$ php scripts/run-tests.sh --all --concurrency 4 --color --url http://drupal736.local
Drupal test run
---------------
All tests will run.
Test run started:
Monday, April 13, 2015 - 06:20
@sanglt
sanglt / hhvm 3.6.1
Last active August 29, 2015 14:19
PHPUnit 4.4.2 Durpal 8 alpha 9
sanglt@ubuntu:~/oss/drupal-8.0.0-beta9/core$ php -v
HipHop VM 3.6.1 (rel)
Compiler: tags/HHVM-3.6.1-0-gc051feff88ba8050f33f10f7b1fb07f8d3415f9e
Repo schema: 42f49251b5c27daf4e13cb6bcd0c7ef4824b55a3
sanglt@ubuntu:~/oss/drupal-8.0.0-beta9/core$ ~/phpunit-4.4.2/phpunit
PHPUnit 4.4.2 by Sebastian Bergmann.
Configuration read from /home/sanglt/oss/drupal-8.0.0-beta9/core/phpunit.xml.dist
............................................................. 61 / 7587 ( 0%)
root@bmcom:/etc/bind# named-checkconf /etc/bind/named.conf.local
root@bmcom:/etc/bind# named-checkzone businessmention.com /etc/bind/for.businessmention.com
zone businessmention.com/IN: loaded serial 2
OK
root@bmcom:/etc/bind# dig businessmention.com @104.236.29.216
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> businessmention.com @104.236.29.216
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48707
@sanglt
sanglt / htaccess_patch_for_file_and_private_folder.patch
Created October 12, 2015 07:36
Add patch to .htacces of files + private folder
diff --git a/includes/file.inc b/includes/file.inc
index d209e0a..640e7a7 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -530,6 +530,61 @@ SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
+# BEGIN Compress text files
+<ifModule mod_deflate.c>
FROM php:7-apache
RUN pecl install xdebug && docker-php-ext-enable xdebug && echo "xdebug.remote_host=10.254.254.254\nxdebug.remote_enable=1\nxdebug.remote_autostart=1" >> /usr/local/etc/php/conf.d/xdebug.ini