Merge Password-Protected PDF files

Sometimes, PDF files—like those from book chapters—come password-protected to prevent editing, which also stops you from merging them without knowing the password. If printing is allowed, you can work around this by printing the file to PDF, but this creates a new PDF where the text is no longer selectable or searchable. While you could re-OCR the file, a much better solution is to use an old yet powerful tool: Ghostscript, originally developed by Adobe.

Ghostscript allows you to manipulate PDF files easily, including merging multiple PDFs into one. For example, to merge three PDFs named 1.pdf, 2.pdf, and 3.pdf, you can run the following command:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=merged.pdf 1.pdf 2.pdf 3.pdf

Here’s what the parameters mean:-dBATCH: Tells Ghostscript to process all files and then exit (batch mode).-dNOPAUSE: Disables pauses between processing each page (no manual intervention required).-q: Runs the command quietly, suppressing most of the output messages.-sDEVICE=pdfwrite: Specifies that the output should be written as a PDF.-sOutputFile=merged.pdf: Defines the name of the resulting merged file.

If you have many files that are consecutively named (e.g., 1.pdf to 100.pdf), you can generate the file list dynamically in the command line, like this:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=merged.pdf $(seq -f "%g.pdf" 1 100)

Note that the gs tool takes considerable time to handle so many entries, but this approach saves your time after all.

Limit upload / download speed of Dropbox and Seafile

Cloud storage app like Dropbox and Seafile can eat a lot of your bandwidth, which is especially painful when you are on a slow WiFi connection.

Luckily, these apps come with a possibility to limit their bandwidth use.

For Dropbox,

  • click on the Dropbox icon in the system tray
  • click the cogwheel in the right corner
  • select “Preferences”
  • go to the bandwidth tab and enter the limits

For Seafile,

  • right-click on the Seafile icon in the system tray
  • Select “Preferences”
  • enter the limits on the general tab

Schedule meetings automatically into Google Calendar with Doodle or Calendly

doodle.com is a well known page for scheduling meetings or making decisions. Its calendar integration is probably less known. Doodle can export a calendar with the dates you have chosen in order to remind you to keep them blocked. When a date is fixed for a query, doodle releases the other dates. You can also add your calendar to doodle to see your availabilities right in the doodle calendar and to use such features as autofill.

If you look for something else, calendly.com is another free service that provides an interface for others to schedule a meeting with you. Dates with concurring events in your Google calendar are automatically blanked out.

 

Use TortoiseSVN without Passwort

Tortoise SVN has an option for saving authentication, but it does not work for SVN. In order to save the authentication, go to Tortoise settings, for example by right clicking in the Windows Explorer and then selecting Tortoise > Settings. In the settings window, select Network. Then add the path to Tortoise Plink (it is in the “bin” folder of the Tortoise installation) and add an option for a username and password using options -l and -pw.

For example:
“C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe” -l foo -pw bar

 

filegive: send and receive files across computers

filegive easily sends or receives files point-to-point, with authentication and ciphering, and the other side only needs a Web browser. No third party server is involved in the transfer. It can use common NAT traversal protocols like uPnP and NAT-PMP, manually forwarded ports, or a public ssh server.

filegive is a commandline tool available for Linux, Windows and Mac OS.

Project page with commands and download links

Download an entire Web site for off-line viewing with wget

$ wget \
–recursive \
–no-clobber \
–page-requisites \
–html-extension \
–convert-links \
–restrict-file-names=windows \
–domains website.org \
–no-parent \
www.website.org/tutorials/html/

This command downloads the Web site www.website.org/tutorials/html/.

The options are:
–recursive: download the entire Web site.
–domains website.org: don’t follow links outside website.org.
–no-parent: don’t follow links outside the directory tutorials/html/.
–page-requisites: get all the elements that compose the page (images, CSS and so on).
–html-extension: save files with the .html extension.
–convert-links: convert links so that they work locally, off-line.
–restrict-file-names=windows: modify filenames so that they will work in Windows as well.
–no-clobber: don’t overwrite any existing files (used in case the download is interrupted and resumed).