Skip to content

Instantly share code, notes, and snippets.

View rasoibam's full-sized avatar

Ra Soibam rasoibam

  • India
  • 11:44 (UTC +05:30)
View GitHub Profile
@rasoibam
rasoibam / nullHandle_extends.go
Created January 24, 2019 12:32 — forked from rsudip90/nullHandle_extends.go
database rows null handling in go by extending types
package main
import (
"database/sql"
"encoding/json"
"fmt"
"time"
"github.com/go-sql-driver/mysql"
)
@rasoibam
rasoibam / main.go
Created January 25, 2019 15:25 — forked from alexedwards/main.go
Password hashing and verification with Argon2id
package main
import (
"crypto/rand"
"crypto/subtle"
"encoding/base64"
"errors"
"fmt"
"log"
"strings"

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

export GOPATH="${HOME}/Development/Go"

export GOROOT="$(brew --prefix golang)/libexec"

export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"

test -d "${GOPATH}" || mkdir "${GOPATH}"
@rasoibam
rasoibam / day-night.md
Created June 8, 2020 14:24 — forked from thesved/day-night.md
Roam Research day-night css

core

/* IMPORT CORE THEME */
@import url('https://azlen.github.io/roam-themes/core.css');

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=family=Source+Sans+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap');	

canvas[data-id="layer2-node"] {	
    filter: invert(1) hue-rotate(110deg) saturate(2.5);