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
[{"Code": "AF", "Name": "Afghanistan"},{"Code": "AX", "Name": "\u00c5land Islands"},{"Code": "AL", "Name": "Albania"},{"Code": "DZ", "Name": "Algeria"},{"Code": "AS", "Name": "American Samoa"},{"Code": "AD", "Name": "Andorra"},{"Code": "AO", "Name": "Angola"},{"Code": "AI", "Name": "Anguilla"},{"Code": "AQ", "Name": "Antarctica"},{"Code": "AG", "Name": "Antigua and Barbuda"},{"Code": "AR", "Name": "Argentina"},{"Code": "AM", "Name": "Armenia"},{"Code": "AW", "Name": "Aruba"},{"Code": "AU", "Name": "Australia"},{"Code": "AT", "Name": "Austria"},{"Code": "AZ", "Name": "Azerbaijan"},{"Code": "BS", "Name": "Bahamas"},{"Code": "BH", "Name": "Bahrain"},{"Code": "BD", "Name": "Bangladesh"},{"Code": "BB", "Name": "Barbados"},{"Code": "BY", "Name": "Belarus"},{"Code": "BE", "Name": "Belgium"},{"Code": "BZ", "Name": "Belize"},{"Code": "BJ", "Name": "Benin"},{"Code": "BM", "Name": "Bermuda"},{"Code": "BT", "Name": "Bhutan"},{"Code": "BO", "Name": "Bolivia, Plurinational State of"},{"Code": "BQ", "Name": "Bonaire, Sint E |
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
#!/bin/sh | |
####################################### | |
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems. | |
# Written by @AamnahAkram from http://aamnah.com | |
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors. | |
####################################### | |
#COLORS |
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
cp .env.example .env | |
php artisan key:generate | |
php artisan migrate | |
sudo chmod -R 777 storage | |
sudo chmod -R 777 bootstrap/cache |
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
#!/bin/sh | |
echo "Starting deploying ..." | |
git --work-tree=/var/www/example.com/public_html --git-dir=git-server/example-com.git checkout -f | |
echo "Starting composer ... please wait" | |
composer install --working-dir=/var/www/example.com/public_html | |
echo "Composer done" |
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
#This is for when multiple packages are installed | |
sudo nano /etc/apt/sources.list | |
#Short open tag ubuntu | |
nano /etc/php.ini | |
#Install PHP extensions | |
sudo apt-get install php-mbstring php7.3-mbstring php-gettext libapache2-mod-php7.3 |
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 apt-get remove --purge mysql* | |
sudo apt-get purge mysql* | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
sudo apt-get remove dbconfig-mysql | |
sudo apt-get dist-upgrade | |
sudo apt-get install mysql-server |
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
Create a new user in your system. This will create the directory /home/USERNAME/ | |
sudo useradd -s /bin/bash -m USERNAME | |
Add USERNAME to the daemon groups | |
sudo usermod -G daemon USERNAME | |
Set the HOME environment variable for that user to the WordPress directory installation so when you SSH to your server using that USERNAME, it will be logged into that directory instead of /home/USERNAME. To do that, please add the following line at the end of the /home/USERNAME/.bashrc file | |
export HOME="/opt/bitnami/apps/wordpress/htdocs" | |
# Force moving to that new HOME directory | |
cd ${HOME} | |
Add the content of the user’s public key file to the /home/USERNAME/.ssh/authorized_keys file. In this example, the user’s public key is assumed to be in USERNAME.pub: | |
Copy |
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 systemctl restart mysql | |
use mysql; | |
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password'; | |
GRANT ALL ON *.* TO 'username'@'localhost'; | |
flush privileges; |
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 cp /usr/share/phpmyadmin/libraries/sql.lib.php /usr/share/phpmyadmin/libraries/sql.lib.php.bak | |
sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php | |
#Press CTRL + W and search for (count($analyzed_sql_results['select_expr'] == 1) | |
#Replace it with ((count($analyzed_sql_results['select_expr']) == 1) and save the file | |
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
<? | |
require_once dirname(__FILE__) . '/vendor/autoload.php'; | |
class ShopifySdk | |
{ | |
public function __construct() | |
{ | |
$this->username = ''; | |
$this->password = ''; |
OlderNewer