sudo add-apt-repository ppa:ondrej/php
sudo apt update
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
| # update system | |
| $ sudo apt update && sudo apt upgrade | |
| # uninstall old node (v10?) | |
| $ sudo apt remove nodejs npm -y | |
| # install nvm | |
| $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash | |
| # use 'unofficial builds' in nvm |
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
| ## Restart the bash screen | |
| alias bashr='source ~/.bashrc && clear' | |
| ## Edit the Hosts file | |
| alias ehost='sudo nano /etc/hosts' | |
| ## Update the system | |
| alias update="sudo apt update && sudo apt upgrade" | |
| ## Usage of current HDD |
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/bash | |
| # Batch convert videos with HandBrake CLI | |
| # By Ralph Crisostomo - 2016.04.17 | |
| # Modified by Matt Nicholls - 2020.07.10 | |
| # | |
| # Usage : | |
| # 'sudo ./handbrake.sh /source' | |
| # | |
| # Reference : | |
| # https://forum.handbrake.fr/viewtopic.php?f=6&t=19426 |
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
| # | |
| # nginx configuration example for CakePHP 2.x | |
| # | |
| server { | |
| listen 80; | |
| server_name cakephp2.example; | |
| root /var/www/cakephp2/app/webroot; | |
| access_log /var/log/nginx/cakephp2.access.log; | |
| error_log /var/log/nginx/cakephp2.error.log; |