2015年11月29日 星期日

016 creative zip file (linux shell) homework (1&2)

Homework #1 How to unzip it repeatedly to get the deepest one?

Answer:

one line script

while [ 1 ]; do candidate=`find ./ -name "*.zip"`; for i in $candidate; do unzip $i; rm $i; done; left=`find ./ -name "*.zip" | wc -l`; if [ $left -eq 0 ]; then break; fi; done

.sh file


2015年11月26日 星期四

016 creative zip file (linux shell)

How to Create Zip File in a Creative Way

Step 1. prepare the original file valuable to you.

// for  example, and, as many times as you want
echo work smart play hard >> treasure.txt

2015年11月13日 星期五

015 docker-enabled sshd server

Step by Step for Ubuntu 14.04 LTS, Trusty Tahr
https://docs.docker.com/installation/ubuntulinux/

Request:
1. a ssh server for integration test

Test Account:
root:admin

2015年11月2日 星期一

014 docker-enabled squid proxy

Step by Step for Ubuntu 14.04 LTS, Trusty Tahr
https://docs.docker.com/installation/ubuntulinux/

Request:
1. HTTP Proxy without Authentication
2. HTTP Proxy with Basic Authentication
3. HTTP Proxy with Digest Authentication
Test Account:
root:admin
hello:kitty