Skip to content

Instantly share code, notes, and snippets.

@iBaozi
iBaozi / firewall.sh
Created December 10, 2013 01:03 — forked from x1a0/firewall.sh
#! /bin/bash
# Set the default policies to allow everything while we set up new rules.
# Prevents cutting yourself off when running from remote SSH.
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
# Flush any existing rules, leaving just the defaults
iptables -F
@iBaozi
iBaozi / gist:45e9f3a3e4487104a4b83c25e1eb853f
Created December 11, 2017 09:24 — forked from mattetti/gist:3798173
async fetching of urls using goroutines and channels
package main
import (
"fmt"
"net/http"
"time"
)
var urls = []string{
"http://pulsoconf.co/",