Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This command will email the contents of emailbody.txt to [email protected] with the subject My subject line.
0
1159
posted 15 years ago by webonomic
This creates an array of various linux shell names, loops through the array and ouputs a file called shell_locations.txt showing where the shells are located on the linux system.
0
1254
posted 15 years ago by webonomic
Bash
Print the number of established and listening connections to your server on port 80 per each IP address
1
1842
posted 15 years ago by tobewan
In order to accurately get the next ID from a SharePoint list you need to access the content database for one reason: If you delete all the items from a list, and execute this simple code: list.Items[list.ItemCount -1].ID) + 1 the ID will always retu...
0
1094
posted 15 years ago by blackf0rk
Count how many users are connected to a site (execute this function in every page, put it in the header).
1
1440
posted 15 years ago by ginoplusio
Funcion para eliminar los acentos, caracteres que no sean numeros o letras y los espacios blancos. Muy util para renombrar los archivos antes de subirlos al server
0
909
posted 15 years ago by jacinmontava
Credit: 'Jelmer' from CodeIgniter Forums
1. Create preferences.php in your application/config/ directory.
2. Add this to the controller that writes your config values to the database so that it will also write them to the preferences.php config...
2
1180
posted 15 years ago by traeregan
The following is a list of any conditional comment you'd probably ever need for targeting any version of IE.
1
992
posted 15 years ago by benwasilewski
Change 'username' (twice!) with your imap username,'password'with your imap password, and 'example.com' (twice!) with the url of your imap mailserver.
Works on: Ubuntu with Evolution, sqlite3 and archivemail installed.
Evolution is required beca...
1
1237
posted 15 years ago by berkes
Using SQL you can have your database return the distance between 2 sets of Lat and Long points, and using some math functions also take into account the curvature of the earth.
3
1493
posted 15 years ago by zingo