Skip to content

Instantly share code, notes, and snippets.


Satinder Grewal satindergrewal

View GitHub Profile
lukechilds /
Created Aug 9, 2016
Shell - Get latest release from GitHub
get_latest_release() {
curl --silent "$1/releases/latest" | # Get latest release from GitHub api
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value
# Usage
# $ get_latest_release "creationix/nvm"
# v0.31.4
ik5 / colors.go
Last active Nov 30, 2020
Simple golang expirement with ANSI colors
View colors.go
package main
// <- will not display the colors
import "fmt"
const (
InfoColor = "\033[1;34m%s\033[0m"
NoticeColor = "\033[1;36m%s\033[0m"
WarningColor = "\033[1;33m%s\033[0m"
ErrorColor = "\033[1;31m%s\033[0m"
DebugColor = "\033[0;36m%s\033[0m"

Dart VM FFI Vision


The aim of Dart FFI project (tracked as Issue #34452) is to provide a low boilerplate, low ceremony & low overhead way of interoperating with native C/C++ code.

The motivation behind this project is twofold:

svett / sshtunnel.go
Last active Oct 15, 2020
SSH tunnelling in Golang
View sshtunnel.go
package main
import (
denvazh /
Last active Aug 10, 2020
Scheduled update for homebrew

Scheduled updates for homebrew

This two launchdaemon scripts provide scheduled updates and upgrade for homebrew packages.

It will run in the following way:

  • brew update every day at 12:10
  • brew upgrade every day at 12:20

How to install

rklaehn /
Last active Jul 23, 2019
Publishing to ipfs/ipns by key
if [ "$#" -ne 3 ]; then
echo "usage:"
echo " <keyname> <dir> <host>"
echo " example: keyname output/rootdir"
exit 1
campadrenalin /
Created Jan 25, 2012
Getting started with Meshnet

Getting started with Meshnet

This document is for people who want to help but have no technical knowledge. It assumes you won't be getting involved in squabbles over which relay technology to use, etc.

Step 1: Set up CJDNS

One of the few things widely agreed upon at the time of this writing is the use of CJDNS. Currently Windows is not supported, but if you have Linux or can run Linux in a virtual machine, you can follow the step-by-step instructions lower on that page to install and start up an instance of CJDNS on your system. If you're using Ubuntu 11.10 (latest version), you can follow these simplified instructions.

One thing you should know is cjdns currently isn't a wireless meshnet. A physical meshnet consisting of nodes geographically close to each other is a long way off. Instead, cjdns offers a "mixnet"-like system. cjdns is routable over the current Internet, so this means right now its like a giant VPN (virtu

You can’t perform that action at this time.