This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
- Lilly Ryan @attacus_au
This workshop is distributed under a CC BY-SA 4.0 license.
This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
This workshop is distributed under a CC BY-SA 4.0 license.
| #!/bin/bash | |
| # Run as root or sudo the commands that need it as you go. | |
| # brew version 0.9.5 | |
| # Mac OS X 10.10.1 | |
| # A little bit changed version of this: | |
| # http://stackoverflow.com/questions/19538118/osx-mavericks-bind-no-longer-installed-how-to-get-local-dns-server-working |
| --- Day changed Sat Aug 03 2013 | |
| 00:11 < tsai> :) | |
| 00:13 < pichuang_> 好多人 | |
| 00:14 < darkgerm> 差點忘記進來了XD | |
| 00:17 < darkgerm> pichuang: 學弟好 (? | |
| 00:17 < Jedi_> 隨手亂拿了一些奇怪的小禮品,實用性可疑,笑果若干,今、明兩天如果你剛好帶著拙著《簡報原力》或我的其他著作/譯作出席,請來跟我打個招呼,領取隨機小禮~ :p | |
| 00:22 < darkgerm> pichuang: 啊!原來是學長... 只看學號以為是學弟 <冏> | |
| 00:23 < chihhsin> darkgerm: 黑駿~ | |
| 00:23 < pichuang> 沒關係 我現在還沒有搞清楚狀況中XD | |
| 00:25 < darkgerm> chihhsin: hihi~ |
| #/bin/sh | |
| du -k --max-depth=1 | sort -nr | awk ' | |
| BEGIN { | |
| split("KB,MB,GB,TB", Units, ","); | |
| } | |
| { | |
| u = 1; | |
| while ($1 >= 1024) { | |
| $1 = $1 / 1024; | |
| u += 1 |
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |