Skip to content

Instantly share code, notes, and snippets.

View ajinkyakulkarni's full-sized avatar

Ajinkya Kulkarni ajinkyakulkarni

View GitHub Profile
@ajinkyakulkarni
ajinkyakulkarni / 0_reuse_code.js
Last active August 29, 2015 14:06
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
/*
* Added Remaining Quota Notifications
* Renamed a few menu options
* Forked from gist: 1838132 by ligthyear
*/
function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [ {name: "Start Mail Merge", functionName: "fnMailMerge"}];
ss.addMenu("Mail Merge", menuEntries);
@ajinkyakulkarni
ajinkyakulkarni / simple-vm.go
Created February 7, 2016 02:57 — forked from zeusdeux/simple-vm.go
Simple VM in Go
package main
import (
"fmt"
"log"
"strings"
)
// Ops
const (
@ajinkyakulkarni
ajinkyakulkarni / org-mode-reference-in.org
Created March 17, 2016 22:53 — forked from drj42/org-mode-reference-in.org
This is a cheat sheet for Emacs org-mode... in org-mode format!
@ajinkyakulkarni
ajinkyakulkarni / shared_folder_centos_virtualbox.txt
Created May 3, 2016 18:39 — forked from larsar/shared_folder_centos_virtualbox.txt
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum update
yum install gcc kernel-devel make
reboot
@ajinkyakulkarni
ajinkyakulkarni / Install Composer using MAMP's PHP.md
Created June 20, 2016 17:18 — forked from irazasyed/Install Composer using MAMP's PHP.md
Instructions on how to change preinstalled Mac OS X PHP to MAMP's PHP Installation and then install Composer Package Management

Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management


Instructions to Change PHP Installation


First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php

@ajinkyakulkarni
ajinkyakulkarni / batman.py
Created July 10, 2016 03:35 — forked from traeblain/batman.py
Batman Equation (Python)
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 16 09:30:30 2011
Python Batman Equation
@author: Trae Blain
"""
from __future__ import division
import matplotlib.pyplot as plt
@ajinkyakulkarni
ajinkyakulkarni / emacs-email-setup.md
Created November 21, 2016 17:39 — forked from areina/emacs-email-setup.md
Manage your email in emacs with mu4e

Manage your gmail account in emacs with mu4e

There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.

The stack:

  • emacs
  • offlineimap
  • mu
  • mu4e
@ajinkyakulkarni
ajinkyakulkarni / dlAttachments.py
Created November 26, 2016 03:16 — forked from baali/dlAttachments.py
Python script to download all gmail attachments.
# Something in lines of http://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail
# Make sure you have IMAP enabled in your gmail settings.
# Right now it won't download same file name twice even if their contents are different.
import email
import getpass, imaplib
import os
import sys
detach_dir = '.'
@ajinkyakulkarni
ajinkyakulkarni / memcached-status-page.md
Created January 27, 2017 00:45 — forked from jbraithwaite/memcached-status-page.md
Memcached Status page in PHP

Screenshot