This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // to test... | |
| // curl -T path/to/file.tar.gz http://localhost:8000 | |
| var http = require('http') | |
| var fs = require('fs') | |
| http.createServer(function(req, rsp){ | |
| var file = fs.createWriteStream("mynewfile") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MTVL1141e38aa:app saung$ pwd | |
| /tmp/app | |
| MTVL1141e38aa:app saung$ ls | |
| MTVL1141e38aa:app saung$ git clone https://github.com/sithu/cmpe273-assignment2 | |
| Cloning into 'cmpe273-assignment2'... | |
| remote: Counting objects: 225, done. | |
| remote: Compressing objects: 100% (114/114), done. | |
| remote: Total 225 (delta 53), reused 208 (delta 36) | |
| Receiving objects: 100% (225/225), 31.01 KiB | 0 bytes/s, done. | |
| Resolving deltas: 100% (53/53), done. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package example.pubsub; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| public class BackgroundThread { | |
| public static void main(String[] args) { | |
| int numThreads = 1; | |
| ExecutorService executor = Executors.newFixedThreadPool(numThreads); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Artie - Artie Server | |
| # | |
| # Real-time messaging service | |
| description "artie" | |
| start on filesystem | |
| stop on runlevel S | |
| respawn |
NewerOlder