Skip to content

Instantly share code, notes, and snippets.

Avatar

Senthil Arivudainambi sent-hil

View GitHub Profile
@mholt
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:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// 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
UnquietCode / Lava Lamp RNG.md
Created April 19, 2015 18:52
Lava Lamp Random Number Generator
View Lava Lamp RNG.md

Lava Lamp Random Number Generator

(extracted from the now defunct SGI project at http://lavarand.sgi.com/cgi-bin/how.cgi 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
prakhar1989 / richhickey.md
Last active November 25, 2022 04:15 — forked from stijlist/gist:bb932fb93e22fe6260b2
richhickey.md
View richhickey.md

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
jpillora / sshd.go
Last active February 27, 2023 08:53
Go SSH server complete example - Read more here https://blog.gopheracademy.com/go-and-ssh/
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
nocturnalgeek / MailinatorAliases
Last active January 20, 2023 09:57
A list of alternate domains that point to @mailinator.com
View MailinatorAliases
@binkmail.com
@bobmail.info
@chammy.info
@devnullmail.com
@letthemeatspam.com
@mailinater.com
@mailinator.net
@mailinator2.com
@notmailinator.com
@reallymymail.com
@kachayev
kachayev / concurrency-in-go.md
Last active January 1, 2023 20:57
Channels Are Not Enough or Why Pipelining Is Not That Easy
View concurrency-in-go.md
@debasishg
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
olivierlacan / gary_bernhardt_screencasting_parley.md
Created June 1, 2013 03:04
Gary Bernhardt on Screencasting
View gary_bernhardt_screencasting_parley.md

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
drewolson / reflection.go
Last active December 6, 2022 08:17
Golang Reflection Example
View reflection.go
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
@justinbmeyer
justinbmeyer / jsmem.md
Last active August 19, 2022 04:50
JS Memory
View jsmem.md

JavaScript Code

var str = "hi";

Memory allocation:

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