Skip to content

Instantly share code, notes, and snippets.

View projects.txt
github.com/18F/identity-idp
github.com/1N3/Sn1per
@naveensrinivasan
naveensrinivasan / environmentasmap.go
Created Jun 23, 2013
Here is a code to get the environment variables as a map in go instead of slice.
View environmentasmap.go
package main
import (
"fmt"
"os"
"strings"
)
func main() {
getenvironment := func(data []string, getkeyval func(item string) (key, val string)) map[string]string {
@naveensrinivasan
naveensrinivasan / generatepdb
Created May 20, 2015
Generate PDB's from the assembly using NGEN
View generatepdb
C:\windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe createpdb "C:\windows\assembly\NativeImages_v4.0.30319_32\System.Security\16f61697a0
61d2fc1afd3f3073089be8\System.Security.ni.dll" "C:\temp"
View cVimrc
" hi there!
let mapleader = ","
map W :tabdetach<CR>
map A :tabattach<Space>
map U lastClosedTab
map O :history<Space>
map yt :duplicate<CR>
map <C-s> openSearchBar
map <C-r> openSearchBarReverse
@naveensrinivasan
naveensrinivasan / cVim-alfred.css
Created Jun 4, 2019 — forked from franklinjavier/cVim-alfred.css
cVim theme inspired by Yosemite Spotlight
View cVim-alfred.css
#cVim-link-container, .cVim-link-hint, #cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, .cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, .cVim-completion-item .cVim-right, #cVim-hud, #cVim-status-bar {
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, Arial;
font-size: 9pt !important;
-webkit-font-smoothing: antialiased !important;
border-radius: 4px!important;
}
#cVim-link-container {
position: absolute;
pointer-events: none;
View splitter.sol
pragma solidity ^0.4.23;
contract Splitter {
address sender;
address public receiver1;
address public receiver2;
event AmountTransferred(address owner, uint amount);
constructor(address _sender,address _receiver1, address _receiver2) public{
View dns.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 14 columns, instead of 6. in line 3.
Name,"Full name","Description","Location","Coordinates",URL,Version,DNSSEC validation,No logs,Namecoin,Resolver address,Provider name,Provider public key,Provider public key TXT record
adguard-dns-family,"AdGuard DNS Family Protection","Adguard DNS with safesearch and adult content blocking","Anycast","",https://adguard.com/en/adguard-dns/overview.html,1,no,yes,no,176.103.130.132:5443,2.dnscrypt.family.ns1.adguard.com,B831:5DD7:B14B:6EE3:20A4:70DC:2ED6:B1AA:398C:C9E5:86F8:5D45:45D6:B8C9:B500:5ABA,pk.family.ns1.adguard.com
adguard-dns,"AdGuard DNS","Remove ads and protect your computer from malware","Anycast","",https://adguard.com/en/adguard-dns/overview.html,1,no,yes,no,176.103.130.130:5443,2.dnscrypt.default.ns1.adguard.com,D12B:47F2:52DC:F2C2:BBF8:9910:86EA:F79C:E449:5D8B:16C8:A0C4:322E:52CA:3F39:0873,pk.default.ns1.adguard.com
adguard-dns-family-ipv6,"AdGuard DNS Family Protection (IPv6)","Adguard DNS with safesearch and adult content blocking","Anycast","",https://adguard.com/en/adguard-dns/overview.html
View minikube.md

Setting up minikube for development

Minikube lets you simulate a cluster using virtualbox locally. It can be used to test and debug locally instead of the cloud.

Prerequisites

These prerequisites that are required to run minikube are

  • Docker
  • kubectl
  • virtualbox
@naveensrinivasan
naveensrinivasan / gh-dl-release
Created May 1, 2017 — forked from maxim/gh-dl-release
Download assets from private Github releases
View gh-dl-release
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@naveensrinivasan
naveensrinivasan / golang_on_rpi.md
Last active Apr 28, 2017 — forked from konradko/golang_on_rpi.md
Install Golang 1.7 on Raspberry Pi
View golang_on_rpi.md
cd ~
wget https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.8.linux-armv6l.tar.gz
export PATH=/usr/local/go/bin:$PATH
rm go1.8.linux-armv6l.tar.gz