Skip to content

Instantly share code, notes, and snippets.

Badger Badger Badger

Karuna Murti karuna

Badger Badger Badger
View GitHub Profile
View .gitlab-ci.yml
image: 'rust:latest'
- test
- doc
- build
View docker-go-debugging.txt
"version": "0.2.0",
"debugServer": 4711,
"configurations": [
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceRoot}",
View gist:53560ea7b8fb0384c7271907556ac5bf
tap "caskformula/caskformula"
tap "caskroom/cask"
tap "caskroom/versions"
tap "homebrew/bundle"
tap "homebrew/completions"
tap "homebrew/core"
tap "homebrew/dupes"
tap "homebrew/nginx"
tap "homebrew/php"
tap "homebrew/services"
View gist:ecb224f491abb3bf70f6fd6f153b0449
# Linux Example (assumes ~/bin is in PATH).
curl -sL -o ~/bin/gvm
chmod +x ~/bin/gvm
eval "$(gvm 1.10)"
go version
function go_162 {
export GOROOT="/Users/fincep005/.gvm/versions/go1.6.2.darwin.amd64"
export PATH="$GOROOT/bin:$PATH"
karuna /
Created Mar 11, 2018 — forked from belst/
Deploy Rocket in production

Deploy Rocket using Letsencrypt and nginx


This guide uses the domain your-domain.tld and its www. prefixed version. It starts the rocket application on and as the user www-data. The proxy listens on port 80 and 443 though.
If you need other values, update them accordingly in your nginx and systemd configs.


You need to have nginx, certbot and rust installed.

karuna / FieldArraysForm.js
Created Feb 1, 2018 — forked from erikras/FieldArraysForm.js
Example showing how to use a formValueSelector on an individual array item
View FieldArraysForm.js
The following can replace the file in the Field Arrays example
( to demonstrate this functionality.
import React from 'react'
import { connect } from 'react-redux'
import { Field, FieldArray, reduxForm, formValueSelector } from 'redux-form'
import validate from './validate'
karuna / gotham
Last active Jan 8, 2018
Rails + Rocket Benchmark
View gotham
This is ApacheBench, Version 2.3 <$Revision: 1807734 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
karuna /
Created Sep 22, 2017
Pre commit hook for rails app. put this inside .git
# this hook is in SCM so that it can be shared
# to install it, create a symbolic link in the projects .git/hooks folder
# i.e. - from the .git/hooks directory, run
# $ ln -s ../../git-hooks/ pre-commit
# to skip the tests, run with the --no-verify argument
# i.e. - $ 'git commit --no-verify'
karuna / cloudSettings
Last active May 17, 2021
Visual Studio Settings Work
View cloudSettings
View bashr
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
#[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace