Skip to content

Instantly share code, notes, and snippets.


Abhilash Raj maxking

View GitHub Profile
# To run this script first install the 'gitpython' package from pip.
# $ pip install gitpython
# Usage:
# python repo_path filename regex
import os
import sys
import subprocess
View alert.js
window.addEventListener("load", function() { alert("hello!");});
maxking / grub.cfg
Last active Jul 6, 2016
Grub.cfg to load ikgt module in grub.
View grub.cfg
# CoreOS grub oem config to add coreos-ikgt support to the grub config of the OS.
# The ikgt_pkg.bin shoudl already be inside /boot/coreos and this file should be
# placed inside /dev/sda6 which is by default mounted at /usr/share/oem/ in coreos
# production build.
# **Note**:
# Please read the comments in the file below before using the configuration. It might
# cause temporarily to wreck your system otherwise.
set default='coreos-ikgt'
maxking /
Last active Apr 17, 2016
Download files of a particular type from a webpage.
#! /usr/bin/env python3
Author: Abhilash Raj <>
This script is used to download all the files of a particular type linked on a
web page. This probably can be accomplished easily by some other tools as well,
but I wrote this to download some assignments of my own.
Usage: python -p <address_of_web_page> -f <filtype>
maxking / server.c
Last active Mar 17, 2016
simple echo server demonstration
View server.c
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
void dostuff(int);
void error(char *msg)
maxking /
Created Dec 26, 2015 — forked from areina/
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

##Introduction To consider the problem of signing and email-encryption using pgp/smime we must consider a few things first:

  • What is the main purpose to sign/encrypt the email messages on a list?
  • How are we going to implement this feature? Which kind of digital signature, which standards, which kind of encryption will be used for this purpose?
  • What possibly could go wrong with the system? What problems may arise as a result of this feature for the list managers/users?

I will try to answer these questions in best possible way in my proposal.

##Need for such feature?

maxking / gist:2341564
Created Apr 9, 2012
Apache conf for django
View gist:2341564
#apache conf
SGIScriptAlias / /home/abhilash/Documents/django/wiki/apache/django.wsgi
WSGIPythonPath /home/abhilash/Documents/django/wiki
<Directory /home/abhilash/Documents/django/wiki >
Order deny,allow
Allow from all
Options +ExecCGI
maxking / email
Created Jan 7, 2012
coe of an HTML email
View email
<font size=3D"4"><span style=3D"background-color:rgb(255,153,102);font-fami=
ly:comic sans ms,sans-serif">Another Day<img style=3D"margin:0pt 0.2ex;vert=
ical-align:middle" src=3D"e/000" height=3D"22" width=3D"22">, another Month=
, another Ye<span></span>ar,</span><br style=3D"font-family:comic sans ms,s=
<span style=3D"font-family:comic sans ms,sans-serif">=A0 =A0 =A0 =A0 =A0 =
=A0</span><span style=3D"color:rgb(51,255,51);background-color:rgb(0,153,0)=
;font-family:comic sans ms,sans-serif">another Smile<img style=3D"margin:0p=
t 0.2ex;vertical-align:middle" src=3D"e/360" height=3D"26" width=3D"21">, a=