- Update ubuntu software repository
- Install
- nginx - Serve our website
- mysql-server and libmysqlclient-dev - For database
- Python 3
- ufw - Firewall for our system
from https://stackoverflow.com/questions/25774999/nginx-stat-failed-13-permission-denied
Nginx operates within the directory, so if you can't cd to that directory from the nginx user then it will fail (as does the stat command in your log). Make sure the www-user can cd all the way to the /username/test/static. You can confirm that the stat will fail or succeed by running
sudo -u www-data stat /username/test/static
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
| [Recent File List] | |
| file0=C:\users\liathit\My Documents\LTspiceXVII\plot.defs | |
| file1=Z:\home\liathit\Downloads\clapp.asc | |
| file2=Z:\home\liathit\Downloads\Base_Biased_Circuits.asc | |
| file3=Z:\home\liathit\Downloads\Draft2.asc | |
| file4=Z:\home\liathit\Downloads\BJT_Characteristic_Curves.asc | |
| file5=Z:\home\liathit\Downloads\Draft4.asc | |
| file6=Z:\home\liathit\Downloads\Emitter_Amplifier.asc | |
| file7=Z:\home\liathit\Downloads\Draft1.asc | |
| file8=Z:\home\liathit\Downloads\filter.asc |
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
| yum -y install libguestfs-tools | |
| root@box1 # guestfish --rw -a ./rhel-guest-image-7.1-20150224.0.x86_64.qcow2 | |
| ><fs> run | |
| ><fs> list-filesystems | |
| ><fs> mount /dev/sda1 / | |
| ><fs> vi /etc/shadow | |
| NOTE: after you perform the following steps you use "quit" to exit. |
The difference is that for builds a lazy sequence and returns it while doseq is for executing side-effects and returns nil.
user=> (for [x [1 2 3]] (+ x 5)) (6 7 8) user=> (doseq [x [1 2 3]] (+ x 5)) nil user=> (doseq [x [1 2 3]] (println x)) 1
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
| Mount the ISO: | |
| sudo mount -t udf -o loop,ro,unhide /path/to/file.iso /mnt | |
| Insert the USB drive. | |
| Run fdisk and specify the device name of the USB drive; for example: | |
| sudo fdisk /dev/sdc |
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
| class One: | |
| def __init__(self, value): | |
| self.x = value | |
| @property | |
| def x(self): | |
| return self.__x | |
| @x.setter | |
| def x(self, value): |
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
| set -g default-terminal "screen-256color" | |
| set -g mode-mouse on | |
| set -g mouse-resize-pane on | |
| set -g mouse-select-pane on | |
| set -g mouse-select-window on | |
| set -g mode-keys vi | |
| set-option -g default-shell /usr/bin/bash | |
| set-option -g status-position bottom | |
| set-option -g set-titles-string '#{pane_current_command}' |
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
| set number | |
| set cursorline | |
| set autoindent | |
| set smarttab | |
| set shiftwidth=4 | |
| set encoding=utf-8 | |
| set noswapfile | |
| set t_Co=256 | |
| set mouse=a | |
| set autochdir |
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
| note-flask-app | |
| ├── config.py | |
| ├── note-flask-app | |
| │ ├── forms.py | |
| │ ├── __init__.py | |
| │ ├── models.py | |
| │ ├── templates | |
| │ └── views.py | |
| ├── requirements.txt | |
| └── run.py |
NewerOlder