readme update
This commit is contained in:
48
README.md
48
README.md
@@ -2,6 +2,32 @@
|
|||||||
|
|
||||||
My collection of useful shell scripts.
|
My collection of useful shell scripts.
|
||||||
|
|
||||||
|
## Matrix.org
|
||||||
|
useful scripts when hosting a synapse homeserver for matrix
|
||||||
|
|
||||||
|
### get_matrix_access_token.sh
|
||||||
|
args:
|
||||||
|
- $1 username
|
||||||
|
- $2 password
|
||||||
|
- $3 subdomain (synapse.example.org)
|
||||||
|
returns a matrix access token
|
||||||
|
|
||||||
|
### create_matrix_account.sh
|
||||||
|
Usage: ./create_matrix_account.sh \<username> \<password> \<admin:true|false> \<matrix server domain> \<shared_secret> [displayname]
|
||||||
|
|
||||||
|
## NetworkManager
|
||||||
|
NetworkManager related scripts.
|
||||||
|
These scripts need to be moved in /etc/NetworkManager/dispatcher.d/ and must be executable
|
||||||
|
|
||||||
|
### 90-nft-wg-sh
|
||||||
|
Automatically toggle DNS leak protection for wireguard connections with nftables.
|
||||||
|
Adds tcp/udp rules to block outgoing traffic to dns port (53) if the outgoing interface isn't the wireguard connection.
|
||||||
|
It assumes wireguard connection names start with "wg-"
|
||||||
|
|
||||||
|
You can check for DNS leaks with [this website](https://www.dnsleaktest.com/)
|
||||||
|
|
||||||
|
## Other random scripts
|
||||||
|
|
||||||
### belter_tension_calculator.sh
|
### belter_tension_calculator.sh
|
||||||
script to calculate the tension with the readings from [BigTreeTech belter tool](https://bttwiki.com/belter.html) in mm, formula from the xlsx on their [git](https://github.com/bigtreetech/Belter-belt-tension-Tool).
|
script to calculate the tension with the readings from [BigTreeTech belter tool](https://bttwiki.com/belter.html) in mm, formula from the xlsx on their [git](https://github.com/bigtreetech/Belter-belt-tension-Tool).
|
||||||
|
|
||||||
@@ -15,16 +41,6 @@ kill every wine process including processes hanging
|
|||||||
### webptogif.sh
|
### webptogif.sh
|
||||||
convert animated .webp at $1 (path) to a gif
|
convert animated .webp at $1 (path) to a gif
|
||||||
|
|
||||||
### get_matrix_access_token.sh
|
|
||||||
args:
|
|
||||||
- $1 username
|
|
||||||
- $2 password
|
|
||||||
- $3 subdomain (synapse.example.org)
|
|
||||||
returns a matrix access token
|
|
||||||
|
|
||||||
### create_matrix_account.sh
|
|
||||||
Usage: ./create_matrix_account.sh \<username> \<password> \<admin:true|false> \<matrix server domain> \<shared_secret> [displayname]
|
|
||||||
|
|
||||||
### convert_md_to_pdf.sh
|
### convert_md_to_pdf.sh
|
||||||
(need to be used with listings-setup.tex in the same folder, xelatex and pandoc are required)
|
(need to be used with listings-setup.tex in the same folder, xelatex and pandoc are required)
|
||||||
convert infile.md in the current folder to a pdf file (outfile.pdf) with code blocks in red boxes.
|
convert infile.md in the current folder to a pdf file (outfile.pdf) with code blocks in red boxes.
|
||||||
@@ -37,15 +53,3 @@ move all the files in $1 subdirectories to $1.
|
|||||||
script to backup firefox config directory and restore the latest backup
|
script to backup firefox config directory and restore the latest backup
|
||||||
adapt the hostnames and paths to what you need, not made to be easily configured with environment variables.
|
adapt the hostnames and paths to what you need, not made to be easily configured with environment variables.
|
||||||
**Careful**, firefox config folder includes all your profiles, including their cookies and localstorage (access tokens of your accounts can be there).
|
**Careful**, firefox config folder includes all your profiles, including their cookies and localstorage (access tokens of your accounts can be there).
|
||||||
|
|
||||||
|
|
||||||
## NetworkManager
|
|
||||||
NetworkManager related scripts.
|
|
||||||
These scripts need to be moved in /etc/NetworkManager/dispatcher.d/ and must be executable
|
|
||||||
|
|
||||||
### 90-nft-wg-sh
|
|
||||||
Automatically toggle DNS leak protection for wireguard connections with nftables.
|
|
||||||
Adds tcp/udp rules to block outgoing traffic to dns port (53) if the outgoing interface isn't the wireguard connection.
|
|
||||||
It assumes wireguard connection names start with "wg-"
|
|
||||||
|
|
||||||
You can check for DNS leaks with [this website](https://www.dnsleaktest.com/)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user