Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 407 408 409 410 411 ... 553
commands for dealing with tar files
0 1154 posted 16 years ago by stiobhart
find all files owned by xxx and change them to be owned by yyy
0 1236 posted 16 years ago by stiobhart
change user's home directory
0 1161 posted 16 years ago by stiobhart
1 1119 posted 16 years ago by Eloi
enable and disable sites and modules in apache 2
0 33398 posted 16 years ago by stiobhart
granting DB specific and general access priveleges from the CLI
1 1433 posted 16 years ago by stiobhart
CLI commands for backing up mySQL database
2 2651 posted 16 years ago by stiobhart
making a symbolic link
0 1278 posted 16 years ago by stiobhart
some basic *nix terminal commands
0 1331 posted 16 years ago by stiobhart
load in XML and style the text via CSS
1 1752 posted 16 years ago by stiobhart
actionscript date object and some date calculations
1 1396 posted 16 years ago by stiobhart
code to implement a paypal button in flash
0 1424 posted 16 years ago by stiobhart
an external javascript sort function, which you can import into flash to help sort arrays of objects. include the script thus: #include "objSort.js"
2 1578 posted 16 years ago by stiobhart
this will loop through an object and get all its properties
0 1230 posted 16 years ago by stiobhart
Makes a mono 8-bit (i.e. one byte per sample) wav file, "out.wav" containing a 500 Hertz sine wave signal. 22050 is the sample rate, and 64000 is the total size of audio data in bytes.
1 1408 posted 16 years ago by Zufolek
Useful for SBApplication scripting bridge.
0 1828 posted 16 years ago by iloveitaly
identify listening ports and services running on these ports
0 1189 posted 16 years ago by stiobhart
this is a handy snippet to trace the info about any cuepoints actionscript encounters, embedded in a FLV [flash video]. these traces will display the name, type and time of the cuepoint - in a nicely formatted list
0 1502 posted 16 years ago by stiobhart
shows the basic structure of a switch statement. switches are useful when you want to respond to a series of possible values that a variable might have, without having to write a shitload of "if(blah blah){do blah}" code which, as we know soon end...
0 1494 posted 16 years ago by stiobhart
this code loads in the necessary actionscript classes for dealing with FLV [flash video] and metadata [in this case cuepoints]. this needs to be loaded right at the beginning of your code, so flash knows how to handle cuepoints embedded in FLV [flas...
0 1521 posted 16 years ago by stiobhart
basic structure of the actionscript function to listen for cuepoints embedded in a piece of FLV [flash video]. note: cuepoints need to have been embedded when the video was converted from its original format to FLV - prior to importing it into flash
0 1607 posted 16 years ago by stiobhart
prob works on other linuces too!
1 1239 posted 16 years ago by stiobhart
Enable jQuery on any website, just clicking on a bookmarklet with this code. Or drag & drop this on your bookmark bar: <a href="javascript:(function(){var%20s=document.createElement('script');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs...
4 1372 posted 16 years ago by danielfilho
This code replaces a normal category template. It sorts all posts by their category/subcategory instead of bunching them all together and ordering them by date. A bit complicated to explain in a box this size... Check the link for a run through!
1 1754 posted 16 years ago by rocktronica
If you leave out the "paged" parameter, the same results are queried and shown on each pagination. Of course, you'll want to change the "3" to whichever category you'll want to exclude.
3 1800 posted 16 years ago by rocktronica
Download all tutorial pages of html format recursively. Ex: http://www.moraware.com/help/ Get the url of tree frame (left), use it in wget. Have fun :)
0 1355 posted 16 years ago by abhiomkar
I was asked to add Recaptcha' to an already existing form. I didn't want to interfere with the code so I decided to search for some sort of AJAX solution. Here's my implementation of DarkSideOfTheCarton.com. This form needs to have a form with <fo...
1 2389 posted 16 years ago by chrisaiv
1 ... 407 408 409 410 411 ... 553