Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
# 用法 usage: | |
# shell置于总放照片的目录之上 put this shell in a path containing original photos (photos are here or in subfolders) | |
# 脚本 目标文件夹 源文件夹1 源文件夹2 源文件夹3 ..... | |
# scriptname <dest> <source1> <source2> <source3> .... | |
function get_filename_from_path() | |
{ | |
echo ${1##*/} |
#!/bin/bash | |
get_fd() { | |
local x | |
local tmpfile | |
local _fd_var=$1 | |
for x in $(seq 10 $(ulimit -n)); do | |
if [[ ! -a "/proc/$BASHPID/fd/$x" ]]; then | |
tmpfile=$(mktemp /dev/shm/XXX.tmp) |
#! /bin/bash | |
# display the packages included in the installed patterns. | |
# You'll only have to install the patterns - not the packages! | |
for pat in $(zypper pt -i | awk -F "|" '/^i/ { print $2 }' | sort -u | sed 's/^ //;s/ *$//;s/ /#/g') ; do | |
pkg=$(zypper info -t pattern "${pat//#/ }" | awk 'BEGIN { ORS=" "} ; /^i/&&/| package |/{ print $3 }') | |
[ "$pkg" ] || continue | |
printf "* %s\n%s\n\n" "${pat//#/ }" "$pkg" | |
pkgs="$pkgs $pkg" | |
done |
grep -E -v "#|radd|rremove" /var/log/zypp/history |cut -d "|" -f 1,2,3,4,5,6 | sed "s/|/,\t/g" |
Palemoon | |
Cyberfox | |
waterfox | |
seamonkey | |
https://github.com/fork-maintainers/iceraven-browser |
See what your privacy google has kept on your google account. | |
Google gives option to stop recording and delete them. | |
https://myaccount.google.com/activitycontrols | |
https://myactivity.google.com/myactivity | |
https://myactivity.google.com/more-activity | |
https://myactivity.google.com/delete-activity |
#!/bin/bash | |
check_wine() { | |
if ! wine --version | grep -e 'wine-2' | |
then | |
echo "consider installing wine-2.1" | |
apt-cache policy wine32 wine-development | |
exit 1 | |
fi | |
} |
javascript:(function(){if ((Id = /^http:\/\/www\.lizhi\.fm\/(\d{2,})/.exec(window.location.href))!== null) {prompt('http://nj.lizhi.fm/rss/'+Id[1]+'.xml');}else if ((Id = /^http:\/\/www\.ximalaya\.com\/.*\/album\/(\d{2,})/.exec(window.location.href))!== null) {prompt('URL','http://ximalaya.com/album/'+Id[1]+'.xml');}else if ((Id = /^http:\/\/lebo\.baidu\.com\/album\/(\d{2,})/.exec(window.location.href))!== null) {prompt('http://lebo.baidu.com/dj/rss/'+Id[1]);}else if ((Id = /^https:\/\/itunes\.apple\.com\/[a-zA-Z]+\/podcast\/.*/.exec(window.location.href))!== null) {alert('Wait a minute and check the result.');prompt('picklemonkey.net/flipper/extractor.php?feed='+window.location.href);}else{alert('Not support or wrong url!');}})() |
find .|file -i -b -f - |sort|uniq -c|sort -nr |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000