Skip to content

Instantly share code, notes, and snippets.

View bijayrungta's full-sized avatar

Bijay Rungta bijayrungta

View GitHub Profile
@bijayrungta
bijayrungta / idea.vmoptions
Created May 1, 2018 06:15
idea.vmoptions Custom VM options optimized for Development with IntelliJ IDEA IDE.
# http://www.dggodfrey.com/blog/2014/11/06/fix-slow-intellij-idea/
# https://github.com/adben/config/blob/master/idea.vmoptions
# http://hamletdarcy.blogspot.in/2008/02/10-tips-to-increase-intellij-idea.html
# https://zeroturnaround.com/free/optimizer-for-intellij-idea/
-ea
-server
-Xms1G
-Xmx2048m
-Xss2m
{
"aps": {
"alert": "Tops at FLAT 25% off! No min cart. Use code TOPS25. Only till 1 pm.",
"sound ": "default",
"pushType": "productlist",
"categoryid": "245",
"categoryname": "Tops",
"parentid": "2",
"filter": {
"OrderBy": "position"
@bijayrungta
bijayrungta / osx_setup.md
Created October 24, 2016 07:50 — forked from mcls/osx_setup.md
Setup mac for ruby dev
{
"events": [
{
"device_id": "d67b6e4942940e21",
"event": "click",
"ip": "27.5.115.5",
"login_status": "N",
"os_name": "android23",
"url": "jabong://in/c/men/shoes/discount-more-than-39/?cmpgp=menfootwear-eoss16"
},
{
"events": [
{
"customer_id": "1605910",
"event": "identify",
"device_type": "ios",
"device_tokens": "5641494ea49fd47079ddc3c6f6a00da7",
"device_id": "5641494ea49fd47079ddc3c6f6a00da7",
"device_idfa": "5641494ea49fd47079ddc3c6f6a00da7",
"device_idfv": "5641494ea49fd47079ddc3c6f6a00da7",
package main
import "fmt"
import "strconv"
import "time"
const (
JADE_TS = "2006-01-02 15:04:05.000Z07:00"
JRFC3339 = "2006-01-02T15:04:05Z07:00"
)
@bijayrungta
bijayrungta / add-key.sh
Last active April 4, 2016 09:50
Add Key of a Github User into ~/.ssh/authorised_keys
#!/bin/bash
userDir=bijay
githubUser=bijayrungta
homeDir=/home/${userDir}
mkdir -p ${homeDir}/.ssh
if [ f ${homeDir}/.ssh/authorized_keys ]; then
echo "User ${userDir} exists with an 'authorized_keys' file"
else
wget https://github.com/${githubUser}.keys -O /tmp/${githubUser}.keys;
@bijayrungta
bijayrungta / jiraRefreshTickets.js
Created December 30, 2015 20:05 — forked from rtrcolin/jiraRefreshTickets.js
Super simple Google Docs integration with Jira Issues/Tickets
// URL for Jira's REST API for issues
var getIssueURL = "https://[Your Jira host]/rest/api/2/issue/";
// Personally I prefer the script to handle request failures, hence muteHTTPExceptions = true
var fetchArgs = {
contentType: "application/json",
headers: {"Authorization":"Basic [Your BASE64 Encoded user:pass]"},
muteHttpExceptions : true
};
@bijayrungta
bijayrungta / bjMigrateMac.sh
Created June 2, 2015 10:23
Migrate to a new Mac
function bjMigrateMac()
{
# http://lowendmac.com/2009/step-by-step-guide-to-manual-mac-system-migration/#nowork
host="$1"
if [ ! "${host}" ]; then
host="mac13"
fi
declare -a aHomeFilesToSync=(
@bijayrungta
bijayrungta / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console