This file contains 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
// similar behavior as an HTTP redirect | |
window.location.replace("http://stackoverflow.com"); | |
// similar behavior as clicking on a link | |
window.location.href = "http://stackoverflow.com"; |
This file contains 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
msgid "" | |
msgstr "" | |
"Project-Id-Version: \n" | |
"POT-Creation-Date: 2015-10-12 19:24+0200\n" | |
"PO-Revision-Date: 2015-10-12 19:35+0200\n" | |
"Last-Translator: \n" | |
"Language-Team: \n" | |
"Language: fr_FR\n" | |
"MIME-Version: 1.0\n" | |
"Content-Type: text/plain; charset=UTF-8\n" |
This file contains 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
ncftpput -R -u user -p pass ftp.domain.com remote_dir local_dir | |
-z to incremental |
This file contains 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
mysql> SHOW VARIABLES LIKE "general_log%"; | |
+------------------+----------------------------+ | |
| Variable_name | Value | | |
+------------------+----------------------------+ | |
| general_log | OFF | | |
| general_log_file | /var/run/mysqld/mysqld.log | | |
+------------------+----------------------------+ | |
mysql> SET GLOBAL general_log = 'ON'; |
This file contains 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
SELECT CONCAT('ALTER TABLE ',TABLE_NAME,' ENGINE=InnoDB;') | |
FROM INFORMATION_SCHEMA.TABLES | |
WHERE ENGINE='MyISAM' | |
AND table_schema = 'mydatabase'; |
This file contains 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
su -l apache -s /bin/bash |
This file contains 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
####################### | |
# Windows Configuration | |
Update-ExecutionPolicy Unrestricted | |
Disable-InternetExplorerESC | |
Disable-GameBarTips | |
Disable-BingSearch | |
Enable-RemoteDesktop | |
Enable-MicrosoftUpdate |
This file contains 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
#!/bin/sh | |
### gitcam for windows (start) ### | |
NAME=`date +%Y%m%d%H%M%S` | |
DIRECTORY="/IMAGES/TARGET/DIRECTORY" | |
COMMANDCAMDIR="/PATH/TO/COMMANDCAM" | |
BMP2JPGDIR="/PATH/TO/BMP2PG" | |
if [ ! -d "$DIRECTORY" ]; then | |
mkdir $DIRECTORY | |
fi |
This file contains 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 vendor/propel/propel1/generator/bin/phing.php -f "vendor/propel/propel1/generator/build.xml" -Dproject.dir=app/config/propel main |
This file contains 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 | |
date('Y-m-d H:i:s' ,rand(strtotime('now'), strtotime('+ 20 days'))); | |
date('Y-m-d H:i:s', strtotime( '-'.mt_rand(0,3888000).' seconds')); | |
date('Y-m-d', strtotime( '+'.mt_rand(0,30).' days')); |