Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Definitely falls into the category of "simple thing I shoulda memorized years ago", but whatever:
0
929
posted 15 years ago by rengber
Save/Load or.. Write/Read or.. Store/Retrieve Private Key/Public Key to/from disk/file :D
0
11537
posted 15 years ago by geekiuscaesar
When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ. That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (p...
1
1017
posted 15 years ago by deepsoul
`\mathbf` does not put operators and greek characters in bold face. This macro does.
1
1118
posted 15 years ago by deepsoul
lookup the google page rank of a website from python. Uses the same interface that the Google Toolbar uses to get the value.
0
1261
posted 15 years ago by halotis
prints out the RSS reach, circulation, and hits for a feedburner feed.
0
775
posted 15 years ago by halotis
A Functional quick sort (Java imperative version seems to be quicker).
0
1237
posted 15 years ago by narkisr
As with screen style sheets, you use the <link> element to define the print style sheet your Web page should use:
<link>
The only difference between this link element and the link to your screen style sheet is the attribute:
media="print"
Most...
0
902
posted 15 years ago by thesmu
Encrypts traffic between host port 5900 and client port 5921 (view the forwarded traffic at `vnc://localhost:5921`).
0
770
posted 15 years ago by iblis
In this example:
*rewrite urls from domain.com to www.domain.com*
This is somewhat documented elsewhere, but not very well, so here's an example on how to perform simple URL rewriting with HAProxy (instead of using mod_rewrite with apache)....
0
1106
posted 15 years ago by alexwilliams
Create two new bookmarks - one for dev, one for live and add the following corresponding code to each.
1
1056
posted 15 years ago by Meander365
gibt die url plus storeview aus, also bspw:
http://yourdomain.com/de/
0
834
posted 15 years ago by nico65
The quick and easy way to insert CMS Blocks into template (.phtml) files without any layout modifications:
0
934
posted 15 years ago by nico65