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 | |
$ini = ini_get_all('session', false); | |
$ini['url_rewriter.tags'] = ini_get('url_rewriter.tags'); | |
foreach($ini as $k => $v) | |
{ | |
echo $k . ' = ' . $v . "\n<br/>\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
.myform { | |
$label-width: 80px; | |
.form-horizontal .control-label { | |
width: $label-width; | |
} | |
.form-horizontal .controls { | |
margin-left: $label-width + 20px; | |
} | |
} |
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/bash | |
PHPVERSION=$1 | |
if [[ ! $1 =~ ^5\.[234]\.[0-9]{1,2}$ ]]; then | |
echo $PHPVERSION is not a valid php version. | |
exit | |
fi | |
INSTALL_PACKAGES="" | |
for PACKAGE in build-essential bzip2 gcc libbz2-dev libcurl3-openssl-dev libcurl4-openssl-dev libgd2-xpm-dev libicu-dev libmcrypt-dev libmhash-dev libmysqlclient-dev libxml2-dev libxslt1-dev libxslt1-dev make wget; do |
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
-- -------------------------------------------------------------------------------- | |
-- Routine DDL | |
-- Note: comments before and after the routine body will not be stored by the server | |
-- -------------------------------------------------------------------------------- | |
DELIMITER $$ | |
CREATE PROCEDURE `select_zero_date_columns`() | |
BEGIN | |
DECLARE current_table_name CHAR(255); | |
DECLARE current_column_name CHAR(255); |
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
# delete all local merged branches with no activity within the last week | |
for k in $(git branch --merged | sed /\*/d); do | |
if [ -z "$(git log -1 --since='1 week ago' -s $k)" ]; then | |
echo git branch -d $k | |
fi | |
done | |
# delete all merged remote branches with no activity within the last month | |
for k in $(git branch -r --merged | cut -d ' ' -f3 | sed /\*/d); do | |
if [ -z "$(git log -1 --since='1 month ago' -s $k)" ]; then |
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
transport: { | |
parameterMap: function (options, operation) { | |
if (operation === "update" || operation === "create") { | |
$.each(options, function (key, value) { | |
if (value instanceof Date) { | |
options[key] = Math.round(value.getTime() / 1000); | |
} | |
}); | |
} | |
return options; |
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 | |
/* | |
HHVMinfo - phpinfo page for HHVM HipHop Virtual Machine | |
Author: _ck_ | |
License: WTFPL, free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
Version: 0.0.6 | |
* revision history | |
0.0.6 2014-08-02 display fix for empty vs zero | |
0.0.5 2014-07-31 try to determine config file from process command line (may not always work), style improvements |
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
<!-- Disable E_USER_DEPRECATED until 3.0 --> | |
<ini name="error_reporting" value="-16385"/> |
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 | |
namespace Pokus; | |
class Exception extends \Exception | |
{ | |
} | |
function tttt($string) | |
{ | |
try { |
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/bash | |
set -eou pipefail | |
if [ ! -f "$1" ]; then | |
echo $1 is not readable. | |
exit 1 | |
fi | |
TEMPDIR=`mktemp -d` |
OlderNewer