Skip to content

Instantly share code, notes, and snippets.

View coolbrg's full-sized avatar

Budh Ram Gurung (BRG) coolbrg

View GitHub Profile
@coolbrg
coolbrg / monkey_patch.rb
Last active September 18, 2018 14:44
monkey patch
# Concept is called Monkey Patch
class Integer
def +(n)
self * n
end
end
# Now try 10 + 4
@coolbrg
coolbrg / integration-test.sh
Last active August 13, 2018 16:05
Integration test results for Andy commits
# Failed only two steps
Feature: registry-route add-on
registry-route add-on exposes the route for the OpenShift integrated registry,
so that user can able to push their container images directly to registry and deploy it.
The bash instance has been started and will be used for testing.
Scenario: As a user, I can enable the registry-route add-on # features/addon-registry-route.feature:6
Given user starts shell instance on host machine # testsuite.go:778 -> /testsuite.startHostShellInstance
When executing "minishift addons enable registry-route" succeeds # testsuite.go:613 -> /testsuite.ExecutingMinishiftCommandSucceedsOrFails
@coolbrg
coolbrg / gist:98bf63ad67ef48ba47f6483ba6cf1a9c
Created July 29, 2018 04:50 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@coolbrg
coolbrg / README.md
Created July 29, 2018 04:38 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@coolbrg
coolbrg / cut-cdk-3.5.0-alpha1.sh
Last active May 18, 2018 14:20
cdk 3.5.0-alpha.1 instructions
# Check all commit SHAs
$ git log -n 21 --oneline
a32dbe65 (HEAD -> master, ....) CDK-297 Add EAP CD imagestreams and templates
48a42c13 (origin/master, bgurung/cdk-294) CDK-294 Delete everything except oc and iso on --clear-cache
d4c54293 CDK-279 Update regex and validate ocp-tag from version list
50e3c696 CDK-271 Added setup-cdk integreation test
1d5db6a6 CDK-260 Pre setup-cdk tab completion
c1657afb (bgurung/master-resync) CDK-275 Fix openshift config patch for v3.9.0
b3eb4de4 CDK-108 Fix slashes in minishift setup-cdk
58b6c7cf CDK-253 Start syncing all integration test feature file
@coolbrg
coolbrg / oc_cluster_up_containers_no_trunc.sh
Last active April 13, 2018 08:37
oc cluster up containers (origin v3.10.0-alpha0
docker ps --no-trunc
CONTAINER ID IMAGE COMMAND
@coolbrg
coolbrg / oc_cluster_up_containers.sh
Last active April 13, 2018 08:27
oc cluster up (oc version 3.10.0-alpha)
CONTAINER ID IMAGE COMMAND STATUS NAMES
6853de606ddf docker.io/openshift/origin-docker-registry@sha256:541d8d9e1c3b1788ffbfcb0035a530b2b7318f81ab9e55620834519771db237e "/bin/sh -c '/usr/..." Up 35 minutes k8s_registry_docker-registry-1-bd7m6_default_5a8e7378-3eef-11e8-a122-8c16451dc6a2_0
1e3d6d08eda2 docker.io/openshift/origin-haproxy-router@sha256:6503143c1295275b0036cc92afab37e484e53be325e8cd9f3d2b6c21b1514bd1 "/usr/bin/openshif..." Up 35 minutes k8s_router_router-1-lhn2p_default_566e40e8-3eef-11e8-a122-8c16451dc6a2_0
83b55ecbceab openshift/origin-pod:v3.10 "/usr/bin/pod" Up 36 minutes k8s_POD_docker-registry-1-bd7m6_default_5a8e7378-3eef-11e8-a122-8c16451dc6a2_0
da47f9e74ed1 openshift/origin-pod:v3.10
package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"
@coolbrg
coolbrg / b2d_virtualbox.sh
Created March 27, 2018 15:58
Set IP address for B2d with virtualbox
[budhram@dhcp35-83:~ ] $ minishift start --vm-driver virtualbox
-- Starting profile 'minishift'
-- Checking if requested OpenShift version 'v3.7.2' is valid ... OK
-- Checking if requested OpenShift version 'v3.7.2' is supported ... OK
-- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK
-- Checking if VirtualBox is installed ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting local OpenShift cluster using 'virtualbox' hypervisor ...
-- Minishift VM will be configured with ...
@coolbrg
coolbrg / oc-get-logs.json
Created March 19, 2018 15:53
oc get all logs
{
"apiVersion": "v1",
"items": [
{
"apiVersion": "v1",
"kind": "BuildConfig",
"metadata": {
"annotations": {
"openshift.io/generated-by": "OpenShiftNewApp"
},