When you download the pdf version of a paper from an online journal, the pdf is typically named by default to be the journal name plus some id such as nrg2950.pdf or nihms551112.pdf and generally not too informative. I like to use a bash script with pdfinfo to rename pdfs to the paper’s title. #!/bin/bash
Posts Categorized / Unix
SSH into virtual servers without typing your password or your full username and host name. Step 1. Create the key pair on the client machine Look for these files: ~/.ssh/id_rsa ~/.ssh/id_rsa.pub If they do not exist already, you can generate the pair: ssh-keygen -t rsa If they already exist, no need to regenerate. Step 2.
I’ve previously written about Screen in Stupid Must Knows – Screen. Screen is not only useful when working with a poor connection, but also if you want to toggle or copy between multiple screens on the same remote server. Instead of ssh-ing into two different terminals and using a mouse to copy back and forth,
Prevent losing your work due to broken connections using screen. Especially great when working from an unstable connection. For installation and other information, see: http://www.gnu.org/software/screen/ To use screen: ssh into your remote server as usual. Actual using the command screen. You will see an introduction. Just click enter. Now you are using screen! Easy as
10 useful command line editing commands: C is Control. M is Meta or Option on Mac (assuming you have gone to Preferences -> Settings -> Keyboard and turned on “Use option as meta key”). Move to the start of the line: C-a Move to the end of the line: C-e Move forward a word: M-f
Steps to create a Python executable for my-program.py. 1. You will need to create a file called my-executable (or whatever you want your executable’s name to be; so no extensions) with the following content: python my-program.py $* 2. Then you need to cd to your script’s folder and run the following command on the script