This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `curl https://www.cloudflare.com/ips-v4`; do sudo ufw allow from "$i" proto tcp to any port 80; done | |
for i in `curl https://www.cloudflare.com/ips-v4`; do sudo ufw allow from "$i" proto tcp to any port 443; done | |
for i in `curl https://www.cloudflare.com/ips-v6`; do sudo ufw allow from "$i" proto tcp to any port 80; done | |
for i in `curl https://www.cloudflare.com/ips-v6`; do sudo ufw allow from "$i" proto tcp to any port 443; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
Object.defineProperty(exports, '__esModule', {value: true}); | |
var tsInvariant = require('ts-invariant'); | |
var process$1 = require('@oznakn/ts-invariant-process'); | |
var graphql = require('graphql'); | |
function maybe(thunk) { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sysctl -w net.core.netdev_max_backlog="150000" | |
sysctl -w net.core.rmem_max="16777216" | |
sysctl -w net.core.somaxconn="65535" | |
sysctl -w net.core.wmem_max="16777216" | |
sysctl -w net.ipv4.ip_local_port_range="1025 65535" | |
sysctl -w net.ipv4.tcp_fin_timeout="20" | |
sysctl -w net.ipv4.tcp_keepalive_time="30" | |
sysctl -w net.ipv4.tcp_max_syn_backlog="20480" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
already_did=$(sudo mount | grep "$1" | wc -l) | |
if [[ "$already_did" == 0 ]]; then | |
blkid_output=$(sudo blkid) | |
result=$(echo "$blkid_output" | grep "$1" | grep -Po ' UUID="(.*?)"' | awk '{print substr($1, 7, length($1) - 7)}') |