Skip to content

Instantly share code, notes, and snippets.

@dragosperca
dragosperca / trie.go
Created January 5, 2016 11:39
Trie in Go test
package main
import (
"fmt"
"github.com/MathieuTurcotte/go-trie/gtrie"
"log"
"os"
"strings"
"bufio"
"io"
@dragosperca
dragosperca / iptables.sh
Last active January 7, 2016 13:27 — forked from sandcastle/iptables.sh
Default firewall configuration using iptables for a fresh Ubuntu 14.04 server.
#!/bin/sh -x
# ==================================
# iptables default configuration script
#
# - this locks down our servers port access
# ==================================
# install fail2ban
sudo apt-get update
#!/usr/bin/env bash
# repository
yum -y remove ruby
yum -y update
yum -y install curl wget
cd /tmp/ && mkdir -p kit && cd kit