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 | |
$competitions = array( | |
0 => array( | |
'id' => '12345', | |
'result_scope' => array( | |
'competition-status' => 'scheduled', | |
), | |
), | |
1 => array( | |
'id' => '32451', |
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 | |
$file = 'test.tpl'; | |
preg_match_all('/(?!{compress name=.*})[^}{]+?(?={\/compress})/',file_get_contents($file), $compress_blocks); | |
$compress_blocks = array_map('trim', $compress_blocks[0]); | |
foreach($compress_blocks as $compress_block){ | |
$compress_block = '<?xml version="1.0" encoding="ISO-8859-1"?>'.'<xml>'.$compress_block."</xml>"; |
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 | |
$SFlvlOneRP = 610560; | |
$MFlvlOneRP = 532800; | |
$desiredLevel = 1; | |
$baseRPPH = 1.14; | |
$maxScientiest = 333; | |
$colonies = 8; | |
$SFRPNeeded = $SFlvlOneRP*($desiredLevel*($desiredLevel+1)/2); |
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 | |
wget http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-centos-8.4-2.noarch.rpm | |
sudo rpm -ivh pgdg-centos-8.4-2.noarch.rpm | |
sudo yum install postgresql postgresql-server postgresql-devel.x86_64 postgresql-contrib postgresql-plperl | |
rm pgdg-centos-8.4-2.noarch.rpm |
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
sudo su - | |
echo PGDATA=/var/lib/pgsql/data >> /etc/sysconfig/pgsql/postgresql # Specify where the databases are stored | |
service postgresql initdb # Initialize the database | |
chkconfig postgresql on # Set postgresql to start up on boot | |
service postgresql start # Start postgresql service | |
exit # Drop out of root |
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 | |
wget http://download.osgeo.org/proj/proj-4.7.0.tar.gz | |
wget http://download.osgeo.org/proj/proj-datumgrid-1.5.zip | |
tar xf proj-4.7.0.tar.gz | |
unzip proj-datumgrid-1.5.zip -d proj-4.7.0/nad | |
cd proj-4.7.0 | |
./configure | |
make | |
sudo make install | |
sudo /sbin/ldconfig |
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 | |
wget http://download.osgeo.org/geos/geos-3.2.0.tar.bz2 | |
tar -xf geos-3.2.0.tar.bz2 | |
cd geos-3.2.0 | |
./configure | |
make | |
sudo make install | |
make check | |
sudo /sbin/ldconfig | |
cd .. |
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 | |
wget ftp://xmlsoft.org/libxml2/libxml2-2.7.7.tar.gz | |
tar -xvf libxml2-2.7.7.tar.gz | |
cd libxml2-2.7.7 | |
./configure | |
make | |
sudo make install | |
sudo /sbin/ldconfig | |
cd .. | |
rm -rf libxml2-2.7.7* |
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 | |
wget http://postgis.refractions.net/download/postgis-1.5.1.tar.gz | |
tar -xvf postgis-1.5.1.tar.gz | |
cd postgis-1.5.1 | |
./configure | |
make | |
sudo make install | |
make check | |
sudo /sbin/ldconfig | |
cd .. |
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
sudo rm /usr/lib64/libgeos_c.so.1 /usr/lib64/libproj.so.0 | |
sudo ln -s /usr/local/lib/libgeos_c.so.1.6.0 /usr/lib64/libgeos_c.so.1 | |
sudo ln -s /usr/local/lib/libproj.so /usr/lib64/libproj.so.0 |