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 | |
/** | |
* do the same than parse_str without max_input_vars limitation | |
* @param $string array string to parse | |
* @return array query parsed | |
**/ | |
function my_parse_str($string) { | |
if($string==='') return array(); | |
$result = array(); |
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
<html><head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<title>circumvent max_input_vars limit in PHP</title></head> | |
<body> | |
<a href="circumvent_max_input_vars.php">restart</a><br> | |
<?php | |
/** | |
* do the same than parse_str without max_input_vars limitation: | |
* Parses $string as if it were the query string passed via a URL and sets variables in the current scope. |
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 | |
/** | |
* do the same than parse_str without max_input_vars limitation: | |
* Parses $string as if it were the query string passed via a URL and sets variables in the current scope. | |
* @param $string array string to parse (not altered like in the original parse_str(), use the second parameter!) | |
* @param $result array If the second parameter is present, variables are stored in this variable as array elements | |
* @return bool true or false if $string is an empty string | |
* |
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
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
table th.header { | |
background-color: #F3F781; | |
padding-right: 0px; | |
cursor:pointer; | |
} |
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
CREATE TABLE action_recorder ( | |
id int NOT NULL auto_increment, | |
module varchar(255) NOT NULL, | |
user_id int , | |
user_name varchar(255), | |
identifier varchar(255) NOT NULL, | |
success char (1), | |
date_added datetime NOT NULL, | |
PRIMARY KEY (id), | |
KEY idx_action_recorder_module (module), |
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
-- needed changes to upgrade oscommerce database from v2.2 to v2.3: | |
-- missing keys: | |
-- ALTER TABLE `$table` ADD $indextype ( `$field` ) | |
-- orders_products : | |
-- KEY idx_orders_products_orders_id (orders_id) | |
ALTER TABLE orders_products ADD INDEX (orders_id); | |
-- KEY idx_orders_products_products_id (products_id) | |
ALTER TABLE orders_products ADD INDEX (products_id); |
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
alter table configuration modify description text NOT NULL; | |
alter table configuration modify configuration_key varchar(255) NOT NULL; | |
alter table categories modify categories_name varchar(255) NOT NULL; |
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 | |
/** | |
* This file is part of the SysCP project. | |
* Copyright (c) 2003-2009 the SysCP Team (see authors). | |
* | |
* For the full copyright and license information, please view the COPYING | |
* file that was distributed with this source code. You can also view the | |
* COPYING file online at http://files.syscp.org/misc/COPYING.txt | |
* |
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
# this doesn't work yet: | |
cd /var/tmp/ | |
git clone https://github.com/pfps/yoga-laptop.git | |
cd yoga-laptop/yoga_laptop/ | |
make | |
sudo make install | |
sudo udevadm hwdb --update | |
mv ~/.Xmodmap ~/.Xmodmap.bak | |
cp -pr xkeycode ~/.Xmodmap | |
reboot |
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
Dist: dapper | |
Name: Dapper Drake | |
Version: 6.06 LTS | |
Date: Thu, 01 Jun 2006 9:00:00 UTC | |
Supported: 0 | |
Description: This is the Dapper Drake release | |
Release-File: http://archive.ubuntu.com/ubuntu/dists/dapper/Release | |
ReleaseNotes: http://changelogs.ubuntu.com/EOLReleaseAnnouncement | |
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/dapper/main/dist-upgrader-all/current/dapper.tar.gz | |
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/dapper/main/dist-upgrader-all/current/dapper.tar.gz.gpg |
OlderNewer