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
#!/bin/bash | |
# References: | |
# https://superuser.com/questions/281617/change-default-text-editor-for-crontab-to-vim | |
editor_name=$1 | |
if [[ ${editor_name} == "" ]]; then | |
echo "The editor name is not set. Using the vim.basic as editor by default..." | |
editor_name="vim.basic" |
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
#!/bin/bash | |
# References: | |
# https://www.mysterydata.com/update-apache-2-4-to-latest-version-on-ubuntu-16-04-server-vestacp/ | |
sudo_prefix="sudo " | |
if [[ ${USER} == "root" ]]; then | |
sudo_prefix="" | |
else |
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
#!/bin/bash | |
# References | |
# https://www.cnblogs.com/xsjzhao/p/11001541.html | |
# https://askubuntu.com/questions/919441/failed-to-connect-to-http-changelogs-ubuntu-com-meta-release | |
# https://ubuntuforums.org/showthread.php?t=2391641 | |
# It causes because of temporary network issue. | |
# The resolved solution is as follows: |
- https://github.com/composer/mirror
- https://secretdeveloper.co.uk/post/using-systemd-run-php-system-service
- https://dev.to/peter279k/how-to-create-own-packagist-mirror-list-on-ubuntu-18-04-56j3
- https://twpower.github.io/216-difference-between-simple-and-oneshot-in-systemd-service-type-option-en
- https://dor.ky/run-php-script-as-daemon-using-supervisord/
- https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6
- https://dev.to/abdisalan_js/1-sql-query-you-should-stop-using-1e5k
- https://medium.com/swlh/why-you-shouldnt-use-offset-and-limit-for-your-pagination-4440e421ba87
- https://www.phpjabbers.com/php--mysql-select-data-and-split-on-pages-php25.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
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# https://www.nginx.com/resources/wiki/start/ | |
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ | |
# https://wiki.debian.org/Nginx/DirectoryStructure | |
# | |
# In most cases, administrators will remove this file from sites-enabled/ and | |
# leave it as reference inside of sites-available where it will continue to be | |
# updated by the nginx packaging team. |