Skip to content

Instantly share code, notes, and snippets.

View brgnepal's full-sized avatar

Budh Ram Gurung (BRG) brgnepal

View GitHub Profile
@brgnepal
brgnepal / adb_openshift.sh
Created August 1, 2016 11:07
vagrant init projectatomic/adb -> vagrant up -> vagrant service-manager start openshift
[vagrant@centos7-adb ~]$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/openshift/origin-sti-builder latest e3bfb30fa8d1 5 weeks ago 425.8 MB
docker.io/openshift/origin-deployer latest 77e40fdef408 5 weeks ago 425.8 MB
docker.io/openshift/origin-docker-registry latest 099b4288fd91 5 weeks ago 337.1 MB
docker.io/openshift/origin-haproxy-router latest cffa9ad573ec 5 weeks ago 445 MB
docker.io/openshift/origin latest fa7bd2e9e7e1 5 weeks ago 425.8 MB
docker.io/openshift/origin-deployer v1.3.0-alpha.2 112b6b61d786 5 weeks ago 415 MB
docker.io/openshift/origin-pod v1.3.0-alpha.2 50762cad5302 5 weeks ago 1.59 MB
@brgnepal
brgnepal / kvm_cheatsheet.sh
Created July 30, 2016 08:16 — forked from mayurah/kvm_cheatsheet.sh
KVM / QEMU Cheatsheet
# List System(s)
virsh -c qemu:///system list
virsh list # List running
virsh list --all # List all
# Open guest VM console
virsh console <instance>
# Control specific instance
virsh start <instance>
@brgnepal
brgnepal / win_error1.sh
Created July 1, 2016 04:38
Windows Error: Unable to install vagrant service manager plugin locally
$ vagrant plugin install ./vagrant-service-manager-1.1.1.gem
Installing the './vagrant-service-manager-1.1.1.gem' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
Could not find gem 'vagrant-service-manager (= 1.1.1) x86-mingw32' in any of the gem sources listed in your Gemfile
or available on this machine.
@brgnepal
brgnepal / adb_release_test_guide.md
Last active June 9, 2016 10:02
ADB Release Test Guide for Beginner

ADB Release Test Guide for Beginner

Openshift:

  • Get Vagrantfile from here
  • vagrant up and vagrant ssh
  • Fire command oc new-app nodejs-example
  • Expect:
    • --> Success message at the end of command output.

Kubernetes:

@brgnepal
brgnepal / 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.
@brgnepal
brgnepal / error.sh
Last active February 27, 2016 12:34
$ jekyll serve --watch
Configuration file: /home/budhram/_work/blogging/budhrg.github.io/_config.yml
Deprecation: Please change 'use_coderay' to 'enable_coderay' in your configuration file.
Deprecation: You appear to have pagination turned on, but you haven't included the `jekyll-paginate` gem. Ensure you have `gems: [jekyll-paginate]` in your configuration file.
Source: /home/budhram/_work/blogging/budhrg.github.io
Destination: /home/budhram/_work/blogging/budhrg.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
Dependency Error: Yikes! It looks like you don't have pygments or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- pygments' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
Liquid Exception: pygments in /home/budhram/_work/blogging/budhrg.github.io/_posts/
require 'gmail'
require 'nokogiri'
# ... ur usual code
doc = Nokogiri::HTML::Document.parse(version_change_email.body.to_s)
puts doc.text
@brgnepal
brgnepal / question-format.yml
Created October 29, 2015 09:28
Test questions format
q1:
title: "this is title"
steps:
- aaa
- bbb
- ccc
@brgnepal
brgnepal / gist:fc15d00524603b9959f0
Created May 29, 2015 08:24
Split div into three equal parts: snippet 3
.splitter_panel .vsplitter {
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 6px !important;
background-color: gray;
cursor: ew-resize;
line-height: 15px;
font-size: 14px;