Welcome To Snipplr


Everyone's Recent Snippets



1 ... 544 545 546 547 548 ... 553
To check it: hwclock, date
0 1460 posted 19 years ago by yuconner
All information: uname -a Example: Linux hostname 2.6.15-20-k7 #1 SMP PREEMPT Tue Apr 4 19:26:13 UTC 2006 i686 GNU/Linux
0 1353 posted 19 years ago by yuconner
Examples add that line to $HOME/.bashrc to have a permanent change
1 1665 posted 19 years ago by yuconner
Useful if you are behind a router, or in a LAN, and you didn't make (or can't have) a direct ppp connection to the ISP. Change "myweb.com" to the correct hostname For example to update zoneedit zone: #update_dns_ip.sh wget -O - --http-user= --ht...
0 1539 posted 19 years ago by yuconner
useful commands and files for network admin at unix systems
1 1622 posted 19 years ago by yuconner
1 3507 posted 19 years ago by yuconner
Table with style as in; http://24ways.org/examples/tables-with-style/table_columns.html
14 3016 posted 19 years ago by zensir
2 1083 posted 19 years ago by weitzman
3 1314 posted 19 years ago by weitzman
added to the head section of the page
5 1520 posted 19 years ago by gux
3 1515 posted 19 years ago by Corhol
0 1636 posted 19 years ago by zensir
1 1470 posted 19 years ago by zensir
Simple javascript email validation
29 11118 posted 19 years ago by arcturus
Shows how to create a DIV box that is scrollable and looks like a IFRAME.
6 1673 posted 19 years ago by hxseven
Shows how to upload a single file to a FTP server.
28 18110 posted 19 years ago by hxseven
Read a page's GET URL variables and return them as an associative array. ---- Example for URL http://www.example.com/index.html?hello=bonjour&goodevening=bonsoir var hash = getUrlVars(); alert(hash['hello']); // prints 'bonjour' alert(hash...
35 14223 posted 19 years ago by Roshambo
To assert the difference in values before and after some code blocks. Save this as assert_helper.rb and include it in your test_helper.rb
1 1225 posted 19 years ago by ctran
This will return a random number between two given numbers.
4 1611 posted 19 years ago by ypmits
Don't forget to insantiate with an object or with 'this'.
1 1211 posted 19 years ago by marc0047
7 1853 posted 19 years ago by brentroady
Una breve referencia de los meta carácteres y su significado en expresiones regulares en PHP. Esta referencia de expresiones regulares es muy interesante para tener a mano. Está recogida de un comentario del manual de php.net.
4 1706 posted 19 years ago by Navegante
Simple templating for innerHTML functions. Parses an input string (tmpl) for %(NAME) tokens, accepts an object (ns) as data and returns an output string.
1 1330 posted 19 years ago by mattgay
The ideal use of this code would be to save the Javascript code as a .js file. Then use the HTML code at the bottom to call it wherever you want on the web page.
1 1551 posted 19 years ago by Jaymoon
0 1335 posted 19 years ago by Jaymoon
(Applies to the HTML_Template_IT PEAR package) Useful script to find all global variables and put them in a format for an array. $t is the HTML_Template_IT(X) object.
0 2031 posted 19 years ago by pckujawa
The form method must be post and the enctype set as it is below. The hidden input for MAX_FILE_SIZE must also be included. The value is the max file size (in bytes?).
4 1717 posted 19 years ago by pckujawa
Use to redirect an html page after headers have already been sent. The 5 is the number of seconds before redirect to the URL.
1 1404 posted 19 years ago by pckujawa
1 ... 544 545 546 547 548 ... 553