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 | |
define('TEST_KEY', 'are_we_glued'); | |
$redis = new Redis(); | |
try { | |
$redis->connect('localhost', 6379); | |
$redis->set(TEST_KEY, 'yes'); | |
$glueStatus = $redis->get(TEST_KEY); | |
if ($glueStatus) { | |
$testKey = TEST_KEY; | |
echo "Glued with the Redis key value store:" . 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
To achieve this for all the above languages, here are the steps: | |
1. Open a terminal, in it write the following and press [enter]: | |
cd $HOME/ && wget https://blog.desdelinux.net/wp-content/uploads/nanorc.nanorc && mv nanorc.nanorc .nanorc | |
2. Once this and pressed [enter], the terminal will be closed. | |
3. Open another terminal, and try the following: | |
nanotest.html |
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
MODX Revolution is a CMS written in PHP and it's recent version do support php 8.2. | |
There is a confedence it's support will be continued so just in case a small guide how you can deploy it on your Digitalocean cloud or other vps | |
Let's go: | |
$ apt-get install php8.2 php8.2-mysql mysql-server | |
# download modx revolution from http://modxcms.com | |
$ cd /var/www | |
$ unzip /home/ubuntu/modx-2.8.6-pl.zip | |
$ mv modx-2.8.6-pl modx | |
$ cd modx |
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
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
<select id="country" name="country" class="form-control"> | |
<option value="Afghanistan">Afghanistan</option> | |
<option value="Åland Islands">Åland Islands</option> | |
<option value="Albania">Albania</option> | |
<option value="Algeria">Algeria</option> | |
<option value="American Samoa">American Samoa</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Angola">Angola</option> |
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
{ | |
"name" : "whatafunc/opencart-project", | |
"description": "develop some bespoke functionality and test it with automatic testing such as PHPUnit tests", | |
"homepage" : "localhost:8000", | |
"license" : "", | |
"require-dev" : { | |
"robmorgan/phinx": "^0.9.2", | |
"squizlabs/php_codesniffer" : "*" | |
}, |
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
$data = [ | |
[ | |
'sku' => 'test2', | |
'name' => 'Big TV', | |
'description' => 'ma tEsEt descr', | |
'price' => 15000, // in cents | |
'sale_price' => 129900, | |
'sale_price_from' => '2019-08-07 18:11:31+02:00', | |
'sale_price_until' => '2019-10-01 01:00:00+02:00', | |
'stock' => 14, |
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
Speedtest® CLI for MAC OSX: | |
brew tap teamookla/speedtest | |
brew update | |
# Example how to remove conflicting or old versions using brew | |
# brew uninstall speedtest --force | |
# brew uninstall speedtest-cli --force | |
brew install speedtest --force | |
Speedtest® CLI for CentOS | |
# If migrating from prior bintray install instructions please first... |
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
/*some common breakpoints for widths of devices: | |
320px — 480px: Mobile devices | |
481px — 768px: iPads, Tablets | |
769px — 1024px: Small screens, laptops | |
1025px — 1200px: Desktops, large screens | |
1201px and more — Extra large screens, TV | |
*/ | |
#xmods-twttr-footer{ | |
padding-bottom: 30px; |
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
The following is OK for MODX 2.8.x and 3.x installations using git | |
https://docs.modx.com/3.x/en/getting-started/installation/git#alternative-using-create-project | |
git clone http://github.com/modxcms/revolution.git -b 3.x www | |
curl -sS https://getcomposer.org/installer -o ./composer-setup.php | |
php7.4 composer-setup.php | |
php7.4 composer.phar | |
php7.4 composer.phar install |
NewerOlder