Skip to content

Instantly share code, notes, and snippets.

@mDibyo
mDibyo / queue
Last active March 28, 2016 03:51
A simple thread-safe implementation of a FIFO queue backed by a linked-list.
package queue
import (
"container/list"
"sync"
)
// Queue is a thread-safe FIFO queue implemented on top of a linked list.
type Queue struct {
list list.List
@mDibyo
mDibyo / execute.sh
Created June 22, 2014 05:45
Custom custom Ubuntu image for distribution on Google Compute Engine
#!/bin/bash
# Install required tools
sudo aptitude install squashfs-tools genisoimage