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
| ## GeoOS written in C++ (port from Java) great on peformance improve https://geophp.net/geos.html | |
| sudo yum install php-devel | |
| cd /usr/share | |
| sudo wget http://download.osgeo.org/geos/geos-3.3.9.tar.bz2 # Note this changes | |
| sudo tar -xvjf geos-3.3.9.tar.bz2 | |
| cd geos-3.3.9 | |
| sudo ./configure --enable-php && sudo make clean && sudo make | |
| sudo make install | |
| sudo ldconfig |
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
| # Root Cause | |
| $cat /etc/profile.d/gnome-ssh-askpass.sh | |
| SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass | |
| # Fixed | |
| $unset SSH_ASKPASS | |
| then | |
| $git push origin master |
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
| # Install Requirements (if normal installed failed) | |
| yum install libicu* | |
| ftp://195.220.108.108/linux/centos/6.7/os/x86_64/Packages/libicu-4.2.1-12.el6.x86_64.rpm | |
| # Step install | |
| rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm | |
| yum remove php-common | |
| yum install -y php56w php56w-mbstring php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring php56w-soap php56w-interbase php56w-pgsql php56w-xml php56w-cli php56w-fpm php56w-pear | |
| pecl install memcache |
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
| 1. Tranlation: Colo Translate | |
| 2. Customize Billing/Shipping: WooCommerce Poor Guys Swiss Knife |
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
| 1. Login github.com, create repositotory with url https://github.com/thuannvn/buddypress.git | |
| 2. On local server, cd to buddypress dir | |
| git init | |
| git add . | |
| git commit -m "Import all code" | |
| git remote add origin https://github.com/thuannvn/buddypress.git | |
| git push -u origin master | |
| Enter username/password of github.com |
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
| 1. Change image course | |
| /home/vhosts/noon.vn/wp-content/plugins/Sensei-v1.8.5/classes --> function sensei_course_image | |
| 2. |
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
| # Add the following function in MyModule to override $query solr object | |
| # This will change q param to sm_field_location:ha noi | |
| function mymodule_apachesolr_query_alter(DrupalSolrQueryInterface $query) { | |
| // print_r($query) | |
| // print $query->getParam('q'); | |
| $query->replaceParam('q', 'sm_field_location:ha noi'); | |
| print $query->getParam('q'); | |
| //print $query->q; | |
| } |
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
| # Create file solr-test.php | |
| <?php | |
| define('DRUPAL_ROOT', '/home/vhosts/domain.com'); | |
| require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; | |
| drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); | |
| $q = 'label:nhan vien kinh doanh '.'AND'.' sm_field_location:ha noi'; | |
| $query = apachesolr_drupal_query(); // Get current solr query object | |
| $query->addParam(q, $q); |
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
| # Step One | |
| --------- | |
| create a content type for example: my content type is "fullwidthpage" | |
| # Step Two | |
| ------------ | |
| copy page.tpl.php and rename to page--fullwidthpage.tpl in template folder. | |
| # Step Three |
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
| If you want to get last week publications you can do somehting like: | |
| &fq=published_date:[NOW-7DAY/DAY TO NOW] | |
| But if you want a concrete date you must do it in the SOLR date format: | |
| &fq=published_date:[2013-07-17T00:00:00Z TO NOW] | |
| I hope that helps | |
| http://server-ip:8984/solr/kiemviecinfo/select?q=label:nhan vien kinh doanh&fq=ds_created:[NOW-3DAY/DAY TO NOW]&wt=xml&indent=true&facet=true&facet.field=sm_vid_Job_Type |