A blog series for PHP developers working on larger-than-average Laravel projects
Written for projects with a development lifespan of six to twelve months, with a team of three to six developers working on them simultaneously.
from datetime import date, datetime | |
import streamlit as st | |
import pandas as pd | |
import mplfinance as mpf | |
from pandas_datareader import data as pdr | |
@st.experimental_memo(persist='disk') | |
def get_historical_data(symbol, start_date = None): | |
df = pdr.get_data_yahoo(symbol, start=start_date, end=datetime.now()) | |
for col in df.columns: |
# ------------------------------------------------ | |
# Config files are located in /etc/wireguard/wg0 | |
# ------------------------------------------------ | |
# ---------- Server Config ---------- | |
[Interface] | |
Address = 10.10.0.1/24 # IPV4 CIDR | |
Address = fd86:ea04:1111::1/64 # IPV6 CIDR | |
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # Add forwarding when VPN is started | |
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE # Remove forwarding when VPN is shutdown |
homeassistant: | |
auth_providers: | |
- type: command_line | |
command: "/config/auth/radius-auth.sh" | |
meta: true |
config setup | |
conn %default | |
ikelifetime=60m | |
keylife=20m | |
rekeymargin=3m | |
keyingtries=1 | |
ike=3des-sha1-modp1024! | |
esp=3des-sha1! |
# Basic usage | |
./sqlmap.py -u "inject address" --dbs // enumerate database | |
./sqlmap.py -u "inject address" --current-db // current database | |
./sqlmap.py -u "inject address" --users // column database user | |
./sqlmap.py -u "inject address" --current-user // current user | |
./sqlmap.py -u "inject address" --tables -D "database" // enumerate the table name of the database | |
./sqlmap.py -u "inject address" --columns -T "table name" -D "database" // get the column name of the table | |
./sqlmap.py -u "inject address" --dump -C "field, field" -T "table name" -D "database" // get the data in the table, including the column, is the pants |
# Ubuntu 20 LTS Server Setup for Laravel | |
# Login as root user | |
sudo su - | |
# Update list of available packages | |
apt update |
Install WireGuard via whatever package manager you use. For me, I use apt. | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
MacOS | |
$ brew install wireguard-tools | |
Generate key your key pairs. The key pairs are just that, key pairs. They can be |
As per https://www.htpcguides.com/force-torrent-traffic-vpn-split-tunnel-debian-8-ubuntu-16-04/, but with few upgrades.
Everything in one script: https://github.com/GAS85/pia/blob/master/split_tunnel_VPN.sh