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
/** | |
* Prints out the new generated pdf-file as an raw HTTP-header. | |
* @link http://reeg.junetz.de/DSP/node16.html | |
* @link http://www.php.net/manual/de/function.header.php#88038 | |
* @return void | |
*/ | |
function sendPdfFileAsHeader($pdfFile, $fileName) | |
{ | |
$disposition = (false !== strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 5.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
110824 10:24:59 14537 Connect xxxx@xxxxx on krsteski_doctrine2_test | |
14537 Query SHOW FULL TABLES WHERE Table_type = 'BASE TABLE' | |
14537 Query SELECT COLUMN_NAME AS Field, COLUMN_TYPE AS Type, IS_NULLABLE AS `Null`, COLUMN_KEY AS `Key`, COLUMN_DEFAULT AS `Default`, EXTRA AS Extra, COLUMN_COMMENT AS Comment, CHARACTER_SET_NAME AS CharacterSet, COLLATION_NAME AS CollactionName FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'krsteski_doctrine2_test' AND TABLE_NAME = 'Author' | |
14537 Query SELECT DISTINCT k.`CONSTRAINT_NAME`, k.`COLUMN_NAME`, k.`REFERENCED_TABLE_NAME`, k.`REFERENCED_COLUMN_NAME` /*!50116 , c.update_rule, c.delete_rule */ FROM information_schema.key_column_usage k /*!50116 INNER JOIN information_schema.referential_constraints c ON c.constraint_name = k.constraint_name AND c.table_name = 'Author' */ WHERE k.table_name = 'Author' AND k.table_schema = 'krsteski_doctrine2_test' /*!50116 AND c.constraint_schema = 'krsteski_doctrine2_test' */ AND k.`REFERENCED_COLUMN_NAME` is not NULL | |
1453 |
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
110824 10:14:42 14425 Connect xxxxx@localhost on krsteski_doctrine2_test | |
14425 Query SET NAMES utf8 | |
14425 Query DROP TABLE IF EXISTS bookPDO | |
14425 Query DROP TABLE IF EXISTS authorPDO | |
14425 Query CREATE TABLE bookPDO ( | |
id int(11) NOT NULL AUTO_INCREMENT, | |
title varchar(255) NOT NULL, | |
isbn varchar(24) NOT NULL, | |
price decimal(10,0) NOT NULL, | |
authorPDO_id int(11) DEFAULT NULL, |
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
110824 10:13:55 14424 Connect xxxxxx@localhost on | |
14424 Init DB krsteski_doctrine2_test | |
14424 Query DROP TABLE IF EXISTS bookMYSQL | |
14424 Query DROP TABLE IF EXISTS authorMYSQL | |
14424 Query CREATE TABLE bookMYSQL ( | |
id int(11) NOT NULL AUTO_INCREMENT, | |
title varchar(255) NOT NULL, | |
isbn varchar(24) NOT NULL, | |
price decimal(10,0) NOT NULL, | |
authorMYSQL_id int(11) DEFAULT NULL, |
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 | |
error_reporting(E_USER_NOTICE); | |
//checking with === | |
$a = array(); | |
$time = microtime(true); | |
for($i=0;$i<10000;$i++) { | |
if($a[$i] === null) { |
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 | |
apc_clear_cache(); | |
apc_clear_cache('user'); | |
apc_clear_cache('opcode'); | |
echo 'success = true'.PHP_EOL; |
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
git submodule --quiet sync && | |
git submodule --quiet update --force --init --recursive && | |
git submodule foreach git pull --force origin master && | |
cd pimf-framework/ && | |
git checkout -f v1.9.0 && | |
cd .. && | |
git add pimf-framework && | |
git commit -m "use submoduile at tag v1.9.0" && | |
git push |
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
cd pimf-framework/ && \ | |
git fetch --tags && \ | |
git checkout v1.10.0 && \ | |
cd .. && \ | |
git add pimf-framework/ && \ | |
git commit -m "moved submodule to v1.10.0" && \ | |
git push |
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
package main | |
import ( | |
"flag" | |
"log" | |
"net/http" | |
) | |
func main() { | |
port := flag.String("p", "8100", "port to serve on") |
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
#!/usr/bin/env bash | |
set -eo pipefail | |
which python | |
pip --version | |
sudo pip install setuptools | |
sudo pip install wheel | |
sudo pip install awscli --upgrade |
OlderNewer