Webloc files serve as pointers to a URL, think of them as browser bookmarks but saved as a file. To generate them on a mac simply type in the URL you want associated with the .webloc
file into the URL bar of your browser. Now select the URL text or the favicon to the left of the URL and drag it to your desktop.
…
Creating Intra-Page Links in HTML
It’s extremely useful to be able to link to an exact location on an HTML page; especially if you’ve a very long document and want to navigate between sections with ease. This is where intra-page (or within-page) linking comes in handy. So, for the anchor use:
<a href="someUnqiueId">Link to specific location</a>
and for the linked destination use:
<span id="someUnqiueId">you will be directed to here</span>
…
an alias to copy directories and folders to a remote server
Using the following syntax you can create easy-to-remember, snappy terminal aliases to copy files and directories to a specific location on a remote servers:
alias cpserver 'scp -r "\!*" myUserName@some.remote.server:/home/myUserName/from_mac/'
…
Setting Up a VNC Server and Client to Connect to a Remote Machine
Most geeks will at some stage want to access and control a remote machine from the comfort of their own keyboard and mouse. This is a guide to help said geeks get setup with a VNC server (on remote machine) and client (on your local machine). Before you start you will need to make sure you have a VNC server running on your remote machine (I usually install tigervnc) and a VNC client running on your local machine (I use Remotix, but another solid choice is JollysFastVNC). …
Sublime-Jekyll Keybindings and Custom Builds
As you can see from the screengrab above, there are loads of useful commands included with the Sublime-Jekyll package. However I’ve been finding that some commands definately are more useful than others! The four commands I find I’m calling 95% of the time are:
- Create a new draft from template
- Promote a draft to a post
- Create a new template
- Edit a template
My Adventures with Pillow - The Python Image Library Fork
A while back I wrote some code to annotate astronomical images with Pillow, a fork of the python image library. My notes might be useful for some, so here they are! …