start new:
tmux
start new with session name:
tmux new -s myname
| #You probably want to do this in root to reduce the amount of sudos required | |
| su - | |
| #Install iptables if you haven't already | |
| #Alternatively use packet manager of your choice | |
| apt-get install iptables | |
| #Allow all incoming traffic to begin with | |
| iptables -P INPUT ACCEPT | |
| #Clean out any existing input rules. You may also remove the "INPUT" argument and run only "iptables -F" to clear all chains. When doing so, make sure there are no rules in other chains that you still need (list via "iptables -L"), for example Oracle cloud servers will have preset rules, which should not be removed. |
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
| // todos-vue/src/backend/axios/index.js | |
| import axios from 'axios' | |
| const API_URL = 'http://localhost:3000' | |
| const securedAxiosInstance = axios.create({ | |
| baseURL: API_URL, | |
| withCredentials: true, | |
| headers: { |