Skip to content

Instantly share code, notes, and snippets.

View maxking's full-sized avatar
:octocat:

Abhilash Raj maxking

:octocat:
View GitHub Profile
@maxking
maxking / emacs-email-setup.md
Created December 26, 2015 08:16 — 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
@maxking
maxking / server.c
Last active March 17, 2016 10:07
simple echo server demonstration
#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)
{
perror(msg);
@maxking
maxking / get_files.py
Last active April 17, 2016 10:04
Download files of a particular type from a webpage.
#! /usr/bin/env python3
"""
Author: Abhilash Raj <raj.abhilash1@gmail.com>
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 get_files.py -p <address_of_web_page> -f <filtype>
@maxking
maxking / grub.cfg
Last active July 6, 2016 20:06
Grub.cfg to load ikgt module in grub.
# 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'
window.addEventListener("load", function() { alert("hello!");});
@maxking
maxking / intern_project_discussion.md
Last active September 12, 2016 21:46
Defense against privilege escalation attacks in Linux Kernel
# To run this script first install the 'gitpython' package from pip.
# $ pip install gitpython
#
# Usage:
# python git_grep.py repo_path filename regex
#
import os
import sys
import subprocess
@maxking
maxking / emacs.el
Created July 11, 2017 03:46
Emacs configuration for flyspell
(require 'flyspell)
(setq ispell-list-command "--list") ;; run flyspell with aspell, not ispell
(add-hook 'prog-mode-hook 'flyspell-prog-mode)
(global-set-key [(control c) (f)] 'flyspell-check-previous-highlighted-word)
;;-------------
;; Text mode
;;-------------
(add-hook 'text-mode-hook 'flyspell-mode)
@maxking
maxking / mailman.rst
Created August 12, 2017 07:03
Manual for `mailman` command.

Keybase proof

I hereby claim:

  • I am maxking on github.
  • I am maxking (https://keybase.io/maxking) on keybase.
  • I have a public key whose fingerprint is 541E A044 8453 394F F77A 0ECC 9D9B 2BA0 61D0 A67C

To claim this, I am signing this object: