Skip to content

Instantly share code, notes, and snippets.

View copyninja's full-sized avatar

Vasudev Kamath copyninja

View GitHub Profile
@copyninja
copyninja / cppsymbols_replace.sh
Last active December 16, 2015 02:29
Replaces symbols which varies across the architecture with demangled version. Requires build logs from different buildd's
#!/bin/bash
set +x
if [ $# -lt 3 ]; then
echo "Usage: $0 failed_buildlogs_directory symbols_file package_version"
exit 2
fi
BUILD_LOG_DIRECTORY=$1
SYMBOLS_FILE=$2
@copyninja
copyninja / python3.el
Created March 22, 2012 08:22
My customization to make it easy to learn python3 using emacs without breaking working of existing python related stuff
;; Python3 customization
;; Path to Python3 only required for windows.. :)
(setq python3-executable "C:/Users/invakam2/Documents/Programs/python3.2/App/python.exe")
;; Function similar to python-shell but this
;; is my crude implementation
(defun python3-shell()
(interactive)
@copyninja
copyninja / frendish.patch
Created February 7, 2012 16:24
Patch for tony
From 41936a98e7429e21edd7a20c7f2718a8dfad91ed Mon Sep 17 00:00:00 2001
From: Vasudev Kamath <[email protected]>
Date: Tue, 7 Feb 2012 21:51:27 +0530
Subject: [PATCH 9/9] Some improvements added like storing user name password
and server to avoid frequent asking
---
frendi.sh | 46 +++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 41 insertions(+), 5 deletions(-)
@copyninja
copyninja / power.sh
Created January 11, 2012 07:04 — forked from chrisyco/power.sh
Suspend, hibernate, restart or shutdown the computer without sudo!
#!/bin/sh
# Suspend, hibernate, restart or shutdown the computer without sudo!
# by Chris Wong
# Released to the public domain.
NAME=$0
usage() {
echo "Usage: $NAME suspend|hibernate|restart|shutdown"
@copyninja
copyninja / meaning_extractor.py
Created November 14, 2011 11:04
A meaning extractor for kannada wiktionary
#!/usr/bin/python
from BeautifulSoup import BeautifulSoup
import urllib2
import tablib
wiktionary_words = []
def parse_word(html_data):
#include
#include
/* safe_srncpy() is Copyright 1998 by Mark Whitis */
/* All Rights reserved. */
/* use it or distribute it (including for profit) at your own risk */
/* but please don't GPL it. Retain this notice. Modified versions */
/* should be clearly labeled as such. */
char *safe_strncpy(char *dst, char *src, int size)
{
char *savedst;
@copyninja
copyninja / ifconfig_sample.c
Created November 9, 2011 05:44
Just for fun - Ip getting and setting
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if_arp.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <features.h>
@copyninja
copyninja / generate_report.py
Created October 20, 2011 11:47
Generate report from MiniDebconf 2011 MangaloreEdition Register page
#!/usr/bin/python
############################################################################
# @file: generate_report.Py #
# #
# Copyright (c) 2011, Vasudeva Kamath <kamathvasudev at gmail dot com> #
# #
# Permission to use, copy, modify, and/or distribute this software for any #
# purpose with or without fee is hereby granted, provided that the above #
# copyright notice and this permission notice appear in all copies. #
@copyninja
copyninja / naruto-link-fetcher-new.py
Created September 11, 2011 09:18
New script to get naruto weekly video link
@copyninja
copyninja / internet-share.sh
Created August 7, 2011 07:44
Enabling the internet sharing
#!/bin/zsh
# Bring up the wlan0 interface
ifconfig wlan0 up
# Put the interface in Ad-hoc mode
iwconfig wlan0 mode Ad-Hoc
# Set the essid for the access point
iwconfig wlan0 essid copyninja