The API to NUS IVLE, called LAPI, has been around for some time. Below is a demonstration of how one can retrieve an AuthToken
:
You might have noticed that awk
was used to extract the value attribute from the input element for __VIEWSTATE
!
If you can find a shorter curl ...
Had to do a code submission for a module of mine.
Actually, we're supposed to use hg. I'll talk about my hack-y git->hg workflow (instead of through hg-git) when I get the time.
Nowadays we're pampered with many data transfer methods - from the physical (flash drives), to the "cloud" (Dropbox).
But if you are working with ssh, your options are restricted. The recommended way of transferring data is with scp/sftp, but I find it quite a hassle: you've got to ...
I was compiling my gsoc code submission the other day. It was done as a git repo (available here), mostly collections of patches, but I also had some gists lying around. Their individual revisions were probably not that interesting, but just adding them as history-less blobs would was also undesirable ...
From Wikipedia's entry on split, here's a quick way to split a file into 2 on a Unix-y system:
# on source machine
$ split -n 2 myfile
# on target machine
$ cat xaa xab > myfile