Skip to content

Instantly share code, notes, and snippets.

View Lukse's full-sized avatar

Saulius Lukse Lukse

View GitHub Profile
@jhlb
jhlb / progbar.py
Last active April 19, 2023 20:03
progbar.py : Print current position in file versus file length.
#!/bin/env python
import sys, os
USAGE="""
./progbar.py PROCESS_ID [FILE_DESCRIPTOR_NUMBER]
Usage:
./progbar.py PROCESS_ID
@pklaus
pklaus / .gitignore
Created September 24, 2012 00:04
Webcam Capture with OpenCV's Python Interface cv2 and with its C++ interface
video
*.pyc
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/