Skip to content

Instantly share code, notes, and snippets.

View ms2008's full-sized avatar
🏠
Working from home

Yufu Zhao ms2008

🏠
Working from home
View GitHub Profile
@ms2008
ms2008 / producer.go
Created April 9, 2021 10:28
rabbitmq producer
package rabbitmq
import (
"log"
"time"
"github.com/pborman/uuid"
"github.com/streadway/amqp"
)
@ms2008
ms2008 / firewall.sh
Created December 10, 2013 09:34 — 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