Skip to content

Instantly share code, notes, and snippets.

😢
Sad

Karuna Murti karuna

😢
Sad
Block or report user

Report or block karuna

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .gitlab-ci.yml
image: 'rust:latest'
stages:
- test
- doc
- build
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
APT_CACHE_DIR: $CI_PROJECT_DIR/apt
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 https://github.com/andrewkroh/gvm/releases/download/v0.0.5/gvm-linux-amd64
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
karuna / rocketguide.md
Created Mar 11, 2018 — forked from belst/rocketguide.md
Deploy Rocket in production
View rocketguide.md

Deploy Rocket using Letsencrypt and nginx

Information

This guide uses the domain your-domain.tld and its www. prefixed version. It starts the rocket application on 127.0.0.1:1337 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.

Prerequisites

You need to have nginx, certbot and rust installed.

@karuna
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
(https://github.com/erikras/redux-form/tree/master/examples/fieldArrays) 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
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, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
@karuna
karuna / pre-commit.sh
Created Sep 22, 2017
Pre commit hook for rails app. put this inside .git
View pre-commit.sh
#!/bin/sh
# 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.sh pre-commit
#
# to skip the tests, run with the --no-verify argument
# i.e. - $ 'git commit --no-verify'
FILES='(js|css|rb)'
@karuna
karuna / cloudSettings
Last active Sep 25, 2019
Visual Studio Settings Work
View cloudSettings
{"lastUpload":"2019-09-25T01:13:42.156Z","extensionVersion":"v3.4.3"}
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
HISTCONTROL=erasedups:ignorespace
You can’t perform that action at this time.