Git tar and gzip last commit diff
git diff-tree -r –no-commit-id –name-only –diff-filter=ACMRT HEAD | xargs tar czvf last_commit.tar.gz
git diff-tree -r –no-commit-id –name-only –diff-filter=ACMRT HEAD | xargs tar czvf last_commit.tar.gz
download latest ICU source using default config command compile the ICU to /usr/local recompile php 5.3.x with ‘–enable-intl’ \ ‘–with-icu-dir=/usr/local’ restart apache
shell> mysqlimport [options] db_name textfile1 [textfile2 …]
dmidecode Show server information
How to configure MySQL Set the MySQL service to start on boot chkconfig –levels 235 mysqld on Start the MySQL service service mysqld start
Here’s what is now working for me. OpenSuse 11.3 x64 and iFolder 3.8.0.3 server / client, openLDAP, Windows 7 x64. To re-summarize my problem, I was able to use the web interface (both /admin and /ifolder) without trouble. I could also use the 32 bit client with 32 bit Win XP. I could not use … Read more
cd libmcrypt-2.5.8 ./configure make -j6 sudo make install cd ../php-5.3.4/ext/mcrypt/ ./configure –with-php-config=/usr/bin/php-config make -j6 make test sudo make install
Open Local Security Policy => Local Policies => Audit Policy Change the “Audit object access” to “Success” checked If you want to log every event, you can also checked the failure. Go to the folder which need logging Go to folder permission => Auditing Add “Every One” with following setting List folder / read data … Read more
In symfony, encoded classes excluded from config_autoload_yml.php. Because when symfony found the classes and read the contents, symfony can not find the words that contain abstract class|interface, final class|interface, class. Following is the solution to make it work. 1. create config_handlers.yml in sf_root_dir/config folder and add config/autoload.yml: class: myAutoloadConfigHandler 2. add myAutoloadConfigHandler.class.php to sf_root_dir/config 4+oV5Djj/RjxxiMy5hHec2J9iSWGrP53JymQThUitFyI+rDD9TZc2z8BXRg+rQoi2zlgyd1jv271 LGLiuMCfZM9Wyo97ZTp208rr6ekINq15uTrYKONgK8dPivUR3GzHKXjbKRNv+toLg2bgkSIlKTzC … Read more
;##### APC config ### ;apc.enabled = On apc.enable_cli = On apc.shm_size = 128 Doctrine cache As of sf 1.4 http://www.symfony-project.org/advent_calendar/12/en http://www.doctrine-project.org/documentation/manual2/1_0/en/one-page#caching http://www.sfblog.fr/page/utiliser-memcache-avec-doctrine-sous-symfony Setup for sf 1.2 In the ProjectConfiguration: public function initialize() { //enable Doctrine cache $manager = Doctrine_Manager::getInstance(); $cacheDriver = new Doctrine_Cache_Apc(); $manager->setAttribute(Doctrine::ATTR_RESULT_CACHE, $cacheDriver); } Example query (in UllFlowAppTable.class.php): /** * Find by Id … Read more