Welcome To Snipplr
Everyone's Recent Other Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Simple file concatenation target using the concat task. The to and from directories are set in properties at the top. The first concat clears the file and writes a JS comment with the date on it, the second uses both a filelist (where you write filen...
0
586
posted 14 years ago by gotofritz
List of breakpoints for debuging with gdb. Add them to your ~/.gdbinit.
0
975
posted 14 years ago by zingo
Para colocar los produtos nuevos en el home o en otra pagina CMS de magento.
Para que esto funcione, el producto debe estar indicado como nuevo, en la edicion del producto.
0
535
posted 14 years ago by manteca
Just a funny, yet usefull fixture for testing users in a rails app.
Using "somewhat real" fixtures, will keep testing both fun and realistic.
Knowing that "Crabbe_ugly_nick" failed, is a lot easier to communicate then knowing "user_t_x01 failed"
0
721
posted 14 years ago by berkes
Apache can be used to ban undesirable people and bots from your website. With this code, we’re telling Apache that everyone is allowed to visit our blog except the person with the IP addresses
1
791
posted 14 years ago by mariusscheel
In drupal, you can configure custom formats at:
http://yourdomain.com/admin/settings/date-time/formats/add
You can also use these in a custom php function like:
<?php>created, 'custom', "F jS, Y"); ?>
To look up more options see http://php.ne...
1
667
posted 14 years ago by MikeyLikesIt
This is the most updated version of my os x php compile script
0
788
posted 14 years ago by iloveitaly
Add and remove www to urls through .htaccess with mod_rewrite
1
1038
posted 14 years ago by ginoplusio
Redirects all calls to mp3 files to a proxy (usefull fr example to track stats on db) the +FollowSymlinks should be already setted, but if it isnt' this setting with use it. FollowSymlinks must be on to use the rewrite engine.
0
1347
posted 14 years ago by ginoplusio
I recently did an upgrade using apt-get update / upgrade and one of the packages didn't fair so well so I needed to roll it back.
0
906
posted 14 years ago by bradless