Skip to content

Instantly share code, notes, and snippets.

View senthilnayagam's full-sized avatar

Senthil Nayagam senthilnayagam

View GitHub Profile
# my list had word number and word on a single line, first script splits the huge sentence by numbers into words in each line
cat 8word_list.txt | tr [:digit:] '\n' | sort | uniq | wc -l
29722
# this refines to identify words with 2 letters repeated
cat 8word_list.txt | tr [:digit:] '\n' | sort | uniq | grep '\([[:alnum:]]\)\1' | wc -l
6784
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
@senthilnayagam
senthilnayagam / gist:6474187
Last active December 22, 2015 12:39
updated code
package main
import (
"net"
"os"
)
const (
RECV_BUF_LEN = 1024
)
@senthilnayagam
senthilnayagam / Dockerfile
Last active December 21, 2015 08:49 — forked from indygreg/Dockerfile
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Create a build and development environment for Firefox.
FROM ubuntu:12.10
MAINTAINER Gregory Szorc "gps@mozilla.com"
RUN apt-get update