Skip to content

Instantly share code, notes, and snippets.

View coolbrg's full-sized avatar

Budh Ram Gurung (BRG) coolbrg

View GitHub Profile
@meson10
meson10 / concurrency.go
Created December 14, 2014 15:15
Concurrency in golang
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"sync"
)

This is a note on storing encrypted data in Rails

@coolbrg
coolbrg / irc.md
Created February 29, 2016 06:02 — forked from xero/irc.md
irc cheat sheet

#IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

##The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
    • Leaves the specified channel.
@LalatenduMohanty
LalatenduMohanty / Creating-a-proxy-test-environment-for-ADB-and-CDK
Last active October 13, 2016 12:20
Creating a proxy test environment for ADB/CDK
#Run as root or add sudo at the beginning of each command
iptables -F
# Allow loopback
iptables -I INPUT 1 -i lo -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
@gbraad
gbraad / README.md
Last active August 30, 2017 06:52
Setup development environment for Minishift on Windows

Setup development environment for Minishift on Windows

Run powershell or CMD as Administator and start:

> powershell -ExecutionPolicy unrestricted

This starts a new instance of powershell which allowss execution of scripts that are downloaded without a signature.

@gbraad
gbraad / README.md
Last active April 9, 2018 15:02
Using machine with minikube, Minishift, and CDK

Using machine with minikube, Minishift, and CDK

Start minikube

mkdir -p ~/.docker/machine/machines/minikube
ln -s ~/.minikube/certs/ca.pem ~/.docker/machine/machines/minikube/ca.pem
ln -s ~/.minikube/certs/cert.pem ~/.docker/machine/machines/minikube/cert.pem
ln -s ~/.minikube/certs/key.pem ~/.docker/machine/machines/minikube/key.pem
ln -s ~/.minikube/machines/myminikube/config.json ~/.docker/machine/machines/minikube/config.json
@gbraad
gbraad / README.md
Created April 12, 2018 12:59
Minishift Team Goals

Minishift Goals

Big Hairy Audacious Goal (BHAG) aimed toward CDK

To provide the best and easiest platform for container-based development using RHEL as the basis providing best of the breed tools to create containers, eg. S2I, Buildah, to run on OpenShift

#!/bin/bash -x
## Setup http://labs.play-with-k8s.com/ env ala' jjo
# YEAH I TRUST RUNNING STUFF DIRECTLY AS ROOT way ->
#
# bash -x <( curl -L bit.do/jjo-pwk-sh )
#
# https://gist.github.com/jjo/78f60702fbfa1cbec7dd865f67a3728a/edit
# http://bit.do/admin/edit/jjo-pwk-sh
#
@jonhoo
jonhoo / README.md
Last active July 19, 2021 10:49
Distributed RWMutex in Go
@jonforums
jonforums / download.rb
Created March 26, 2012 01:15
Ruby HTTP/HTTPS/FTP file downloader
#!/usr/bin/env ruby
# An HTTP/HTTPS/FTP file downloader library/CLI based upon MiniPortile's
# HTTP implementation.
#
# Author: Jon Maken
# License: 3-clause BSD
# Revision: 2012-03-25 23:01:19 -0600
require 'net/http'
require 'net/https' if RUBY_VERSION < '1.9'