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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<title>Test page for launching the application via JNLP</title> | |
</head> | |
<body> | |
<h3>Test page for launching the application via JNLP</h3> | |
<script src="http://java.com/js/deployJava.js"></script> | |
<script> | |
deployJava.createWebStartLaunchButton("launch.jnlp") |
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
## Configure | |
./configure \ | |
--enable-cli \ | |
--prefix=/opt/php54 \ | |
--with-readline \ | |
--with-mysql=mysqlnd \ | |
--with-mysqli=mysqlnd \ | |
--with-pdo-mysql=mysqlnd \ | |
--with-pdo-sqlite \ | |
--with-gd \ |
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
TRUNCATE | |
mysql -Nse 'show tables' DATABASE_NAME | while read table; do mysql -e "truncate table $table" DATABASE_NAME; done | |
DROP | |
mysql -Nse 'show tables' DATABASE_NAME | while read table; do mysql -e "drop table $table" DATABASE_NAME; done |
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
## Configure | |
./configure \ | |
--enable-cli \ | |
--prefix=/opt/php53 \ | |
--with-readline \ | |
--with-mysql=mysqlnd \ | |
--with-mysqli=mysqlnd \ | |
--with-pdo-mysql=mysqlnd \ | |
--with-pdo-sqlite \ | |
--with-gd \ |
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
mkdir ~/tmp_working_dir | |
cd ~/tmp_working_dir | |
git init full_smalte | |
cd full_smalte | |
all_subs="installer framework module.sample tests theme.backoffice.default theme.frontoffice.default" | |
# part 1 : import all | |
# Six branch doomed to die |
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 | |
/////// FUNCTIONS | |
function removeHtaccess($path, $filename = '.htaccess') | |
{ | |
file_exists($path.DIRECTORY_SEPARATOR.$filename) && unlink($path.DIRECTORY_SEPARATOR.$filename); | |
} | |
function removeHtpasswd($path, $filename = '.htpasswd') | |
{ | |
file_exists($path.DIRECTORY_SEPARATOR.$filename) && unlink($path.DIRECTORY_SEPARATOR.$filename); |
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
// Packager: http://wbond.net/sublime_packages/package_control | |
// Packages: SublimeLinter, Emmet, Git | |
{ | |
"font_size": 13.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"highlight_line": true, | |
"highlight_modified_tabs": true, |
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
#!/usr/bin/php | |
<?php | |
$widthTile = 256; | |
$heightTile = 256; | |
if (!isset($argv[1])) | |
{ | |
exit('No input file argument'.PHP_EOL); | |
} |
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 | |
// Lib: https://github.com/twilio/twilio-php | |
require_once __DIR__.'/libs/twilio/Services/Twilio.php'; | |
// Constants | |
const SID = 'AC...'; | |
const TKN = '...'; | |
const NBR = '+33XXXXXXXXX'; | |
// Variables |
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 | |
set_error_handler(function($errno, $errstr, $errfile, $errline, array $errcontex) { | |
throw new \ErrorException($errstr, 0, $errno, $errfile, $errline); | |
}); |