Skip to content

Instantly share code, notes, and snippets.

BRG coolbrg

Block or report user

Report or block coolbrg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@coolbrg
coolbrg / railsgirlsktm-notes.md
Last active Jul 26, 2019
Rails Girls App Dry Run
View railsgirlsktm-notes.md
  1. Create Idea Scaffold and run server

    rails generate scaffold idea name:string description:text picture:string
    rails db:migrate
    rails server
    
  2. Add Bootstrap 4 CSS & JS

    <!-- CSS -->
    
@coolbrg
coolbrg / eh-hack-projects.md
Last active Jul 24, 2019
Everest Hack Project Details post Ghumfir
View eh-hack-projects.md

GHUMFIR


Elevator Pitch: Click your trip

The problem it solves: Our website is focussed for wanderers willing to take up an adventure and explore new places. It provides a platform to connect with like minds and form an active travel community and share experiences. One can add their desired trips and others can voluntarily join in different trips of their choce and enjoy their travel. One can also add their home stays located at their local areas so that travellers find it easy to access lodging, and also learn about the locality they are travelling.

Team name: Team Stack

@coolbrg
coolbrg / essential-vscode-extensions.md
Created Jul 15, 2019
Essential VSCode Extensions for Web Development
View essential-vscode-extensions.md
  1. Debugger for chrome https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome

Chrome has features built in that make debugging a much better experience. This extension gives you all (or close to all) of those debugging features right inside of VS Code!

  1. Auto Rename Tag https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag

Need to rename an element in HTML? Well, with Auto Rename Tag, you just need to rename either the opening or closing tag, and the other will be renamed automatically. Simple, but effective!

@coolbrg
coolbrg / social-icon-colors.css
Last active Sep 1, 2019
Social Icon Color Code
View social-icon-colors.css
.fa-twitter-square {
color: #38A1F3;
}
.fa-facebook-square {
color: #4267b2;
}
.fa-github-square {
color: #333;
}
.fa-linkedin {
@coolbrg
coolbrg / iterm2.md
Created Jun 4, 2019 — forked from squarism/iterm2.md
iterm2 cheatsheet
View iterm2.md

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)
@coolbrg
coolbrg / full-stack-internship.md
Last active Apr 16, 2019
Internship - Full Stack Developer (4 Openings)
View full-stack-internship.md

Internship as Full Stack Developer in Averon Media Pvt Ltd

About Averon Media

Averon Media Pvt Ltd is a company specialized in Web Design & Developement and Digital Marketing in Pune, Maharashtra. It's target is to become the India's #1 Web Development company in coming years. More details can be found in company website here.

About the Internship

Selected intern's day-to-day responsibilities include:

@coolbrg
coolbrg / powershell.go
Last active Nov 19, 2018
Playing PowerShell command via Golang
View powershell.go
package main
import (
"bytes"
"fmt"
"os/exec"
"strings"
)
// PowerShell struct
@coolbrg
coolbrg / heroku_pg_db_reset.md
Created Sep 26, 2018 — forked from zulhfreelancer/heroku_pg_db_reset.md
How to reset PG Database on Heroku?
View heroku_pg_db_reset.md

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner

heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate

View monkey_patch.rb
# Concept is called Monkey Patch
class Integer
def +(n)
self * n
end
end
# Now try 10 + 4
@coolbrg
coolbrg / integration-test.sh
Last active Aug 13, 2018
Integration test results for Andy commits
View integration-test.sh
# 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
You can’t perform that action at this time.