Operations Management is going to be a much better class than I expected.
Dr. Tsai is a quant, interested in statistical analysis, and likes to keep
an open mind. He mentioned that hei often eats dinner in the whatever cafe,
and
that chatting over dinner is something he enjoys. If he keeps acting
intelligent, I'll form some cogent thoughts and then see what he thinks.
Yesterday's linux meeting (cplug) covered bash tricks and other command-line
fun. I added the following:
- Using commands just run, and editing them on the fly
export PS1="\\!\\$ "
!!:s/export/echo/
^echo^printf^
echo !$
!echo
- Run nc -l localhost -p 8080 in one terminal, then run
echo hi > /dev/tcp/localhost/8080 in another to quickly copy data
around a network in a completely insecure fashion.
- Add hostname completion to commands complete -A hostname ssh
- for loops are great
for i in *.mp3; do mpg321 "$i"; done
- But knowing POSIX Regular Expressions will make sysadmin life much
more efficient as you can address multiple files/directories/etc. specifically.
Using Chris Moates example from last night, say you have a directory with 80,000 files
in it, named "testN.log", where N is an integer from 1 to 80,000. How do you delete test8000.log through test8999.log?
rm test8[0-9][0-9][0-9].log
- What does the following bash incantation do? (borrowing from lcamtuf)
:(){ :&};:
Other cool stuff includes Quaker
Capital, who seem to have their heads on straight. I might pester them for
some research re: my finance class.
Guide to Taiwan
- Learn basic Mandarin.
- Arrange for an apartment in Taipei.
- Fly into Taipei.
- Take bus to subway to apartment.
- Unpack bags.
- Clean apartment.
- Go to the Eslite 7-story 24-hour bookstore.
This also functions as Taipei's intellectual meatmarket.
- Find someone cute; speak English with them; start relationship with them.
- You now have a local guide and companion in the city.