Moved to https://github.com/maxking/process_hypercall/blob/master/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("load", function() { alert("hello!");}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
xrandr | grep VGA | grep -w connected >/dev/null | |
echo $? | |
if [[ "$?" -lt 1 ]] | |
then | |
notify-send "Extending desktop to VGA screen" | |
xrandr --output LVDS1 --auto --output VGA1 --auto --left-of LVDS1 --primary | |
else | |
xrandr --output LVDS1 --auto --primary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script downloads all the questions from Indiabix.com from the url of a given category. | |
It can easily be customized (if you know basic python) to download all the questions from | |
all the categories. It also downloads their answers. | |
Author: Abhilash Raj <raj.abhilash1@gmail.com> | |
Date: 17th March 2015 | |
Copyright (c) 2015 Abhilash Raj <Abhilash Raj> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# Takes all my playlists from ~/.mpd/playlists, fixes them up, and creates a | |
# folder for each, along with the music they reference. | |
# The sync stage requires an sshd server to run on your phone, as well as the rsync executable. | |
# - http://linux.wxs.ro/2011/08/05/rsync-your-android/ | |
MPD_MUSIC_ROOT="${HOME}/Music" # Root of your MPD library | |
MPD_PLAYLIST_ROOT="${HOME}/.mpd/playlists" # MPD playlist folder |