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 / powershell.go
Last active March 1, 2024 09:35
Playing PowerShell command via Golang
package main
import (
"bytes"
"fmt"
"os/exec"
"strings"
)
// PowerShell struct
@coolbrg
coolbrg / devices_screens.md
Created August 4, 2022 16:17
Devices Viewport Sizes
Device Viewport Size
iPhoneX 375x812
Galaxy Note 10 412x869
iPhone 8 Plus 414x736
Galaxy S9 Plus 412x740
iPhone SE 320x568
Pixel 3 XL 412x846
Galaxy S7 360x640
iPad Mini 768x1024
@coolbrg
coolbrg / 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>
@coolbrg
coolbrg / emojis.json
Created September 8, 2021 02:14 — forked from oliveratgithub/emojis.json
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": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "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": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "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": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "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": "&#128104;&zwj;&#128105;&z
@coolbrg
coolbrg / rails_setup.md
Created September 5, 2021 13:31 — forked from ryanflach/rails_setup.md
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)
@coolbrg
coolbrg / sfd-meet-1.md
Last active August 28, 2021 15:40
Software Freedom Day (SFD) Meeting First Notes
@coolbrg
coolbrg / html-css-challenge-5.md
Last active June 20, 2021 13:25
HTML & CSS Challenge #5 Resources

HTML & CSS Challenge 5 Resources

Use the following image urls and content for the challenge.

Hints

  • Tags: div, h1, a, img, br, h3
  • CSS Properties: position, top, transform, display, text-align, padding, color, font-size, background-color, height, width

NOTE: The above tags and properties are used by author to create the challenge. You can use anything to create your own version.

@coolbrg
coolbrg / sinatra-videos.md
Created December 31, 2020 09:54
Nice Videos on Sinatra
@coolbrg
coolbrg / gist:1d1a9b1c1148e666377acacf0a6cb5da
Last active December 3, 2020 14:03
first-web-page.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>First Web page created on Aug 6, 1991</title>
</head>
<body>
<h1>World Wide Web</h1>
<p>
@coolbrg
coolbrg / table.md
Created October 3, 2020 06:20
auto numbering in table
first second third
1. name foo
1. age 15