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
openssl req -x509 -out localhost.crt -keyout localhost.key \ | |
-newkey rsa:2048 -nodes -sha256 \ | |
-subj '/CN=localhost' -extensions EXT -config <( \ | |
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth") |
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
Amazon Linux 2 AMI (HVM) x86 | |
Instance Type: t2.micro | |
Key pair create | |
VPC | |
Security: | |
SSH 22 from current IP | |
Custom TCP 3000 from current IP | |
Add the following to user data box: |
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
sudo apt update | |
apt list --upgradable | |
mkdir nginx-backup2 | |
sudo cp -r /etc/nginx/* /etc/nginx-backup2/ | |
sudo add-apt-repository ppa:nginx/stable | |
sudo apt update | |
apt list --upgradable | |
... |
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
du -cha --max-depth=1 / | grep -E "M|G" | |
du -cha --max-depth=1 /var | grep -E "M|G" | |
du -cha --max-depth=1 /srv/www/ | grep -E "M|G" |
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
ssh-keygen -f /home/forge/.ssh/id_rsa -t rsa -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
For vue-cli3, you need to specify node_modules/@vue/cli-service/webpack.config.js | |
as a webpack configuration file in Settings | Languages & Frameworks | JavaScript | Webpack |
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
nano /usr/local/etc/php/7.2/conf.d/ext-xdebug.ini | |
brew services restart php@7.2 |
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
ln -s ../../plugins/sms_branch_details/app/addons/sms_branch_details sms_branch_details | |
ln -s ../../../../plugins/sms_branch_details/var/langs/en/addons/sms_branch_details.po sms_branch_details.po |
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
wget "https://www.cs-cart.com/index.php?dispatch=pages.get_trial&page_id=297&edition=ultimate" -O cscart.zip |
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
find -type f -newermt "2011-12-22 00:00:00" \! -newermt "2011-12-24 13:23:00" | |
or | |
find -type f -newermt "2011-12-22" \! -newermt "2011-12-24" |
NewerOlder