Skip to content

Instantly share code, notes, and snippets.

@fwdIT
fwdIT / ufw.md
Created September 4, 2022 09:07 — forked from kimus/ufw.md
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@fwdIT
fwdIT / WireGuard_Setup.txt
Created September 4, 2022 07:14 — forked from chrisswanda/WireGuard_Setup.txt
Stupid simple setting up WireGuard - Server and multiple peers
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
@fwdIT
fwdIT / l2tpclient.sh
Created September 2, 2022 16:44 — forked from danielv99/l2tpclient.sh
L2TP VPN client on Linux Debian
# Requirements
# debian/ubuntu
apt-get -y update && apt-get -y upgrade
apt-get -y install strongswan xl2tpd libstrongswan-standard-plugins libstrongswan-extra-plugins
VPN_SERVER_IP=''
VPN_IPSEC_PSK='y'
VPN_USER=''
VPN_PASSWORD=''
S3_ACCESS_KEY_ID_GITLAB_BACKUP=<ACCESS_KEY>
S3_SECRET_ACCESS_KEY_GITLAB_BACKUP=<SECRET_KEY>
@fwdIT
fwdIT / postfix_mail_macosx.md
Created June 11, 2022 06:32 — forked from haccks/postfix_mail_macosx.md
Send mail from local host using postfix on MacOS High Sierra.

Setting up postfix on MacOS High Sierra

MacOS Sierra High comes with preinstalled postfix. Follow these steps to configure it on a local system:

1. Create a sasl_passwd file

sudo nano /etc/postfix/sasl_passwd
  • Add this to the file
@fwdIT
fwdIT / Repair synology BTRFS volume
Created October 30, 2021 07:44 — forked from bruvv/Repair synology BTRFS volume
Synology BTRFS repair
btrfs fi show -d
(/dev/mapper/vg1000-lv)
syno_poweroff_task -d
(or: umount /volume1)
(or2: umount /volume1 -f -k)
Check to see if all us unmounted:
df -h

Sometimes Mac's accessibility permissions becomes corrupted, and weird things start to happen.

For example, Steam applications will complain that accessibility permissions are required, even though they apparently are already granted.

To fix this, reset the accessibility permissions cache:

  1. Launch Terminal.app
  2. Enter tccutil reset Accessibility
  3. Quit Terminal
  4. Launch System Preferences
@fwdIT
fwdIT / README.md
Created August 1, 2021 14:26 — forked from triangletodd/README.md
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@fwdIT
fwdIT / meta-tags.md
Created July 27, 2021 11:02 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">