Write code that will validate UK postcodes.
You are given a regular expression that validates postcodes (shown in verbose form below):
(GIR\s0AA) |
(
# To run the restart-all Windows Scheduled Task from the command line (either cmd or Cygwin): | |
(windows box)$ schtasks /run /tn restart-all | |
To run that command remotely from a linux box: | |
(linux box)$ ssh windows-user@windows-machine "schtasks /run /tn restart-all" | |
# Ensure that you have setup public key authentication on the windows box, to allow this command to work without password entry | |
# Jenkins can be scheduled to execute the above command to allow Windows Selenium instances to be restarted between builds (so as not to clash with running builds). |
(local machine) $ scp ~/.ssh/id_rsa.pub remoteuser@remotemachine:~ | |
(remote machine) $ cat ~/id_rsa.pub >> ~/.ssh/authorized_keys |
ssh -t username@server screen "command" |
gethostip -d [hostname] |
lokkit -p 8090:tcp |
ls /var/run/reboot-required |
sudo pip install sshuttle | |
sshuttle -r user@host 0/0 |
split --bytes=1024M --filter='gzip > $FILE.gz' /path/to/input /path/to/output |