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
#!/bin/bash | |
#The target directory where you want the files to be saved. | |
#With trailing slash. | |
target="$HOME/" | |
cd "/tmp" | |
for i in `ls | grep ^Flash` |
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
#!/bin/sh - | |
"exec" "python" "-O" "$0" "$@" | |
__doc__ = """Tiny HTTP Proxy. | |
This module implements GET, HEAD, POST, PUT and DELETE methods | |
on BaseHTTPServer, and behaves as an HTTP proxy. The CONNECT | |
method is also implemented experimentally, but has not been | |
tested yet. |
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 | |
for flashpid in $(pgrep -f flashplayer.so); do | |
cd "/proc/$flashpid/fd" | |
for video in $(file * | grep '/tmp/Flash' | sed 's/\(^[0-9]*\).*/\1/g'); do | |
echo "/proc/$flashpid/fd/$video" | |
done | |
done |
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> | |
void main() | |
{ | |
FILE *ifp1, *ifp2, *ofp; | |
int limit, pointer=0; | |
int current_char, junkchar; | |
limit = 300*1024; // 300KB | |
ifp1 = fopen("eclipse-java-helios-SR2-linux-gtk2","r"); | |
ifp2 = fopen("eclipse-java-helios-SR2-linux-gtk","r"); | |
ofp = fopen("eclipse-java-helios-SR2-linux-gtk.tar.gz","w"); |
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/python | |
# -*- coding: utf-8 -*- | |
""" | |
Generate mappings of any font, to check if | |
a given hex code is available or not. | |
author: Shiv Deepak <[email protected]> | |
""" | |
from xml.sax import saxutils, make_parser | |
from xml.sax.handler import feature_namespaces |
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
import os | |
from reportlab.pdfbase import pdfmetrics | |
from reportlab.pdfbase.ttfonts import TTFont | |
import reportlab | |
reportlab.rl_config.warnOnMissingFontGlyphs = 0 | |
#set the directory where the font is stored. | |
fonts_directory = os.path.join(os.path.dirname(os.path.abspath(__file__)), | |
"fonts") | |
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
# -*- coding: utf-8 -*- | |
""" Sahana Optical Character Recognision Utility (s3ocr) | |
@author: Suryajith Chillara <suryajith1987[at]gmail.com> | |
@author: Shiv Deepak <idlecool[at]gmail.com> | |
@copyright: 2009-2011 (c) Sahana Software Foundation | |
@license: MIT |
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
{ | |
"status": "success", | |
"statuscode": "200", | |
"message": "Validation error", | |
"tree": { | |
"$_cr_shelter": [ | |
{ | |
"$k_shelter_type_id": { | |
"$_cr_shelter_type": [ | |
{ |
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
#!/bin/bash | |
# Author: Shiv Deepak <[email protected]> | |
# Bazaar GSoC Zipper | |
# I basically wrote this script to generate diff files for my project | |
# from parent banch (which is `vita` for me ), for most of you it will | |
# be `trunk`, just get a fresh copy of trunk and run this script inside it. | |
# Ex: | |
# | |
# Step 1: Get a fresh copy of trunk | |
# $ bzr branch lp:sahana-eden eden |
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<stdlib.h> | |
#include<sys/socket.h> | |
#include<features.h> | |
#include<linux/if_packet.h> | |
#include<linux/if_ether.h> | |
#include<errno.h> | |
#include<sys/ioctl.h> | |
#include<net/if.h> | |
#include<linux/ip.h> |
OlderNewer