I hereby claim:
- I am m1aw on github.
- I am m1aw (https://keybase.io/m1aw) on keybase.
- I have a public key ASD4RKzMEU27WwRD2GDMP7dV_Wf59oM_-hA9jWSZ1R4shAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
| package client; | |
| import java.io.DataOutputStream; | |
| import java.io.FileInputStream; | |
| import java.io.IOException; | |
| import java.net.Socket; | |
| public class FileClient { | |
| private Socket s; |
| "use strict"; | |
| var page = require('webpage').create(), | |
| system = require('system'), | |
| address, output, size, pageWidth, pageHeight; | |
| var waitTime = 10 * 1000; | |
| if (system.args.length != 3) { | |
| console.log('Usage: rasterize.js URL filename'); | |
| phantom.exit(1); |
| as user: | |
| PS1="\[$(tput setaf 5)\]@\h:\[$(tput setaf 7)\] \W\[$(tput setaf 6)\]\\$ \[$(tput sgr0)\]" | |
| as root: | |
| PS1="\[$(tput setaf 5)\]@\h:\[$(tput setaf 7)\] \W\[$(tput setaf 1)\]\\$ \[$(tput sgr0)\]" |