Skip to content

Instantly share code, notes, and snippets.

Abhi Yerra abhiyerra

Block or report user

Report or block abhiyerra

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 parkingspot-packer.json
"builders": [
"type": "amazon-ebs",
"region": "{{env `PARKINGSPOT_REGION }}",
"source_ami": "ami-fa82739a", // Have to do some logic to make sure that the AMI is correct. Also pass the -region flag to limit machines to a certain region.
"spot_price": "{{env `PARKINGSPOT_BID`}}",
"instance_type": "{{env `PARKINGSPOT_INSTANCE_TYPE`}}",
"vpc_id": "vpc-79f9021d",
"ssh_username": "ubuntu",
View .tmux.conf
# ` is an interesting key for a prefix
set-option -g prefix `
# set-option -g prefix C-a
set -sg escape-time 0
#unbind-key C-b
bind-key C-a last-window
bind-key ` last-window
bind-key a send-prefix
View experiment.js
var experiments = {
"YvvWWQlbSLSUqKvi6YD": [
function() {},
function() {
"CeK01Si7S_m_c7iYjyu9Nw": [
function() {},
function() {
View ParkingSpotCurl.json
"AZ": "us-west-2b",
"RecommendedBid": "0.023492497666109377",
"Mean": "0.02",
"Median": "0.02",
"StdDev": "0.0034924976661093749",
"SavingsPercent": "82.33646792021851",
"OnDemandPrice": "0.133",
"DataSet": "647"
View config.json
"Services": {
"landing_page.emails": {
"AWS": {
"AccessKey": "AWS-Access-Key",
"SecretKey": "AWS-Secret-Key",
"Region": "us-west-2"
"FunctionName": "arn:aws:lambda:us-west-2:1234:function:landing_page_emails-dev"
View github-to-org-state
# Need to convert this to Emacs Lisp. But this should show the issues.
curl -u "username:password" "" | jq '.[] | @text "\( - \(.title) \(.html_url)"' | sed -e 's/"//g'
View evernote_notes_avg_age.rb
# Get information about your notes
# create table notebooks (
# title varchar(255),
# num_notes int,
# avg_time int,
# created_at timestamp default now()
# );
View org_converter.rb
module Jekyll
# Convert org-mode files.
require 'org-ruby'
class OrgConverter < Converter
safe true
def setup
# No-op
abhiyerra / disjoint-kill.el
Created Nov 6, 2013
Kill and paste disjoint buffers
View disjoint-kill.el
(setq ay/disjoint-buffer '())
(defun ay/disjoint-kill ()
(add-to-list 'ay/disjoint-buffer
(delete-region (region-beginning)
View .mew.el
(add-to-list 'load-path "~/Dropbox/Mew")
(autoload 'mew "mew" nil t)
(autoload 'mew-send "mew" nil t)
;; Optional setup (Read Mail menu for Emacs 21):
(if (boundp 'read-mail-command)
(setq read-mail-command 'mew))
;; Optional setup (e.g. C-xm for sending a message):
(autoload 'mew-user-agent-compose "mew" nil t)
(if (boundp 'mail-user-agent)
You can’t perform that action at this time.