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
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
#!/bin/bash | |
set -e | |
# Usage: | |
# rsync_parallel.sh [--parallel=N] [rsync args...] | |
# | |
# Options: | |
# --parallel=N Use N parallel processes for transfer. Defaults to 10. | |
# | |
# Notes: |
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
diff -Naur rsync-3.0.6/Makefile.in rsync-3.0.6-sleepflag/Makefile.in | |
--- rsync-3.0.6/Makefile.in 2009-04-11 03:24:49.000000000 +0400 | |
+++ rsync-3.0.6-sleepflag/Makefile.in 2010-08-05 22:05:32.000000000 +0400 | |
@@ -35,7 +35,7 @@ | |
OBJS1=flist.o rsync.o generator.o receiver.o cleanup.o sender.o exclude.o \ | |
util.o main.o checksum.o match.o syscall.o log.o backup.o | |
OBJS2=options.o io.o compat.o hlink.o token.o uidlist.o socket.o hashtable.o \ | |
- fileio.o batch.o clientname.o chmod.o acls.o xattrs.o | |
+ fileio.o batch.o clientname.o chmod.o acls.o xattrs.o sleeper.o | |
OBJS3=progress.o pipe.o |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#!/bin/bash | |
# Script to automate PhpMyAdmin updates | |
# To manually switch to another version, use... | |
# bash pma-auto-update.sh version_number | |
### Variables | |
LOGDIR=$HOME/log | |
LOG_FILE=$LOGDIR/phpmyadmin-updates.log |
use Modern::Perl; | |
use charnames ':full'; | |
binmode( STDOUT, ":utf8" ); | |
use WWW::Mechanize::Firefox; | |
use URI::Split qw( uri_split uri_join ); | |
use Try::Tiny; | |
my $url = 'http://yandex.ru/'; | |
my $stop = 10; | |
backup_url_from_page( $url, $stop ); |
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass