- about:blank
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 | |
# Reset TCP connections with gdb | |
PORT="$1" | |
HOST="$2" | |
[ "$1" ] || { | |
echo "Usage: $0 local-port host-ip-address" | |
echo "e.g. $0 192.168.0.55 80 # reset tcp connection from 192.168.0.55 to local port 80" | |
exit 1; |
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/python3 | |
''' pppns - set ip netns for ppp0 ''' | |
import os | |
import pwd | |
import sys | |
import optparse | |
r={ | |
'ip': 'sudo ip', |
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 | |
"""Jumble the Bible according to Quran ordering ideas: shortest to longest""" | |
import urllib2,os | |
def QuranCmp(b,a): | |
return cmp(len(a[1]),len(b[1])) | |
kjvpcefile='kj.txt' |
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 | |
# Run epson-printer-utility from epson-printer-utility_1.0.2-1lsb3.2_amd64.deb | |
# using downloaded libqt4 libraries from previous Ubuntu version (not provided | |
# in Ubuntu 20.04 "focal fossa" | |
# | |
# This downloads the deb files and extracts them in a libs directory in the | |
# current directory, and then runs the utility | |
# | |
# Fix for: |
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 | |
for i in "$@" ; do | |
trf=transform.$$.trf | |
ffmpeg -i "$i" -vf "vidstabdetect=shakiness=5:accuracy=15:result=$trf" "$i.tmp.mp4" | |
rm "$i.tmp.mp4" | |
ffmpeg -i "$i" -vf "vidstabtransform=$trf:optzoom=2:maxangle=0.1,unsharp=5:5:0.8:3:3:0.4" "$i.unshake.mp4" |