Skip to content

Instantly share code, notes, and snippets.

@rahulsoibam
rahulsoibam / 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);	
export GOPATH="${HOME}/Development/Go"

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

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

test -d "${GOPATH}" || mkdir "${GOPATH}"

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

@rahulsoibam
rahulsoibam / 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"
@rahulsoibam
rahulsoibam / 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
@rahulsoibam
rahulsoibam / golang_job_queue.md
Created December 10, 2018 09:43 — forked from harlow/golang_job_queue.md
Job queues in Golang

Source

Nmap Cheat Sheet and Pro Tips

Nmap has a multitude of options and when you first start playing with this excellent tool it can be a bit daunting. In this cheat sheet you will find a series of practical example commands for running Nmap and getting the most of this powerful tool.

Keep in mind that this cheat sheet merely touches the surface of the available options. The [Nmap Documentation portal][1] is your reference for digging deeper into the options available.

![][2]

Source

How To Use Nmap to Scan for Open Ports on your VPS

Introduction


Networking is an expansive and overwhelming topic for many budding system administrators. There are various layers, protocols, and interfaces, and many tools and utilities that must be mastered to understand them.

@rahulsoibam
rahulsoibam / 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"