Woozle's Scratchpad

From SquadWiki
Jump to: navigation, search

Woozle's Scratchpad



Quicky Wiggyscript for random images. Save as randimage.php or whatever.

// Place all the images you want in the images folder beneath this folder
$folder = getcwd() . "images/"; 
// Just encapsilate whatever filenames you want here
$images=array("1.png", "2.png", "3.png", "wiggyslogo.png");
$filename = $folder . $images[array_rand($images)];
$fp = fopen($filename, 'rb');
header("Content-Type: image/png"); // might have to change this if we're not using PNGs
header("Content-Length: " . filesize($filename));


Dhrakellian says:

  • make clean; svn up; make -f Makefile.cvs; ./configure --prefix=`kde-config --prefix` --enable-debug=full; make; sudo make install
  • ^^that's mostly how one would update a kde app manually from svn
  • assuming that one wanted debugging
  • ./kdesvn-build
  • ^^how I'd do it
  • ./get-amarok-svn.sh
  • ^^how I update amaroK
  • kdesvn-build and get-amarok-svn.sh are nice in that they set up unsermake (locally) for you


\[\033[00;32m\]\u\[\033[00m\]@\[\033[01;36m\]\h \[\033[01;34m\]\W\[\033[01;32m\] $ \[\033[00m\]

"man bash" -- see PROMPTING section

-0500 boundary="--166329584364098"


<Vigilantene> yeah, there is, easily
<Vigilantene> just dd if=/dev/hdb of=/home/woozle/disk.img
<Vigilantene> the bs= parameter has a large affect on time it takes to copy, though
<Vigilantene> bs=1024k is good, I think, possibly
<Vigilantene> apt-get install mondo
<Vigilantene> is the first thing I see that would be good for looking at that
<Vigilantene> the reason you want to make an image is to avoid further data loss

Grub conf file

# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
title Fedora Core (2.6.11-1.1369_FC4)
	root (hd0,0)
	kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.11-1.1369_FC4.img
title Win98
	rootnoverify (hd1,0)
	chainloader +1