Skip to content

Instantly share code, notes, and snippets.

View rasoibam's full-sized avatar

Ra Soibam rasoibam

  • India
  • 10:49 (UTC +05:30)
View GitHub Profile
@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);	
@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"
@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"
)
package main
const MaxLength = 1 << 20
var (
addr = flag.String("listen", ":8000", "listen for requests")
numprocs = flag.Int("p", runtime.NumCPU(), "number of workers to start")
maxqueue = flag.Int("q", runtime.NumCPU()*2, "largest queue size")
jobs chan Job
@rasoibam
rasoibam / golang_job_queue.md
Created December 10, 2018 09:43 — forked from harlow/golang_job_queue.md
Job queues in Golang
@rasoibam
rasoibam / killadobe.sh
Created November 11, 2018 19:03 — forked from CyberPunkCodes/killadobe.sh
Mac Bash script to kill Adobe Create Cloud and other processes that Adobe forces on us.
#!/bin/bash
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n"
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
echo "\n\n--- Done! ---\n\n"
@rasoibam
rasoibam / webdev_online_resources.md
Created October 30, 2018 14:02 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@rasoibam
rasoibam / nginx.conf
Created October 10, 2018 12:01 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# Advanced config for NGINX
server_tokens off;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
@rasoibam
rasoibam / index.html
Created August 25, 2018 07:27 — forked from gaearon/index.html
Multiple React components on a single HTML page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@rasoibam
rasoibam / install-tmux
Created August 20, 2018 17:43 — forked from philipsd6/install-tmux
Install tmux 2.3 on rhel/centos 7
# Install tmux on rhel/centos 7
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -xvzf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local