Skip to content

Instantly share code, notes, and snippets.

View ringular's full-sized avatar

Ritesh Angural ringular

View GitHub Profile
@ringular
ringular / cabot_recover.js
Created June 13, 2014 06:42
Test recovery for cabot
consol.log('hello world');
@ringular
ringular / merchant.json
Last active August 29, 2015 14:06
merchant
{
"id": 12345,
"name": "International Beer Company",
"status": 1, // Incomplete, Approved, Disabled, Rejected
"images": {
"banner": {
"url": "....",
"w": 600,
"h": 200
},
@ringular
ringular / mobile_app_redirect.js
Created December 16, 2013 06:08
Mobile app protocol redirect
var url;
var app_protocol = "YOUR_APP_PROTOCOL_HERE:/"
var app_path = window.location.pathname
if (/Android/i.test(navigator.userAgent)) {
url = "ANDROID_APP_URL";
}
if (/iPhone/i.test(navigator.userAgent)) {
url = "IPHONE_APP_URL";
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ringular
ringular / .chef_profile
Created January 23, 2014 09:16
bash aliases for knife
# BOOTSTRAP COMMANDS
alias kb="knife bootstrap"
# alias k="knife bootstrap windows ssh FQDN
# alias k="knife bootstrap windows winrm FQDN
# CLIENT COMMANDS
alias kbdc="knife client bulk delete"
alias kcc="knife client create --editor /usr/bin/sublime"
alias kdc="knife client delete"
alias kec="knife client edit"
@ringular
ringular / .slate
Created July 28, 2022 09:01
Slate Config
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Resize Bindings
bind right:ctrl resize +5% +0
bind left:ctrl resize -5% +0