Skip to content

Instantly share code, notes, and snippets.


Senthil Arivudainambi sent-hil

View GitHub Profile
mholt / macapp.go
Created May 18, 2018 04:09
Distribute your Go program (or any single binary) as a native macOS application
View macapp.go
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
// Example use:
UnquietCode / Lava Lamp
Created April 19, 2015 18:52
Lava Lamp Random Number Generator
View Lava Lamp

Lava Lamp Random Number Generator

(extracted from the now defunct SGI project at via the magical Internet Archive Wayback Machine)

Lava Lamps can be used as a source of randomness, which can be used to establish a random number generator. The output of the RNG can then be consumed by various computer applications.

Step 1: Establish a chaotic system

(Set up Lava Lite® lamps in a machine room.)

prakhar1989 /
Last active November 25, 2022 04:15 — forked from stijlist/gist:bb932fb93e22fe6260b2

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following:

jpillora / sshd.go
Last active February 27, 2023 08:53
Go SSH server complete example - Read more here
View sshd.go
// A small SSH daemon providing bash sessions
// Server:
// cd my/new/dir/
// #generate server keypair
// ssh-keygen -t rsa
// go get -v .
// go run sshd.go
// Client:
nocturnalgeek / MailinatorAliases
Last active January 20, 2023 09:57
A list of alternate domains that point to
View MailinatorAliases
kachayev /
Last active January 1, 2023 20:57
Channels Are Not Enough or Why Pipelining Is Not That Easy
debasishg / gist:8172796
Last active February 10, 2023 14:56
A collection of links for streaming algorithms and data structures
View gist:8172796
  1. General Background and Overview
olivierlacan /
Created June 1, 2013 03:04
Gary Bernhardt on Screencasting

I'm planning on either writing this up in detail or maybe doing a screencast about screencasting, but I'll give a short version here.

On sound quality:

This matters a lot. In decreasing order of importance:

  1. Remove echo. You have to hear this to understand. Set up a mic in front of your mouth and record a sentence. Then, put a thick comforter over you and the mic and say it again at the same distance. Listen to
drewolson / reflection.go
Last active December 6, 2022 08:17
Golang Reflection Example
View reflection.go
package main
import (
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
justinbmeyer /
Last active August 19, 2022 04:50
JS Memory

JavaScript Code

var str = "hi";

Memory allocation:

Address Value Description
...... ...