Skip to content

Instantly share code, notes, and snippets.

@simonlucalandi
simonlucalandi / rc.local
Created April 5, 2024 12:14 — forked from dunkelstern/rc.local
iptables rules for vpn config
# for ISAKMP (handling of security associations)
iptables -A INPUT -p udp --dport 500 --j ACCEPT
# for NAT-T (handling of IPsec between natted devices)
iptables -A INPUT -p udp --dport 4500 --j ACCEPT
# for ESP payload (the encrypted data packets)
iptables -A INPUT -p esp -j ACCEPT
# for the routing of packets on the server
iptables -t nat -A POSTROUTING -j SNAT --to-source %IP% -o eth0
# internet access
iptables -t nat -A POSTROUTING -s 10.0.42.0/24 -o eth0 -m policy --dir out --pol ipsec -j ACCEPT

How we incorporate next and cloudfront (2018-04-21)

Feel free to contact me at robert.balicki@gmail.com or tweet at me @statisticsftw

This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!

It assumes some knowledge of AWS.

Goals

@simonlucalandi
simonlucalandi / _README.md
Last active December 28, 2022 18:31 — forked from osdiab/_README.md
Deletes all your cached URLs in prerender

You can run this by doing the following:

  1. Log into https://prerender.io
  2. Open the developer console on the prerender site
  3. Copy the code in this gist and paste it into your console
  4. Hit enter!

Some notes:

  • This script takes a while, Prerender is not very performant! So if you have a lot of cached URLs, be patient.

Keybase proof

I hereby claim:

  • I am simonlucalandi on github.
  • I am sll (https://keybase.io/sll) on keybase.
  • I have a public key ASDJ8crYykTMlbE7oqAZuyV0ZDy8J_LYsLOiZq7rUZujhgo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am sll on github.
* I am sll (https://keybase.io/sll) on keybase.
* I have a public key ASDJ8crYykTMlbE7oqAZuyV0ZDy8J_LYsLOiZq7rUZujhgo
To claim this, I am signing this object: