stiobhart


Member since 2009

31 snippets

18152 profile views

2 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

stiobhart's Recent Snippets



« Prev 1 2
A pair of handy terminal commands for converting Apple .plist preference files from binary to XML format [allowing for easy editing with a text editor] and then back to binary again, afterwards.
0 3687 posted 14 years ago by stiobhart
at least until HTML5 unifies all this crap into one tag, this helps me remember the three concurrent versions we need to use to cover all bases.
0 1595 posted 15 years ago by stiobhart
CSS box shadow syntax - just because i can never remember the order of the attributes, off the top of my head!
0 1728 posted 15 years ago by stiobhart
how to enable or disable spotlight disc indexing from the terminal. all the following work on root "/". to specify another volume, put its path at end of the command
1 2031 posted 17 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
1 2543 posted 17 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
1 2279 posted 17 years ago by stiobhart
actionscript3 version of a more complex button action, which responds to rollover, rollout and clicking. this method uses one single 'buttonstuff' function with a 'switch' inside which causes the function to respond differently, depending on what...
1 2367 posted 17 years ago by stiobhart
actionscript3 version of the basic button action. in actionscript3, button actions can no longer be attached to the buttons themselves or called from the main timeline. you need to put an 'addEventListener' in the timeline to 'listen' for interacti...
1 2467 posted 17 years ago by stiobhart
basic actionscript button action that can be attached directly to a button on the stage. this will NOT work in actionscript 3, which does not allow actionscript to be attached directly onto buttons. make sure you're attaching this action to a but...
0 1674 posted 17 years ago by stiobhart
commands for starting, stopping etc openSSH
0 1741 posted 17 years ago by stiobhart
commands for dealing with tar files
0 1524 posted 17 years ago by stiobhart
commands for dealing with tar files
0 1543 posted 17 years ago by stiobhart
find all files owned by xxx and change them to be owned by yyy
0 1637 posted 17 years ago by stiobhart
change user's home directory
0 1577 posted 17 years ago by stiobhart
enable and disable sites and modules in apache 2
0 34143 posted 17 years ago by stiobhart
granting DB specific and general access priveleges from the CLI
1 1879 posted 17 years ago by stiobhart
CLI commands for backing up mySQL database
2 3168 posted 17 years ago by stiobhart
making a symbolic link
0 1650 posted 17 years ago by stiobhart
some basic *nix terminal commands
0 1733 posted 17 years ago by stiobhart
load in XML and style the text via CSS
1 2245 posted 17 years ago by stiobhart
actionscript date object and some date calculations
1 1803 posted 17 years ago by stiobhart
code to implement a paypal button in flash
0 1800 posted 17 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 2112 posted 17 years ago by stiobhart
this will loop through an object and get all its properties
0 1606 posted 17 years ago by stiobhart
identify listening ports and services running on these ports
0 1560 posted 17 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 1912 posted 17 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 1926 posted 17 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 1927 posted 17 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 2042 posted 17 years ago by stiobhart
« Prev 1 2