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 | |
# a simple tcp server | |
import socket,os | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.bind(('127.0.0.1', 12345)) | |
sock.listen(5) | |
while True: | |
connection,address = sock.accept() | |
buf = connection.recv(1024) | |
print buf |
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/bash | |
# extract images from pdf at first-hand | |
#prefix=pict | |
#echo extract images from "$1" | |
#pdfimages -j "$1" $prefix | |
# IMAGES ARE SAVED SECVENTIALLY AS IMAGE AND THE NEXT IS A MASK IMAGE !!!! | |
declare -a files=($(ls *.ppm *.pbm)) | |
mask= | |
image= | |
for (( i = 0; i < ${#files[*]}; i = i + 2 )) |
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
diff --git a/src/Makefile.in b/src/Makefile.in | |
index 18acb39e..ef2e7a40 100644 | |
--- a/src/Makefile.in | |
+++ b/src/Makefile.in | |
@@ -40,7 +40,7 @@ COMMON = \ | |
screen.o scrollbar.o scrollbar-next.o scrollbar-rxvt.o \ | |
scrollbar-xterm.o scrollbar-plain.o xdefaults.o encoding.o \ | |
rxvttoolkit.o rxvtutil.o keyboard.o rxvtimg.o \ | |
- ev_cpp.o fdpass_wrapper.o ptytty_wrapper.o @PERL_O@ | |
+ ev_cpp.o fdpass_wrapper.o ptytty_wrapper.o sixel.o @PERL_O@ |