Shrinking a PDF with Ghostscript is easy in Linux. Below are 3 ghostscript commands to shrink PDFs to a few different levels. screen – lowest
You can do this simply with an onclick event like below.
This example will work fairly well cross-browser. In IE it will use new Image and everything else it will use createElement. There are bugs in
Using the substring function, this example below will select the leftmost 6 characters from a string field named “field_name” in the table tbl_stuff with mysql.
You can combine the sort and uniq command line programs to remove duplicate lines from a text file. In the example below, it will produce
To go to a specific line number in VI, first, make sure you’re not in editing mode by hitting ESC. Next type the line number
After you run a query on MySQL server you may get warning messages. To see the complete warnings you simply run the command show warnings.
When you download software online often the publisher will also provide a file hash to make sure that the file hasn’t been modified or hacked
These examples show you how to easily search your Gmail for emails with particular file types as attachments. Find emails with .xlsx attachments Find emails
This example lists out the IPs that are on the SSH port (22) on a particular subnet. List out IPs (only) of open ssh ports