Skip to content

Instantly share code, notes, and snippets.

View coolbrg's full-sized avatar

Budh Ram Gurung (BRG) coolbrg

View GitHub Profile
@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

@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
@oliveratgithub
oliveratgithub / emojis.json
Last active April 19, 2024 05:47
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z
#!/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
#
@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.

@ryanflach
ryanflach / rails_setup.md
Last active November 13, 2023 19:49
Common setup for a new Rails project
  1. rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
  • -d postgresql sets up the project to use PostgreSQL
  • --skip-turbolinks & --skip-spring creates a project that does not use turbolinks or spring
  • -T skips the creation of the test directory and use of Test::Unit
  1. In the Gemfile:
  • Available to all environments:
    • gem 'figaro' - store environment variables securely across your app (docs)
    • Uncomment gem 'bcrypt', '~> 3.1.7' if you will be hosting your own user accounts with passwords (docs)
  • Inside of group :test:
    • gem 'rspec-rails' - user rspec in place of minitest (docs)
@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
@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.
@squarism
squarism / iterm2.md
Last active April 23, 2024 11:45
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"