Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf
""" | |
# WSL ext4 drive mount utility | |
- Able to automatically mount `\\.\PHYSICALDRIVE{X}` to a desired path | |
- Mounted with normal user permissions (you don't need root) | |
## Setup | |
Create a `settings.json` next to the python script itself with the following: |
#!/usr/bin/python3 | |
""" | |
Copyright 2021 Mygod | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
#!/bin/sh | |
## Some notes: | |
## 1. This should be run as root! | |
## 2. This assumes that /etc/letsencrypt/cli.ini is sensibly specified. | |
## 3. /usr/local/sbin/le-sub.example.com-renewal.sh is a sensible place to put this. | |
## 4. A sensible crontab entry for this: 15 2 * * 1 /usr/local/sbin/le-sub.example.com-renewal.sh >> /var/log/le-sub.example.com-renewal.log | |
exp_limit=15; | |
le_path='/opt/letsencrypt'; |
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf
$ text-builder -index /path/to/index.txt
Or run $ sh build-all
to build all your index files.本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.
echo "this file isn't supposed to run" | |
exit 0 | |
# <------------------------------ Enviroment Variables -------------------------------> | |
FQDN = <Server DNS Name> # can also get from PTR record | |
ORG_NAME = <Org name> | |
RELEASE_NAME = $(lsb_release -sc) | |
# <------------------------------ Network Stack Setups -------------------------------> | |
# Please edit /etc/default/ufw first |
#!/bin/bash | |
# Default Variable Declarations | |
DEFAULT="Default.txt" | |
FILEEXT=".ovpn" | |
CRT=".crt" | |
KEY=".3des.key" | |
CA="ca.crt" | |
TA="ta.key" | |
route = 8.0.0.0/255.0.0.0 | |
route = 58.0.0.0/255.0.0.0 | |
route = 23.0.0.0/255.0.0.0 | |
route = 117.0.0.0/255.0.0.0 | |
route = 199.0.0.0/255.0.0.0 | |
route = 190.0.0.0/255.0.0.0 | |
route = 198.0.0.0/255.0.0.0 | |
route = 173.0.0.0/255.0.0.0 | |
route = 174.0.0.0/255.0.0.0 | |
route = 168.0.0.0/255.0.0.0 |
#+LATEX_CMD: xelatex | |
#+LATEX_HEADER: \setmainfont[Mapping=tex-text]{Gentium} | |
#+LATEX_HEADER: \setdefaultlanguage{german} |
#!/bin/sh | |
# Tunnel imap connection through your server | |
_server="your-server-here" | |
_port="your-server-port-here" | |
_username="your-server-login-name" | |
# tunnel gmail imap (imap.gmail.com:993) <-> (localhost:10993) | |
ssh -f -N -L localhost:10993:imap.gmail.com:993 -p ${_port} -l ${_username} ${_server} |