One liners, fixes, advice, observations and everything else below offered as-is. Use at your own risk. Much was simply copied, some may be first drafts later edited in command histories. If anything here helps you, or you have some knowledge to add, do please e-mail me at quinn@fazigu.org! Written with keywords in mind, thus the strings of synonyms. ##################################################################### ##################################################################### ## virtual dimension windows multiple desktops virtual desktops ## windows appear on multiple desktops even when "All desktops" is unchecked/off http://sourceforge.net/tracker/index.php?func=detail&aid=1310603&group_id=74581&atid=541421 To reproduce: Dunno. Suggestions did not work. To fix: Configure->Advanced->Hiding Method->Exceptions, add firefox? ## xmame logitech precision gamepad joystick xmamerc http://www.linuxquestions.org/questions/linux-hardware-18/gamepad-problem-534839 sudo apt-get install joystick sudo modprobe joydev jscal -c /dev/input/js0 # uh, no. doesn't work. let's try something in xorg: Section "InputDevice" Identifier "Gamepad" Driver "joystick" Option "Device" "/dev/input/js0" EndSection # no, don't have joystick module sudo apt-get install xserver-xorg-input-joystick ## fuck all that. edit ~/.xmame/xmamerc, set joystick type to 1 (i386 style joystick driver) fuck fuck fuck you ## vim E173: 3 more files to edit I want this behavior when I've got unsaved changes, but certainly NOT when I just entered other files on the cmdline. Unfortunately, it seems the two cases use the same error. ## Set the primary display for Nvidia Twinview Linux xorg.conf ## Xinerama HEAD0 HEAD1 HEAD #0 swap with HEAD #1 xorg.conf: Option "TwinViewXineramaInfoOrder" "DFP-0" ## I switched screens, but VLC now shows fullscreen on wrong one! Oh noes! ## Don't worry, me-chan: Settings -> Preferences -> Video -> Output Modules -> XVideo Screen for fullscreen mode: 1 ## Read /usr/share/doc/NVIDIA_GLX-1.0. RTFM. Good stuff in there: * TwinView supplies its own Xinerama interface. If you're using TwinView, you're using Xinerama. Not the X11 Xinerama, but a Xinerama. * Without Xinerama, if you (like me) have x+1 monitors with different dimensions, you're probably going to get dead spaces or have to pan around. With Xinerama, your intelligent window manager will avoid them. . sudo apt-get install libxinerama-dev (w/out this, xinerama support is crippled) . wmaker$ ./configure --enable-xinerama \ --with-xft \ --with-gnustepdir=/usr/local/GNUstep/ * Setting TwinViewXineramaInfoOrder may have fixed the annoying tendancy of Firefox to open its Preferences dialog on my TV! * Xinerama means you get *one* screen. Display :0 is always :0.0. E.g. you can't specify a position off in your TV by referring to :0.1 as the second screen. Instead, use the -geometry option of most X11 apps to position it. ## ~/src/vim/INSTALL-PLUGINS.txt Most VIM plugins, and certainly these, can be installed just by unzipping them into your ~/.vim folder: unzip -v -d ~/.vim plugin.zip The -v is for verbose, and optional, but I like to watch. If you already have cvscommand and want to upgrade to the author's latest vcscommand (supporting SVN, git, et al), you must first delete the old installation. Something like this will mechanize that: unzip -qql cvscommand.zip | awk "{ print \"$HOME/.vim/\" \$NF }" | xargs rm -i Awkward shell quoting. In awk, NF is the field count, and $NF references the field at that position. If that was 3, then $NF ~~ $3. The rm -i makes you say you want it. I was sure there was a simpler way to list just the files in unzip. Maybe I was thinking of tar -tzf. ## WPrefs missing icons Tried adding every goddamned path in the system? Don't. Hand --gnustepdir=/usr/local/GNUstep to configure. Launch WPrefs with its full path in /usr/local/GNUstep/Applications/WPrefs It thusly finds its stuff. ## windowmaker xinerama twinview dual head ## alt-tab icon between monitors ## second monitor hdtv is HEAD0 but should be HEAD1 ## want my desktop 17" LCD to be the main monitor ## Xinerama seems to be the cause of the disgusting alt-tab window placement. ## FUCK IT ALL IT'S THREE AM GODDAMNIT OCD DESKTOP BULLSHIT ASSHOLE ## finding directories with certain filetypes within them 2008-07-12 23:43:41 :: ~ quinn@debian$ find /usr/local/ -regex '.*\(tiff\|png\|xpm\)$' -printf "%h\n" | sort | uniq /usr/local/share/WINGs /usr/local/share/WPrefs /usr/local/share/WPrefs/tiff /usr/local/share/WindowMaker/Icons /usr/local/share/WindowMaker/Pixmaps /usr/local/share/WindowMaker/Themes/Checker.themed /usr/local/share/videotrans ## because my hand-rolled wmaker is f-ing me in the b :( ## wow, did you know you could ctrl-button2 on an xterm while in vi/vim/any-alt-screen-using-app, uncheck "Show Alternate Screen", see what was in your shell and possibly select it, then recheck it and go back to editing? Well, you can. ## Handy pipeline for culling the chaff of xev xev | grep -FA5 'KeyPress event' ## Awesome overview of entering unicode characters in Linux http://svn.openfoundry.org/pugs/docs/quickref/unicode ## Emacs: (global-set-key [?\C-#] 'ucs-insert) ## emacs file local variables ## marking a file to use a certain emacs mode http://w3.pppl.gov/info/emacs/File_Variables.html ## first, first non-blank, first after #!shebang line: ### -*- mode: shell-script; -*- ## anywhere, but usually at the end: ### ;;; Local Variables: *** ### ;;; mode: shell-script; *** ### ;;; End: *** ## replace ### with the comment sequence for the script you're editing http://w3.pppl.gov/info/emacs/Choosing_Modes.html ## xwin introspection xwininfo -id $WINDOWID xprop -id $WINDOWID for a good time, type xprop -spy -root ## italics in xterm ## http://lists.freedesktop.org/pipermail/xorg/2007-May/024439.html xterm -xrm 'XTerm*faceName: xft:monospace:pixelsize=16' -xrm 'XTerm*faceNameDoublesize: fzsongti' -xrm 'XTerm*italicULMode: on' -xrm 'XTerm.termName: xterm-256color' -e man man ## Seems only italicULMode is necessary in my custom environment xterm -xrm 'XTerm*italicULMode: on' -e man man ## using fucking perldoc for multiline comments =begin NOTES dev notes =cut ## "NOTES" must be a single word. ## No, quoting doesn't allow multiple words. ## Unintuitively, you don't finish a =begin block with =end. ## toggle turn off search term highlighting in less ESC-u ## vista share cups printer windows to linux printing samba cups ## Well, fuck Jesus. CUPS actually worked on the first try here. ## Thanks, Apple? Copy-pasted below in case the article goes away. http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1250451,00.html 1. Set up the printer on your Linux machine and share it using CUPS via port 631. The exact method for doing this varies between distributions, so check with your distro's documentation. The end result should be a working printer, and a running CUPS service which you can access through your Web browser at http://localhost:631 from the Linux system. 2. Using the CUPS Web interface, go to the Printers tab and make a note of the printer name, which is typically the Description: line). You can do this from the Windows machine where you plan to set up printer support. 3. In Windows, go to Control Panel | Printers and click onAdd a printer. 4. When prompted for a printer location, select Network printer, in the Add Printer Wizard. 5. When prompted for the network location, select URL and use the following URL format: http://:631/printers/. For instance, if the Linux host has a DNS name of linuxbox and the printer is named LaserJet-5, you'd use http://linuxbox:631/printers/LaserJet-5 as the URL. 6. When asked for a printer driver, select Generic as the manufacturer and MS Publisher Imagesetter as the driver. In truth, any generic PostScript driver will do, but this works as well as any. 7. When finished with the wizard, print a test page to make sure everything is set up correctly. ## Didn't seem to want to do double-sided on our Canon Pixma iP4300, but maybe it would if we'd used the specific Canon model and driver? Don't care now. ## Also, on my CUPs, the printer name is the printer name, the clickable title. Not the description. ## The only useful answer to why my kernel doesn't have /dev/ttyS* devices. http://www.linuxquestions.org/questions/slackware-14/udev.rules-and-ttys0-device-644237/ ## Lots of great advice from user "tobyl" there. I salute you, sir. $ sudo modprobe 8250 ## voila ## You'd think the module would be serial8250 or somesuch, huh? You know, so you could discover it intuitively with a grep. ## /dev/tts /dev/ttys /etc/udev/udev.rules fuck all that and modprobe 8250 ## and stick it in /etc/modules ## Another good thread: http://www.linuxquestions.org/questions/linux-software-2/does-udev-make-devttys0-376209/ ## Huh. I guess you can have your --color and less it, too. 2008-06-28 10:33:08 :: /etc/udev quinn@debian$ grep -Fri --color=always tty rules.d/ | less ## cpan auto follow dependencies dependancies perldoc ExtUtils::MakeMaker o conf export PERL_MM_USE_DEFAULT=1 ## bash history single quotes within single quoted string 2008-06-26 11:35:52 :: ~ rons@toolbox$ echo $'Can I single-quote \'foo\' within single-quotes like this, without interpolation of $SHELL variables? Yes, I can\! But I had to quote that bang. Fucking history.' ## web developer toolbar customize ## too many icons force too wide a page http://chrispederick.com/work/web-developer/faq/#buttons ## or disable the toolbar and just use the context menu ## I guess I'm an idiot for thinking there should be a getq complement to setq ## Or maybe just a `get'? Yeah, I'm just kinda dumb sometimes. (set 'foo "a string of foo") ;; traditional set (setq foo "a string of foo") ;; set-quoted ## The variable is just another symbol, like a function (print foo) ;; C-j in *scratch* shows "a string of foo" ## Emacs rcs vc windows win32 ms w32 xemacs ntemacs # apply: Searching for program: no such file or directory, admin # Incredibly hard to actually find a fix for this stupid niggling bullshit issue, but here it is: M-x customize-variable exec-path ## Add /bin, /usr/bin, /usr/local/bin. I added them to the top to take precedence over bullshit MS "Services For Windows" shitnut ripoff commands. ## More debugging: (executable-find "rcs") ## OH FUCK CHRIST it still doesn't work and I'm not going to waste another x hours trying to do it ## The above SEEMS as if it should work. Fuck it all. ## ok ... so i did waste time ## My problem? It was looking for SCCS even though RCS came first in the handled backends list. M-x customize-group vc ## Remove SCCS from the fucking list god-dammit ## Fucking Cygwin/X11/Emacs font not playing well with Xft /usr/X11R6/lib/X11/fonts/TTF $ cp ~/.fonts/*.ttf ~/.fonts/Vista/Consolas/consola*.ttf . $ mkfontdir $ mkfontscale $ xset fp rehash ## Proper X font descriptor should be in updated fonts.scale ## (set-default-font "-microsoft-consolas-medium-r-normal-*-14-0-0-0-m-0-iso8859-1") ## mount: only root can do that 20080622-2213 :: ~/mnt quinn@debian$ mount /dev/sdd1 jumpdrive/ mount: only root can do that 20080622-2214 :: ~/mnt quinn@debian$ sudo mount -o "uid=$UID" /dev/sdd1 jumpdrive/ 20080622-2215 :: ~/mnt quinn@debian$ umount jumpdrive/ umount: /home/quinn/mnt/jumpdrive is not in the fstab (and you are not root) 20080622-2215 :: ~/mnt quinn@debian$ sudo umount jumpdrive/ ## Eh, I guess I can live with sudo umount ## And yes, I did try -o user,users; they seem to be respected only from fstab ## command line package installation on cygwin ## apt-get for cygwin! AWESOME http://stephenjungels.com/jungels.net/projects/apt-cyg/ ## Except it doesn't upgrade, but eh ## psst -- it would upgrade, if you had the packages locally ## maybe rsync to the cygwin repo each night? ## as-is, run setup.exe, set all to keep (optional?), find the packages you want, click the Keep until it changes to Experimental or somesuch (watch the version change in the UI), then Next ## adding a key for a debian apt repo W: GPG error: http://emacs.orebokech.com sid Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A20376BEC03C56DF W: You may want to run apt-get update to correct these problems 20080618-2301 :: ~ quinn@debian$ finger rfrancoise/key@db.debian.org | sudo apt-key add - OK ## wow I can finally play HD x264 1080p on my x2 Opteron 165 ## even Monsters Inc. when they get expelled and all the snow on the screen usually knocks everything out of sync ## vlc xine mplayer - mplayer has the config options, see here: 20080601-1908 :: /data/video quinn@debian$ cat ~/.mplayer/config # Write your default config options here! ao=alsa:device=surround51 #lavdopts=threads=2:fast:skiploopfilter=all lavdopts=threads=2:skiploopfilter=all #vo=gl #ac=hwdts geometry=+2000+200 ## audio output forced to alsa, using surround51 to fill all speakers ## lavdopts makes it use 2 threads; I think that made the big difference ## messed with different vo, but xv (or xvmc) doesn't seem to make much difference on Linux, as Purevideo and motion compensation don't seem supported by the drivers nvidia gives us ## the geometry entry is just to make sure it shows up on my tv and not my lcd, and for some reason gives me a titlebar (whereas defaults do not); from there it's just an `f' to fill the screen with 1080p goodness ## load average while playing: 19:12:43 up 1 day, 7:56, 6 users, load average: 0.57, 0.69, 0.39 ## 20080531-1118 :: /data/video/HD quinn@debian$ vlc foo.mkv VLC media player 0.8.6e Janus [00000282] main decoder error: no suitable decoder module for fourcc `avc1'. VLC probably does not support this sound or video format. ## 20080531-1138 :: ~ quinn@debian$ vlc -vvv --list --no-plugins-cache ... ## [00000001] main private warning: cannot load module `/usr/lib/vlc/codec/libffmpeg_plugin.so' (/usr/lib/vlc/codec/libffmpeg_plugin.so: undefined symbol: img_resample) ... mkdir ~/tmp/vlc-nox && cd ~/tmp/vlc-nox wget http://ftp.vectranet.pl/debian/pool/main/v/vlc/vlc-nox_0.8.6.e-2.2_i386.deb dpkg --extract vlc-nox_0.8.6.e-2.2_i386.deb sudo cp tmp/usr/lib/vlc/codec/libffmpeg_plugin.so /usr/lib/vlc/codec/libffmpeg_plugin.so sudo ldconfig -v ## xmame no sound pacman.6e NOT FOUND pacman.6f NOT FOUND pacman.6h NOT FOUND pacman.6j NOT FOUND u5 NOT FOUND u6 NOT FOUND u7 NOT FOUND 5e NOT FOUND 5f NOT FOUND 82s123.7f NOT FOUND 82s126.4a NOT FOUND 82s126.1m NOT FOUND 82s126.3m NOT FOUND ## 1. Make sure the directory holding your *.zip rom is in your rompath in one of the xmamerc files ## 2. Make sure you have the latest roms, wherever they are ## 3. In Debian, use xmame-sdl, not xmame-x11. The latter doesn't seem to do sound properly. ## 4. Scale 3x for HDTV: xmame -s 3 dkong ## xserver-xorg-core nvidia libglx ## debian overwrites proprietary nvidia glx driver ## ERROR: File '/usr/lib/xorg/modules/extensions/libglx.so' is not a symbolic link. ## I had been just reinstalling the nvidia drivers, but it's just a matter of restoring the link: http://ubuntuforums.org/showthread.php?t=671091 $ cd /usr/lib/xorg/modules/extensions/ $ sudo ln -s libglx.so.100.14.11 libglx.so ## Dunno if the following diversions work sudo dpkg-divert --add /usr/lib/xorg/modules/extensions/libglx.so sudo dpkg-divert --remove /usr/lib/xorg/modules/extensions/libglx.so ## usb stops working debian works then not works; boots then stops; unplug, you're screwed removing noapic from bootloader (e.g. /boot/grub/menu.lst) seemed to work ## dick attitude, but good tips for selling on ebay ## http://reddit.com/info/6inwx/comments/ vulgate 49 points 6 hours ago [-] The author of this article is pretty clueless about how to use ebay as a seller. If you want successful actions you actually have to put in some work and not just "throw it up on ebay". 1. List any highly competitive, high-price item as a featured listing. 2. Change bidder settings to require all bidders have a Paypal account. 3. Babysit your action for the last 5 minutes using ebay's cancel bid form to cancel bids from users with low/no feedback. 4. Use ebay's block bidder form to permanently block these bidders from bidding again. 5. Review auctions for the same item ending near yours. Are they all being bought by the same user? Block him. Following this process will save you from dealing with 95% of scammers/non-paying bidders on ebay. ## http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469221 database /var/lib/apt/listchanges.db failed to load. $ sudo apt-get install db4.5-util db4.6-util $ db4.6_dump /var/lib/apt/listchanges.db | db4.5_load a.db $ sudo mv a.db /var/lib/apt/listchanges.db ## vim7 backspace insert mode doesn't work set backspace=1 ## if you want to allow backspacing over where insert began: set backspace=2 ## screen backspace problems was setting TERM=xterm-color if it was xterm-debian when carried over bashrc from work; ditched that line in my bashrc scripts and works fine now ## Thanks to http://ubuntuforums.org/showthread.php?t=90910&page=2 ## webalizer problems Warning: Truncating oversized hostname ## Wha? Hostname too big? How can that be?? ## It can't be. Look at the fucking log file, shitnuts. ## Or do webalizer -d first, and see : full added to the error. ## Your log file is full of lines consisting of "full", from the log format you defined in your old httpd.conf but not in the new one, switched to debian Apache2 sites-available. ## I still don't know why "full" is "oversized," but eh. ## no sound on zsnes http://ubuntuforums.org/showthread.php?t=8840 sudo apt-get install libsdl1.2debian-all zsnes -ad sdl ## uh why am i suddenly getting assloads of spam? spamassassin procmailrc spamd try sudo /etc/init.d/spamassassin restart ## print some field if some other field matches a regex rons@devapp03$ head imp_log | awk -F'\t' '{ print $4 }' | awk -F'^' '{ if ( $8 ~ /US/ ) { print $8 " => " $0 } }' ## even better, losing the superfluous `if' since awk is PATTERN BLOCK rons@devapp03$ head -100 imp_log | awk -F'\t' '{ print $4 }' | awk -F'^' ' $15 ~ /plain/ { print "hit from " $8 " used format " $15 } ' ## You might think the following prints field 8 where field 6 matches "USA", but it only does so when matching 99325. The begin block is there to better illustrate what is usually a more subtle mistake, e.g. using barewords as regex. Surround regex in slashes. rons@devapp03$ head imp_log | awk -F'\t' '{ print $4 }' | awk -F'^' 'BEGIN { USA=99325 } $6 ~ USA { print $8 " => " $0 } ' ## print lines longer than 80 characters rons@devapp03$ head imp_log | awk '{ if (length > 80) print $0 } ' ## or grep, of course rons@devapp03$ head imp_log | grep -E '^.{80,}$' ## but the usefulness of awk is printing lines with a col than is longer than x rons@devapp03$ head imp_log | awk '{ if (length($2) > 80) print $0 } ' ## finding the primary key of a table in Oracle select column_name from user_constraints uc join user_cons_columns ucc on (uc.constraint_name=ucc.constraint_name) where uc.table_name='TABNAME' and uc.constraint_type='P'\G ## xorg double-click single click in xorg registers as a double click # Either add this to the ServerFlags section: Option "AutoAddDevices" "false" # Or InputDevice "DefaultMouse" "CorePointer" # To every input device ## http://groups.google.com/group/linux.gentoo.user/browse_thread/thread/0d472e692d9e78b7 ## fixing avi index mencoder -oac copy -ovc copy avi_without_index.avi -o avi_fixed.avi ## Interpolating piping dumping escaping files with spaces and other special characters to a command cat random-britcoms.sh ROTATABLES='Black*/ Garth*/ *Boosh/ *Ted/' find $ROTATABLES -name '*.avi' -exec vlc --random {} + find $ROTATABLES -name '*.avi' -exec vlc --random {} \; ## DBD::mysql root requires a running server and write permissions wrong default-table-type=MEMORY in my.cnf; change to MYISAM mysql> grant all on test.* to 'test'@'%' identified by 'password'; [root DBD-mysql-4.006-ivaUry]# perl Makefile.PL --testuser=test --testpassword=password ## flushing appending bash history from current session back to the ## ~/.history file, then reading those new lines into another session history -a ## append current history to disk history -n ## read in new history ## Useful when you're switching work from one screen to another and ## want to keep your commands. ## Remove "lock-screen" binding, useful where root password is not known ## and fingers sometimes slip and lock the screen bind x bind ^x ## List of all digraphs enterable in screen http://www.pthree.org/2006/08/11/screen-digraphs/ ## Renumber current screen window number to X ## (We added stats_06 recently and I wanted it to be window 6 ## in my screen session) C-a :number X ## Use an alternate screenrc; e.g. to set up a custom workspace screen -c ~/.screenrc-log-terms ## `password' in your .screenrc on a shared system is a ## simple way to prevent others from accidentally resuming your session password < output of perl -e 'print crypt("password", rand() * 1000);' > ## Kill all windows and terminate screen. I'd been "exit"-ing from all my ## window shells. Duh. C-a :quit ## Making thumbnails of tjbs for fn in Dagwood_All_In_a_Days_Work_p[0-9].jpg ; do convert $fn -scale 640x `echo $fn | sed 's/_p\(.\)/-\1/'` ; done for fn in Dagwood_All_In_a_Days_Work_p[0-9].jpg ; do convert $fn -scale 320x sm_`echo $fn | sed 's/_p\(.\)/-\1/'` ; done ## good dvdrip settings Settled on these non-defaults: Container options: AVI container Video options: xvid (xvid4) video codec Video options: Deinterlace mode: Smart Deinterlacing Video bitrate calculation: Manually: 1024 kbit/s General options: Process nice level: ~10 (however much system load you can bear) General options: Use PSU core (although that's usually set with an NTSC and multiple streams) ## encodes a ~30m video (no subs/features, stereo, TV res) in about an hour on my dual core AMD Opteron 165 ## my ~/.screenrc, opening my standard sessions in the proper directories defscrollback 9999 vbell off nethack on hardstatus on hardstatus alwayslastline hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d " ignorecase on termcapinfo xterm* OL=10000 termcapinfo xterm*|xs|rxvt ti@:te@ ## If this were a workspace file, put above in ~/.screenrc and only ## include the custom stuff below. #source $HOME/.screenrc #sessionname quinn-stdenv #password 41U8xQUzJPgqE chdir $HOME screen -t bash 0 bash chdir $HOME/staging/ads/apache/htdocs screen -t htdocs 1 bash chdir $HOME/staging/ads/lib screen -t lib 2 bash chdir $HOME/staging/ads/apache screen -t apache 3 bash chdir $HOME screen -t db 4 bash chdir $HOME/checkouts screen -t checkouts 5 bash chdir $HOME select 0 ## winamp playlist format $if(%artist%,%artist% :: "%title%" from %album%,%filename%) ## iceweasel firefox mozilla images gone vanished missing dammit ## somehow the below got into my prefs.js, and removing it fixed things user_pref("permissions.default.image", 2); ## well, fixed some things. png from reddit still weren't showing up. ## deleting sessionstore.js in my profile seemd to fix that ## "Remote peer is no longer responding" vpn cisco linux http://www.uoguelph.ca/ccs/internet/faq/index.cfm?fuseaction=faq.showFaq&faqId=72#332 ( I set TunnelingMode=1 in my Profiles/*.pcf file and it worked ) ## Unique lines from raw input lowercased and chomped my %lines; @lines = grep { not exists $dns{$_} and $dns{$_} = $_ } map { chomp; lc $_ } @lines; ## Or use List::MoreUtils qw/uniq/ for the uniq part ## Count/sum input stdin standard input | awk '{ sum += $1 } END { print sum } ## Same, but for the second colon-delimited column | awk -F: '{ sum += $2 } END { print sum } ## This stymied me for a while, as I was not properly applying the dictum ## that uniq is only as good as your sort ## Sort folding/ignoring case, uniq ignoring case, word count. sort -f to_be_deleted.txt | uniq -i | wc -l ## Holy fuck. ## http://answers.google.com/answers/threadview?id=467321 Subject: Re: Getting shot by a handgun From: opiodergics-ga on 10 Mar 2005 02:36 PST My name is Jesse (online name Danny Bishop). I myself was shot--in the chest--on November 27th, 1994, at point-blank range with a .22" magnum revolver (single-action, convertable--to.22" LR with alternate cylinder). The bullet was likely 40-grain; the type: .224 caliber high velocity (WMR--Winchester Magnum Rimfire, MAxiMag), with a nominal muzzle velocity of 1,550 fps, from a likely 6.5" handgun barrel (applied pressure, point blank: 324 foot pounds per sq. inch). I can tell you--not from watching it happen--but from actually experiencing it, exactly what it was like. First of all, there was the most incredible, shocking impact you could ever imagine--equivalent with having an M-80 (quarter stick of dynmamite) go off in your shirt pocket--and I can tell you, I was sent reeling. It felt like I was thrown back good 2-to-5 feet or more, as my legs gave out on me. There was simultaneously, a feeling like a bomb went off INSIDE of my chest, and that of being jack-hammered through my chest wall--all of this, all at once. Then, everything semed to go into slow motion, as undoubtedly, a large amount of adrenaline was released from my adrenal medulla, causing my central nervous system synaopses to fire faster--like a high-speed camera, producing a slow motion effect. I was later told that the bullet (not surprisingly) ricocheted around in my chest like a pinball, first penetrating my entire chest mass, fracture and bounce off my left scapula, hurle back through my chest again, fracture a rib, and then bounce back through, trace a path around another rib (and puncture the pleural lining of my left lung), next flying straight into my spinal collumn, fracturing my T-9 and T-10 thoracic vertebrae, and transecting my spinal cord (I am now paraplegic). Feeling all of this, all at once, was equivalent roughly, I suppose, was like being shot three times or more, not to mention that waves of paresthesia (tingling) echoed and serged throughout my body. My feeling in my legs was gone, just like that, at the same time I was flying backward--into a chair and a desk. Oddly, at that moment, I was hell-bent on protecting my head. Finally, laying on the ground in that room, only a good 30 seconds or so post-impact, I felt my left lung begin to squeeze, and my breaths were agonizingly painful and teribly short. Every breath was a knife turning in my lung. Then, I began to loose my vision--like white-out erasing my visual field) as I began to go into hypo-volemic shock (low blood volume). I lost my ability to see temporarily, and could not tell what was going on around me. Then I passed out for what was probably thirty minutes. It was a darn miracle that I did not die, as a doctor later told me, the bullet almost 'curved' around my heart, within a centimeter or two of hitting it or a major blooc vessel (it could have easily hit me right in the inferior, or even the superior, veina cava, near the heart muscle, in which case death would have followed in 1-2 minutes or even fewer, and unconsciousness in thirty seconds or less. As to the question: 'Does a person writhe in agony?'--No, I personally did not WRITHE in agony, like I had been lit on fire, but I was instantly thrown into the most excruciating, truly agonizing experience of pain I have ever known--and I have had chronic spinal pain ever since, being on prescriptions such as morphine sulfate, Dilaudid (hydromorphone HCl) and levorphanol tartrate. The reason I was not WRITHING in agony is I was knocked into a state of indescribable shock, and was incapable of much, if any movement. However, after waking up thirty minutes or so after passing out, I managed to sit up, despite my paralysis, and I still remember--even though my pain had deminished somewhat at that point, due... undoubtedly, to endorphin release--the feeling of warm blood pouring down my shirt, and adding tot he pool of blood underneath me, the veinous flow coming directly from the now hot, burning wound on, and in, my chest. I laid there for about four more hours before someone found me--I could barely whisper, much less yell, due to my 16% or so lung capacity, and as it turns out, nearly two liters... the amount of fluid in a large soda pop bottle, on my left lung... like a refridgerator crushing the left side of my chest--and by the time the paramedics got there, I was in utter shock. I was also beginning to hurt so badly again that no words can describe it. It was horrible. Hospitalization was no picnic either, let me tell you. Even after draining off the fluid once with a chest tube--a rubber catheter inserted through your ribs, into the pleural lining of your lung, they gave me what is known as positive-pressure respiratory treatment, and the inflation of my lung popped a blood vessel and caused additional pleurasy, and another 'hemothorax'. Originally, I also had air trapped in my chest--a pneumothorax, which they had to releave with a cannula. That hurt too! After two additional chest tubes and having to bear down to force the reddish.-brown fluid out of my chest cavity and into a collector, I finally regained around 98% lung capacity, amazingly, and then--one month after arriving at Santa Clara Valley Medical Center in the Bay Area, California, I began Spinal Cord Injury Rehabilitation. I had to learn to deal with having little control over my bowels, having to learn how to do a 'bowel program' with suppositories, and the fact that I had no feeling in my groin--meaning no future physical sexual feelings, and no ability to masturbate--and still having a huge sex drive... how do you like that?--I had almost no way to relieve tension, escept exciesize, for endorphin release, and taking my pain meds. What made it worse was, before I was shot, at age 16, I had never had sex, and never had a girlfriend, eventhough I can say honestly I am, and have long been, a very attractive man. And even though I have had half a dozen girlfriends now, ten years later, dating was no fun... having to explain my limitations. In October of 2003 however, I had one of the happiest days of my life, howver, when I married my wife, Jennifer. My dad was my best man. However, even being married, and having a willing sexual partner, I find myself doing almost all of the pleasing, and I suppose I will never know what it is like to be inside a woman--to actually FEEL it at all--or orgasm therein. Any of you out there who have had there experience, count yourselves as lucky. Unless there's sex in there Hereafter--and I hope there is... with my wife, I'm talking, right now--I suppose I will never know what sex is like. You have no idea how angry that makes me, and how much pent up sexual frustratipn a guy has after a decade of no orgasmic release. Hey, that may sound shallow, but TRY IT SOME TIME. It's funny, though. So many people, when finding out I was shot in the chest, ask the same question. "Did it... hurt?" Um, yeah, it was the most agonizing thing I ever experience, and could ever imagine experiencing, and so I can definately say, 'It wasn't like a massage.' But hey, I understand what fascination people have with pain and extreme injury. After all, before I was shot, watching action movies, I wondered what it was like. Some people have imediate endorphine releases and never have such pain symptomatology. I remember lying in bed, in the hospital, with this bloddy patch over theupper, left quadrant of my chest, thinking, "Wow. Was I really shot? Am I really shot??" it's hard to believe, when it happens to you. And assuming, if you will, that there's an Afterlife, I bet people, being delivered the news that they are dead, think/say to themselves, "Wow. Am I really dead? Dead?" Anyway, I won't bore you any further. I'll just leave you with, "Being shot--does it... hurt?" Yes, sir-ee, my friend. It most certainly... does. So now you know, like I have... for ten years. : ) Peace, Jesse ('Danny B.') ## autofs, sansa, whatever http://www.debian-administration.org/articles/127 apt-get install autofs echo "/var/autofs/removable /etc/auto.removable --timeout=2" >> /etc/auto.master cat << EOT >> /etc/auto.removable card_sd -fstype=vfat,rw,gid=1003,umask=002 :/dev/card_sd1 sansa_m240 -fstype=vfat,rw,uid=1000,gid=1003,umask=002 :/dev/sansa_m240_1 sansa_e250 -fstype=vfat,rw,uid=1001,gid=1003,umask=002 :/dev/sansa_e250_1 EOT sudo ln -s /var/autofs/removable/card_sd /media/sd sudo ln -s /var/autofs/removable/sansa_m240 /media/sansa_m240 sudo ln -s /var/autofs/removable/sansa_e250 /media/sansa_e250 make sure devices are in mass-storage mode, e.g. MSC on Sansa e250 reboot if that doesn't work ## Opening up multiple screen windows within a session ## Screen startup one-liner multiple sessions within screen ## These work; I think because they don't quote the "ssh $hn" command, and ## they need to wait between commands for some goddamned reason sn="rons-stats" ; screen -dmS $sn ; for ((i=1; i<=5; i++)) ; do hn="`printf 'stats_%2.2d' $i`"; screen -S "$sn" -X screen -t "$hn" ssh $hn ; echo " ... waiting ... "; sleep 10 ; done ; sn="rons-moniker" ; screen -dmS $sn ; for hn in mon_w01 mon_w02 ; do echo "$hn" ; screen -S "$sn" -X screen -t "logs@$hn" ssh $hn tail -F /log/logs/error_log ; echo " ... waiting ... "; sleep 10 ; screen -S "$sn" -X screen -t "bash@$hn" ssh $hn ; done ; screen -r $sn ## perl convert seconds to hours, minutes, and seconds Short Answer: Time::Duration Long Answer: http://www.perlmonks.org/?node_id=101511 ## firefox tweaks, disable tab scrolling, more browser.tabs.tabMinWidth = 0 browser.sessionstore.enabled = true browser.startup.page = 3 browser.tabs.closeButtons = 3 ## using xargs to quote filenames with spaces ls -t1 incoming/ | head -3 | xargs -d'\n' -I{} echo '"{}"' ## or simpler, with ls -Q ls -Qt1 incoming/ | head -3 ## yasql yasqlrc yasql_history history does not preserve between sessions, lines scroll horizontally instead of allowing multi-line input cpan install Term::ReadLine::Gnu ## I cannot find Black Death Zware Shag anywhere anymore :( Black Death shag is een direkt protest van rokers tegen de sterk toenemende intolerante anti-rookbeweging. Black Death rokers willen hun recht behouden en niet door arbitraire wettige maatregelen sociaal gedescrimineerd worden. Black Death rokers houden er de volgende principes op na: 1. Roken is een menselijk recht en moet als zodanig gerespecteerd worden overeenkomstig de artikelen der mensenrechten van de Verenigde Naties. 2. De keuze om te roken moet als onderdeel van een grotere keuzereeks in het leven gerespecteerd worden. Als zodanig kan geen enkel land zich hierin mengen. 3. Het attaqueren van de rechten van de burgers, die roken, schept direckt een precedent voot verder ingrijpen in de persoonlijke vrijheid en het gedrag van alle burgers. 4. De relatie tussen rokers en niet-rokers moet gebaseerd worden op consideratie, hoffelijkheid, tolerantie, wederzijds respect en vrijheid van keuze en niet op gebodsbepalingen of landelijke verorderingen en intolerantie. Black Death rokers willen in vrede blijven genieten van hun recht om te roken!! Black Death shag are direkt protest of smokers against strongly increasing intolerant anti-rookbeweging. Black Death smokers want preserve their right and by arbitrary legitimate measures social gedescrimineerd do not become. Black Death smokers keep the following principles after: 1. Smoke a human right is and must as such be respected in accordance with Article of the human rights of the United Nations. 2. The choice to must smoke as a component of a larger choice range in living be respected. As such absolutely no country can mix himself. 3. Attacking the rights of the citizens, who smoke, creates direckt a precedent voot further intervenes in the personal freedom and the behaviour of all citizens. 4. The relation between smokers and non-smoker must be based on consideration, courtesy, tolerantie, reciprocal respect and freedom of choice and not on order provisions or rural verorderingen and intolerantie. Black Death smokers want continue enjoy in peace their right to smoke!! ## sort of a du for installed debian packages ## better than dpkg --list dpkg-query --show --showformat '${Installed-Size;-8} ${Version;16} ${Package}\n' | sort -n ## call anyone, arbitrary caller-id, computer voice speaks http://www.ospenterprises.com/phone/index.htm ## naked babies attacking angry man statue ## angry man fighting off flying babies statue http://en.wikipedia.com/wiki/Vigeland_Park ## difference between a url, urn, and uri ## from http://www.pierobon.org/iis/url.htm The difference between the three is subtle. An URL refers to a Web page, including the scheme, but without a name location. An URN may also include the location of a code fragment. An URI refers to a Web page including the location of the code fragment, if one exists, and the scheme. URL http://www.pierobon.org/iis/review1.htm URN www.pierobon.org/iis/review1.htm#one URI http://www.pierobon.org/iis/review1.htm.html#one ## nvidia freeze switching x sessions console ## time source seems to be instable or some driver is hogging interupts nvidia add clock=pit to kernel boot options eg. in /boot/grub/menu.lst ## Oxford top ten nouns http://news.bbc.co.uk/1/hi/uk/5104778.stm TOP 10 NOUNS 1 Time 2 Person 3 Year 4 Way 5 Day 6 Thing 7 Man 8 World 9 Life 10 Hand ## .cvsignore directories cvs ignore CVS_IGNORE folders wildcards fucking echo '*' > directory_to_ignore/.cvsignore ## adding directory_to_ignore to ~/.cvsignore does not seem to work ## More xargs fun, overloading it to s/\n/ /; ls -1 | xargs --replace=% basename % .txt | xargs ## Adding up numeric lines ps auxww | awk '{ print $5 }' | grep -v [A-Z] | xargs | sed 's/ /+/g;' | bc ## Latest iteration of my system default bash settings ----------/etc/bash.bashrc---------- # System-wide .bashrc file for interactive bash(1) shells. # To enable the settings / commands in this file for login shells as well, # this file has to be sourced in /etc/profile. # If not running interactively, don't do anything [ -z "$PS1" ] && return # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi ## THE PROMPT # enable color support of ls and also add handy aliases if [ "$TERM" != "dumb" ]; then ## Color variables for the prompt. NONE='\033[0m' GRAY='\033[1;30m' RED='\033[1;31m' GREEN='\033[1;32m' YELLOW='\033[1;33m' BLUE='\033[1;34m' CYAN='\033[1;36m' WHITE='\033[1;37m' PSUCOLOR=$GRAY ## `U'ser@host color PSWCOLOR=$WHITE ## `W'orking directory color PSJCOLOR=$RED ## `J'ailed chroot color eval "`dircolors -b`" alias ls='ls --color=auto' PS1=" \n \[$PSJCOLOR\]${debian_chroot:+($debian_chroot)}" PS1="$PS1\[$PSWCOLOR\]\w \n\[$PSUCOLOR\] \u@\h\\$ \[$NONE\]" else PS1="\n${debian_chroot:+($debian_chroot)}\w\n\u@\h\\$ " fi alias ll='ls -lF' # safety aliases alias rm='rm -i' alias mv='mv -i' alias cp='cp -i' alias ll='ls -l' # enable bash completion in interactive shells if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi ----------/etc/bash.bashrc---------- ----------/etc/profile---------- # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" PATH="$PATH:/usr/bin/X11:/usr/local/java/bin" PATH="$PATH:$HOME/bin" export PATH ## Umask 066 rw------- (subtract from 666) ## Umask 022 rw-r--r-- ## Umask 002 rw-rw-r-- umask 022 ## Enable Xft2 in QT applications. export QT_XFT=1 ## Default scanner for SANE export SANE_DEFAULT_DEVICE="plustek:/dev/usbscanner" ----------/etc/profile---------- ## FINALLY MY FONTS LOOK GOOD ## I use this to force :0 and vt07 for myself; my wife uses :1 and vt08 ## -dpi 80 is the important part re:fonts; it makes them look as I like them alias startx='ssh-agent startx -- :0 vt07 -dpi 80' ## This part forces everything to use a proper fontconfig/xft setting http://gentoo-wiki.com/HOWTO_Xorg_and_Fonts#Example_for_LCD_Monitors ----------cut---------- Courier Bitstream Vera Sans Mono rgb true true true hintmedium medium false false ----------cut---------- ## In Mozilla, just System Settings for DPI after the above ## nforce 430 431 nvnet forcedeth MSI K82GM2-FID AMIBIOS 3.0 11/18/05 Set Onboard LAN to "Pin Setup" in BIOS. Fucked with a gazillion settings. The "Pin Setup" finally did it, using forcedeth and NOT nvnet. http://www.nvnews.net/vbulletin/showthread.php?t=57791&page=24 Tried adding "noapic nolapic acpi=off" to /boot/grub/menu.lst kernel params, but that really doesn't do anything. ## Fucking APIC: Advanced BIOS Features | IOAPIC Function | Disabled - Works Advanced BIOS Features | IOAPIC Function | Enabled - Fails, regardless of MPS Table Version. NETDEV WATCHDOG times out. ## AZALIA Audio Audio required compiling all of the ALSA 1.0.11rc3 packages, then running its alsaconf, and using snd_hda_intel. Finally works like a champ. ## Sensors i2c-isa - standard i2c interface stuff w83627ehf - Under Device Drivers | Hardware Monitoring in kernel menuconfig ## the following url got me on the write track, ## but sensors-detect gimme the goods http://www.lowlevel.cz/log/pivot/entry.php?id=38 ## wmctrl rocks wmctrl -l ## list windows wmctrl -r 'Firefox Pref' -e 0,0,0,0,0 ## move win w/matching title to top left ## vim mason syntax highlighting syntax mason vim fail ## lazy aggressive minlines fromstart ## try adding this to your ~/.vim/filetype.vim autocmd BufEnter * syntax sync fromstart ## miscellaneous useful bash tips export CDPATH="$HOME/staging/mason/apache/" ## like $PATH, but for relative cd cd - ## back to previous directory -- awesome! disown -rh ## before logging out of a session w/jobs you wish to keep history -d <#> ## delete a history item history -an ## append ongoing history, read in new history since login shopt -s extglob If the extglob shell option is enabled using the shopt builtin, several extended pattern matching operators are recognized. In the following description, a pattern-list is a list of one or more patterns separated by a |. Composite patterns may be formed using one or more of the fol- lowing sub-patterns: ?(pattern-list) Matches zero or one occurrence of the given patterns *(pattern-list) Matches zero or more occurrences of the given patterns +(pattern-list) Matches one or more occurrences of the given patterns @(pattern-list) Matches exactly one of the given patterns !(pattern-list) Matches anything except one of the given patterns shopt -u extglob ## Outlook stripping extra linebreaks ## Extra line breaks in this message have been removed Tools|Options|Preferences|EmailOptions Uncheck remove line breaks dammit ## fullscreen x11 output twinview nvidia tv svideo output Preferences|OutputModules|X11(Advanced) ChooseScreenToBeUsedForFullScreenMode => 1 ## ViewSonic VA912b LCD DFP xorg.conf XF86Config Linux nvidia modelines Section "Monitor" Identifier "ViewSonic VA912b" HorizSync 30-82 VertRefresh 50-85 DisplaySize 375.92 302.26 Option "DPMS" EndSection ## perldoc ESC 1m ANSI ASCII bold emulation term strange characters perldoc -t ## To make perldoc play nice with less export LESSCHARSET="latin1" export LESS="-R" ## perl word boundary bounded word bounded matches word boundaries ## because i keep forgetting that % is MOO regex: \bword\b ## there is no \ for word boundaries in perl ## get bc to do floating point math bc precision scale floats dammit echo "scale=4" >> ~/.bcrc echo 'BC_ENV_ARGS=$HOME/.bcrc' >> ~/.bashrc ## indian slurs expletives curses chuutya = asshole tum chuutya ho = you're an asshole gaand = ass hijda = transvestite kuttiya = bitch lund = dick lund choos = suck my dick ## british imperial denominations coins bob/pound/sovereign 1# ("a dollar") 20 shillings/bob 1# 12 pennies 1s farthing (fourth of a penny) halfpenny (half of a penny) half-groat 2d (tuppence) threepenny 3d (thruppance) groat 4d (four pence) sixpence 6d (AKA "tanner") florin 2s (two shillings) half-crown 2/6d (two and sixpence, "12.5 cents") crown 5/- (five shillings, "a quarter") 10 shillings 10/- (ten shillings, half-sovereign, "fifty cents") half-guinea 10/6 (ten and sixpence) guinea 1/1/- (pound and a shilling) ## excel number formats negative zero dash dashes accounting http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=414 A number format consists of up to 4 items, separated by semicolons. Each of the items is an individual number format. The first by default applies to positive numbers, the second to negative numbers, the third to zeros, and the fourth to text. If you don't apply any special formatting to text, Excel uses the General number format, which basically means anything that will fit. That means Excel will show as many decimal places that the text item has room for, it won't use a thousands separator, and if the number can't fit, perhaps due to a narrow column width, Excel uses a scientific number format. If only one format is specified, Excel uses it for any contents of the cell. positive;negative;zeroes;text http://www.dummies.com/WileyCDA/DummiesArticle/id-2197.html ## find files modified x minutes ago less than x minutes hours days ## find files modified x minutes ago greater than more than x minutes hours days find -mmin -30 find -mtime -1 ## less than 1 day ago find -mtime +1 ## more than 1 day ago ## Several ways to do the same thing host fazigu.org | grep -Eo '[0-9.]+$' host fazigu.org | awk '{print $4}' host fazigu.org | sed 's/.* \([0-9.]*$\)/\1/' host fazigu.org | cut -d' ' -f4 ## grepping emails of refused spam from maillog, nice sed subst example grep -ZF spam /var/log/maillog.0.gz | sed -ne 's/.*to=<\([^>]*\)>.*/\1/p' ## Z greps a compressed file, F fixed string for speed (we only want 'spam' ## on the first pass, sed -n avoids printing non-matching lines, -e just ## specifies an expression to evaluate, \1 replaces the pattern (with ## wildcards to match the whole line) with the first parenthetical ## subexpression in the RE, and /p turns back on printing for a match ## bash foreach shell expansion lines loops looping newlines IFS grep something * | while read foo ; do echo "LINE: $foo" ; done ## eg. renaming files according to their order in a file id=0 grep 'cat ' make-world.sh.0 | grep c-- | awk '{print $2}' | while read fn ; do printf "%2.2d0-$fn\n" $id ; let id++ ; done ## wget --recursive --no-parent wget a directory from the web without ## climbing back up parent .. directories wget -rnp ## better to get all of a certain filetype ## still descends into links, but doesn't save them wget -r -H -np -nc --accept=.mp3 ## even better yet wget --recursive --level=1 --span-hosts --no-parent --no-clobber --no-directories --random-wait --quiet --continue --reject=html --accept=mp3 ## finally working TV-out composite svideo geforce mx400 linux -----XF86Config----- Section "Device" Identifier "Hercules 3D Prophet MX 32MB" Driver "nvidia" Option "TwinView" "On" Option "TwinViewOrientation" "Clone" Option "ConnectedMonitors" "CRT,TV" Option "SecondMonitorHorizSync" "30-50" Option "SecondMonitorVertRefresh" "60" Option "MetaModes" "1024x768,640x480;800x600,800x600;640x480,640x480" Option "DPMS" Option "TVOutFormat" "COMPOSITE" EndSection -----XF86Config----- when you want to play a movie full-screen, do thusly: $ xrandr -s 2 && pkill -USR1 WindowMaker where `2' is the 640x480 screen given when given xrandr with no args at least on Debian with WindowMaker as your window manager-- the pkill (pattern kill, you can use killall or some grepping kill, too) forces windowmaker to restart, giving proper placement of icons and no dead areas for the resized screen my primary problem with the above was a (stupid) misunderstanding of MetaModes; I assumed it was "these,for,crt;these,for,tv" when it was "crt1,tv1;crt2,tv2;crtN,tvN" ## alsa linux speaker-test speaker test audigy creative 6.1 plugin order is towards the firewire connector, viewing from back: [===] o o o firewire, orange/line3/center, black/line2/rear, green/line1/front the other jacks are bullshit for me turn on 5.1->6.1 upmix on subwoofer/base unit, otherwise you'll never get anything proper from rear center rear center is always on for rear left/right ## remounting a drive read-write writable from ro readonly linux sudo mount -o remount,rw /data/ ## lirc and pinnacle systems remote (serial) lirc --driver=pinnsys --device=/dev/ttyS0 use the `irw' command to view output ## Or at least that used to work. Now, in Debian, sudo modprobe irda, set DRIVER="pinsys" in /etc/lirc/lird.conf, then cp /usr/share/lirc/remotes/pinnacle_systems/lircd.conf.pctv /etc/lirc/lircd.conf 20080622-0903 :: ~ quinn@debian$ sudo mknod /dev/ttyS0 c 4 64 20080622-0908 :: ~ quinn@debian$ sudo setserial -g /dev/ttyS0 20080622-0937 :: ~ quinn@debian$ cat /proc/tty/drivers ## viewing pdfs in a directory, fit in page, second page for fn in *PDF ; do xpdf -z page $fn 2; done ## portably writing the time date format easily in perl perl -e 'use POSIX qw(strftime); print strftime("%Y%m%d%H%M%S\n", localtime);' ## and a simple shell script .forward to output mail messages individually ## named according to the date (down to seconds) plus process id /bin/cat > "`/bin/date +%Y%m%d%H%M%S`-$$.msg" ## debian unstable cups client-error-not-possible epson stylus c80 fuck CUPS in the ass. i went back to lprng. ## cool sysctl settings to avoid stalled machines on a panic It's still not stable as I still have Oops (kernel.panic_on_oops = 1 and kernel.panic = 5, so it reboots on an Oops). ## version pinning in debian apt unstable stable testing apt-get install mozilla-firefox=RC1 apt-get install mozilla-firefox/unstable ## windowmaker screen freeze resize window sending wmaker a USR1 signal (killall -USR1 WindowMaker) seems to fix it sending wmaker a HUP will kill it :( ## adding an ip as an allowed relayer to qmail /var/spool/qmail/relay-ctrl/allow/ ## NO! /var/qmail/control/rcpthosts ## NO! ## /etc/tcp.smtp the.ip.address.here:allow,RELAYCLIENT="",RBLSMTPD="" ## wait for someone to pop in, or run tcprules if you want to figure it out ## adding a mailing list or changing other limits in qmail cat >> .qmailadmin-limits < ## Avoid startup warnings. ## Avoid startup warnings. ## it will complain about normal http being served on an https port, but ## i don't care about that-- just want a clean startup scroll! ## how i make my own self-signed cert on debian make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /usr/local/apache/conf/vhosts/domain.crt ## dot-qmail .qmail file for forwarding and local saves cat >> ~/.qmail <> /etc/sysctl.conf < /proc/sys/net/core/somaxconn sysctl net.core.somaxconn = 1024 ## notes re: functional versus imperative languages ## from http://en.wikipedia.org/wiki/Functional_programming functional ("excluding assignment to variables") vs. imperative languages functional languages provide "referential transparency", eg. a function is always guaranteed to be equal to its output, eg. with s = sqrt(2), s really does equal sqrt(2), not the result of it. cf. c = getchar() in C, where the value of c depends on conditions and data other than the arguments to getchar(). such "hidden side effects" are the rule of imperative languages, but the exception in functional ones ## However, after trying to read "Why functional programming matters" , I must say fuck you and fuck functional programming and fuck lisp and fuck math, you goddamned cryptic motherfuckers fuck you. and also fuck "What is mathematics" for good measure ## setting ulimits upping file descriptors nofile ulimit -n linux (debian) ## fileno file descriptors filedes $ echo "max total allowed open fd: `cat /proc/sys/fs/file-max`" $ cat /proc/sys/fs/file-nr | awk '{ print "highest: "$1" cur: "$2" max: "$3 }' ulimit -n ## 1024 is too low for some ulimit -SHn 8192 ## plenty big? $ cat >> /etc/security/limits.conf </var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType (if using defoma, that is) (requires installing debian x-ttcidfont-conf package) gotten from http://egads.ertius.org/~rob/font_guide.txt ## for KDE: fucking apps were choosing whatever was alphabetically first in my font list, which ended up being some poncey 1971 font. to fix, run kcontrol, appearance, fonts, and change them all to Bitstream Vera Sans or Bitstream Vera Sans Mono, or whatever. ## grep-available replaces apt-cache search with grep-available ## install debian package grep-dctrl ## search find body subject narrowing the mutt message list view to ## messages with text in their body l ~b text ## instead of nohup or exec and/or & to background, use disown ## authorized_keys ssh auto login simplified ## also sets the proper perms to avoid mystery when ssh login fails ## (this is a fucking awesome timesaver, dudes) ssh-copy-id quinn@example.com ## lambdamoo with waif support, latest wrogue build ## $waif new_waif lambdamoo moo server sourceforge cvs 1.8 cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/lambdamoo login cd ~/src mkdir lambdamoo cd lambdamoo/ cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/lambdamoo co -r WROGUE server cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/lambdamoo co -j WAIF server (build it, strip it, run it, login, then:) @create $root named WAIF Prototype @desc WAIF as "Root convenience class for all WAIF objects." @verb WAIF:new tnt "Rxd" #2 @prog WAIF:new set_task_perms(caller_perms()); w = new_waif(); w:initialize(@args); return w; . @verb WAIF::initialize tnt "Rxd" #2 @prog WAIF::initialize if ((caller != this) && (caller != this.class)) return raise(E_PERM); endif . @corify WAIF as $waif ## vim vi equivalent of fill-region on xemacs emacs gqip ## bittorrent btdownload default save as directory folder not mozilla's sudo vi `which btdownloadgui` edit onChooseFile function replace the getcwd with your preferred default directory, or go nuts and make a config option for it somewhere ## linux kernel debian install reboots spontaneously after one 1 minute i810-tco e1000 supermicro p45gr/p45ge rmmod i810-tco ; disable the mother fucking thing, it's watchdog timer and if you don't have the watchdog enabled in the BIOS (or maybe even if you do), it's going to reboot your system one minute or so after booting. i thought it was an ethernet problem, and went about removing any suspicious modules. maybe i should tell the debian-installer people about this... ## PC2100 (DDR266/133FSB) memory, PC2700 (DDR333/166FSB) memory, and PC3200 (DDR400/200FSB) memory are all types of Double Data Rate (DDR) SDRAM. The varying numbers refer to the different speeds of memory your computer was designed for. http://www.crucial.com/kb/answer.asp?qid=4003 ## system seem slow? hard drive unreliable, sometimes vanishes? try checking the drive jumpers before fiddling with software for days-- it might be set as master when it's the only drive. this will cause the system to slow down, and other problems. ## getting logitech quickcam pro 4000 working under linux modprobe videodev modprobe c-qcam (video for linux stuff) modprobe pwc (USB Support/USB Multimedia Devices/USB Philips Cameras) apt-get install v4l-conf ## if you want more than a postage stamp sized video, dl: http://www.smcc.demon.nl/webcam/release.html#pwcx sudo insmod --force pwcx-8.4/2.4.23/gcc-3.2/pwcx.o ## POST data not received when sent by MSIE Microsoft Internet Explorer on secure server CGI cgi-bin query string environment variables query key value ## MSIE chokes on certain SSL protocol behaviours. Adding the following ## line to the virtual host block of your secure server should fix the problem. SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown ## If it doesn't, try adding "downgrade-1.0 force-response-1.0", but I don't ## think they're necessary (they force an HTTP/1.0 transaction.) ## ffmpeg to capture from sony ccd-trv25 ntsc camcorder ## good quality bitrate, ready for svcd conversion? ## -t 01:42:57 records for one hour, forty-two minutes and fifty-seven seconds ffmpeg -r 29.97 -s 352x240 -b 768 -t 01:42:57 -tvstd ntsc -hq annika.mpg ## wah why won't my audigy 2 work in linux debian alsa oss aux in 2? Try installing the alsa-base and alsa-utils packages, dumbass. Then run alsamixer, you stupid. Also, alsaconf is good at detecting the proper card and setting up the right modules to probe at boot, at least in Debian. ## the haunted ebay painting is by: Bill Stoneham http://www.stonehamstudios.com/haunted.shtml ## best wifi usb wireless 802.11b device for linux debian? purchased a D-Link DWL-122 usb for ~$40 with a $10 rebate it's a sweet little keychain form factor with a usb extension cord and two green led lights for pwr and link -- it's very sexy, esp. considering this little dongle is giving me speeds i could not have even dreamed of on an apple// compat fifteen years ago http://julian.coccia.com/article-53.html has an excellent entry on getting this prism2 usb chipset going under linux essentially is just involves downloading the linux-wlan-ng drivers from ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/ i used linux-wlan-ng-0.2.1-pre17 with my 2.6.1 kernel, added prism2_usb to /etc/modules, and all is groove only hitch was surrounding my 128-bit wep key in quotes in /etc/wlan/wlancfg-MYSSID where MYSSID is my home wifi network SSID using with my Netgear MR814 wireless 802.11b router and 4-port switch ## serving seeding starting a bittorrent btmakemetafile filename-to-be-shared http://tracker-domain/announce ## go to your tracker, use its upload url to upload the resulting .torrent file ## post it where you want, and you're all set ## getting ttf truetype fonts to work with gimp, xfree86 ## requires Load "freetype" in XF86Config for a recent (>=4.2.*) Xfree release ## probably requires recent libxft2 libraries for dn in `find /usr/share/fonts/truetype -type d` ; do sudo mkfontdir $dn ; sudo ttmkfdir --output=$dn/fonts.scale --font-dir=$dn ; done ## this should work in mozilla as a bookmark to toggle flip switch turn on turn off cookie warnings, but it doesn't javascript:navigator.preference('network.cookie.warnAboutCookies', true); ## with this in the javascript console Error: uncaught exception: Permission denied to set property Navigator.preferenceinternal ## even with this set user_pref("signed.applets.codebase_principal_support", true); ## removing killing frozen exim messages freeze mailq exim -bp | grep '*** frozen ***' | awk '{print $3}' | xargs exim -Mrm ## this will thaw them, but wtf to that exim -qqff ## kill exim messages in queue older than 100 days exim4 -bp | grep -E '^[0-9][0-9][0-9]d' | awk '{print $3}' | grep -Ev '^<>$' | xargs exim4 -Mrm ## missing .so extensions in libtool autoconf automake plugins try doing a `libtoolize --copy' and ./configure again to rebuild also an aclocal autoconf and automake runs probably won't hurt HELP>> Quinn (member): Why New Zealand? Is there an Old Zealand? HELP>> ACW (member): I think Zealand is part of the Netherlands. HELP>> January (member): New Zealand was named by the European credited with settling the country, for a Dutch city (The Netherlands) called Zealand. Help has received your page. HELP>> Quinn (member): thank you kind fellows ## 20050824 - Rudger emailed me: To be exactly: Zealand, (= Zeeland, in dutch) isn't an city, but a province with some islands. (at least, used to be, untill they connected them to mainland with bridges, so... ) # my quickie bash .profile bashrc bash_profile faves cat >> $HOME/.bash_profile <> ~/.muttrc <> ~/.procmailrc ## mounting an smb samba share with smbmount sudo smbmount //ginger/pub /ginger -o username=XXXX,password=XXXX ## mounting a loopback device, an iso image from its file, etc. sudo mount -o loop -t iso9660 CD2.ISO /tmp/rip/ ## staunching the bleed of a ping attack iptables -I INPUT 1 -proto icmp -s -j ACCEPT iptables -I INPUT 2 -proto icmp --icmp-type echo-request -j DROP ## and the second time i get an INTJ hmmm
INTJ - "Scientist". Most self-confident and pragmatic of all the types. Decisions come very easily. A builder of systems and the applier of theoretical models. 1% of the total population.
Take Free Myers-Briggs Personality Test
## meyers briggs personality type: ISTP??
ISTP - "Artisan". Impulsive action. Life should be of impulse rather than of purpose. Action is an end to itself. Fearless, craves excitement, master of tools. 5% of the total population.
Take Free Myers-Briggs Personality Test
## my enneagram personality type
Conscious self
Overall self
Take Free Enneagram Personality Test
## accessing clipboard from command line in linux xclip wxcopy wxpaste ## in windows xp winxp type filename | clip ## and here's some xp thing from mattACK on slashdot ## i don't even know what it does for /r c:\ %i in (*.jpg) do @echo %i %~ni %~di ## showing getting accessing the last modification date of a file ## using GNU date date --reference=FILE ## hell of a lot easier than grepping `ls', huh? ## imagemagick convert options for postscript output (man convert) ## from a directory of jpg files printing them all for fn in *.jpg ; do convert -page `paperconf`+0+0 $fn ps:- | lpr ; done ## debeers diamond music is carl jenkins' palladio ## split csplit cut use GNU csplit to split a file into subfiles according to a particular pattern delimiter here's an example on a file w/records delimited by END at beginning of line csplit --prefix=trial --suffix-format="%d.txt" trial.txt /^END/ '{*}' on BSD, use plain nold split -p pattern ## eg. using csplit to split a hazel orders.txt file into separate files csplit --elide-empty-files --suffix-format="%02d.txt" --prefix=order missedorders2.txt '/^.ORDER.$/' '{*}' ## sales wisdom passed down from mzone Lets say the Circus is coming to Town. You paint a sign saying, "Circus at the Fairgrounds this Sunday" thats.....ADVERTISING. Then you put the sign on an Elephant & walk him thru town, thats....PROMOTION. If the Elephant walks thru the mayor's flowerbed, thats.... PUBLICITY. If you can get the mayor to laugh about it, thats....PUBLIC RELATIONS If you are aggressive and sold tickets at each step, thats....SALES. AND...If you planned the whole thing, thats....MARKETING. ## a script to run mozilla, and a script to open a url in a running mozilla ## see http://www.mozilla.org/unix/remote.html for more details quinn@requiem$ cat ~/bin/openurl.sh WHEREAMI=`dirname $0` $WHEREAMI/mozilla.sh -remote "openurl($1)" quinn@requiem$ cat ~/bin/mozilla.sh export MOZILLA_HOME=$HOME/mozilla/src/mozilla/dist/bin export LD_LIBRARY_PATH=$MOZILLA_HOME:$HOME/mozilla/plugins export PATH=$PATH:$MOZILLA_HOME cd $MOZILLA_HOME $MOZILLA_HOME/run-mozilla.sh mozilla-bin $* ## nice one-liner shell password generator Re:Lets make them pay by doing this.. (Score:1) by junics (664175) on 12:23 PM September 7th, 2003 (#6893443) ( Last Journal: 11:15 AM April 6th, 2003 ) cat /dev/urandom | tr -cd 'a-zA-Z0-9_#$' | head -c12 ## setting default printer for CUPS lpadmin -d printername ## how to get rcsid cvs version number revision static char rcsid[] = "$Id$"; man co ## to update the keywords cvs update -kkv ## whatever happened to dos2unix? try installing the flip package ## solaris sparc gcc cc varargs.h stdarg.h mismatch ## `__builtin_va_alist' undeclared (first use in this function) mv /usr/include/stdarg.h /usr/include/stdarg_solaris.h should be using gcc's stdarg.h include instead ## usbdrive usb-storage usb drive not a block device modprobe the sd_mod module, /dev/sg* don't seem to work ## perl ls /usr/local/bin/perl -e 'opendir(DP, "/"); @files = readdir(DP); closedir(DP); print join("\n", @files);' ## replace syntax in sed is \x, parens must be escaped sed 's/\(foo\)/\1/g;' ## no + numerator in sed regex, but you can use \{1,\} (escaped blah) sed 's/a\{1,\}/\1/g;' ## getting the size of a file in bytes from a shell script ## `test -s` only gives boolean "if file size is not zero" du -b $INFILE | cut -f1 ## installing mozilla java plugin for linux first get a proper jdk/jre installation then make a link in your mozilla plugins directory to /usr/local/jdk/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so or wherever you installed java -- it's just that easy! ## Native Win32 ports of some GNU utilities (no cygwin required) http://unxutils.sourceforge.net/ ## netscape mozilla devedge css html sidebars http://devedge.netscape.com/toolbox/sidebars/ ## curious stats on lactose intolerance by race ## http://lactoseintolerant.org/02_about.html The prevalence of lactose intolerance in adults of certain ethnic groups Ethnic Group Percent Intolerant African Blacks 95% Indians 90% Asians 90% North American Blacks 75% Mexican Americans 75% Mediterraneans 60% North American Whites 15% # building mozilla under debian export CVSROOT=":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot" cvs login sudo apt-get install libidl-dev libgtk-dev libxft2-dev export LIBIDL_CONFIG=`which libIDL-config-2` cvs co mozilla/client.mk cd mozilla ## use `checkout' below to grab required new files-- do not use cvs update make -f client.mk ## finding non-ASCII characters with perl perl -ne 's/\s+$//; if (/([^[:print:][:space:]])/) { print "$1\n"; }' ordersworking.txt ## glad girl glad bag girl don't get mad get glad marisa tomei lookalike ## don rickles is MAD!!! Melanie Deanne Moore http://www.geocities.com/gladgirlgalore/ ## finding the filesize file size in perl ## here's a snippet from man perlfunc ## because i always forget where these are listed ## man perlfunc and search for "size" -r File is readable by effective uid/gid. -w File is writable by effective uid/gid. -x File is executable by effective uid/gid. -o File is owned by effective uid. -R File is readable by real uid/gid. -W File is writable by real uid/gid. -X File is executable by real uid/gid. -O File is owned by real uid. -e File exists. -z File has zero size (is empty). -s File has nonzero size (returns size in bytes). ## setremove for perl removing a particular value from an array perl -e '$deleteme = "bar"; @foo = ("foo", "bar", "baz"); @foo = map { $_ eq $deleteme ? () : ($_); } @foo; print @foo;' perl -e 'print setremove("foo", ("foo", "bar", "baz")); sub setremove { my($kill, @array) = @_; return map { $_ eq $kill ? () : ($_) } @array; }' ## cool word tijuana bible apropros 151 "samizdat" wn "WordNet (r) 1.7" samizdat n : a system of clandestine printing and distribution of dissident or banned literature [syn: {underground press}] ## the demonic adaptive psychopath The sum of these parts is what Rieber refers to as the "Mephisto Syndrome." "It is hard to resist the impression that the true psychopath is a personification of the demonic.... They are not social, only superficially gregarious; not considerate, just polite; not self-respecting, only vain; not loyal, only servile and down deep they are really quite shallow.... Hence the observed homologies with the figures of the demonic: ...For the psychopath, the demonic is a way of life.... ## difficulty in making decisions and social somatic markers As previously stated, psychopaths have unfortunately, for the most part, been studied in prisons. These studies tend to describe the life patterns of losers -- men and women incapable of maintaining a "normal" life. These people have seemingly intact intellects \x{2013} and may in fact, be of superior intelligence. However, on practical matters involving themselves, they are totally unable to plan or make sound decisions. Usually, given the population being studied, this is manifested in an aimless pattern in their lives. Damasio's hypothesis, widely accepted today, is that there is a strong connection between emotional processes (emotional IQ) and intellectual processes: our emotions are equal partners, if you will, in our intellectual lives. This is especially true when it comes to practical decision-making. Domasio theorizes that "somatic markers" are the mechanism by which emotions conspire with thought to produce decisions. Essentially, every goal, every means to that goal, every intermediate step and all possible alternatives along the way, are encoded with emotional attributes of which we are not consciously aware. As Barnes and Thagard write: "The somatic marker hypothesis is presented by Damasio to explain these experimental findings. The hypothesis is that bodily feelings normally accompany our representations of the anticipated outcomes of options. In other words, feelings mark response options to real or simulated decisions. Somatic markers serve as an automatic device to speed one to select biologically advantageous options. Those options that are left unmarked are omitted in the decision-making process. Damasio presents evidence for this in that patients with frontal lobe damage fail to activate these somatic markers, which are directly linked to punishment and reward, and originate in previously experienced social situations. Decision-making defect is explained by an inability to activate somatic states when ordinary decisions arise; by an inability to mark the implications of a social situation with a signal that would separate good and bad options. One is therefore trapped in a never-ending cost-benefit analysis of numerous and conflicting options. In the absence of emotional markers, decision-making is virtually impossible.... "Damasio claims that un-marked options are not considered by the decision maker. This biasing function of somatic markers is really what makes decision making possible. In the absence of markers, the decision maker has too much information to deal with. The computations involved are so cumbersome that they cannot yield a final decision. In short, emotions dictate and constrain which bits of information are used." ## Darla Lonsberry, DEMOCRAT wins seat on Mt. Morris village board. http://dansville.lib.ny.us/express/1997archive/ex032097.html ## lonsberry's brief failed marriage child bride http://216.239.57.100/search?q=cache:gT7IbNjKrCkJ:www.harktheherald.com/%3Ftopic_section%3Dcelebrations%26day_offset%3D0+lonsberry+utah+marriage&hl=en&ie=UTF-8 Thwaits, Julie The Daily Herald on Sunday, June 01 Thwaits, Lonsberry Dr. and Mrs. Richard N. Thwaits of Orem, Utah, are pleased to announce the marriage of their daughter, Julie Louise, to Robert L. Lonsberry of Mt. Morris, New York. The wedding took place on February 14, 2003 in West Valley City, Utah Add to /etc/pcmcia/wlan-ng.conf to get WCF12 working with Zaurus: card "Linksys WCF12" manfid 0x028a, 0x0673 bind "prism2_cs" ## vim indentation reindent entire file indent-region gg=G ## stripping everything before the first blank line in a file You [to Deathead]: perl -e 'open(FP, "foo.txt") or die; undef $/; $foo = ; $foo =~ s/^.*\r?\n\r?\n/$POSTMATCH/g; print $foo; close(FP);' You say, "for testing on a unix cmdline with a file foo.txt containing the strippables" ## multipart/alternative attachments mime if having difficulty with certain mail readers such as eudora reading your homegrown multipart attachment emails, be sure you include MIME-Version: 1.0 as a header ## using CPAN perl -MCPAN -e shell ## perl character classes isprint, nonprint, etc. The following equivalences to Unicode \p{} constructs and equivalent backslash character classes (if available), will hold: [:...:] \p{...} backslash alpha IsAlpha alnum IsAlnum ascii IsASCII blank IsSpace cntrl IsCntrl digit IsDigit \d graph IsGraph lower IsLower print IsPrint punct IsPunct space IsSpace IsSpacePerl \s upper IsUpper word IsWord xdigit IsXDigit For example "[:lower:]" and "\p{IsLower}" are equivalent. man perlre | grep cntrl perl -e 's/[^[:print:]]/
/g;' http://www.foxnews.com/story/0,2933,79811,00.html BERKELEY, Calif. Students at a California university used cookies instead of protest signs on Wednesday to demonstrate against college affirmative action policies. For the same chocolate chip cookie, whites were being charged $1.50, Asians $1.25, Latinos (Hispanics not from Mexico) $1.00, Chicanos (Hispanics from Mexico) 75 cents, American Indians 50 cents, and blacks 25 cents. Another from Southern Methodist University in Dallas: A sign said White males had to pay $1 for a cookie. The price was 75 cents for White women, 50 cents for Hispanics and 25 cents for blacks. ## burning freedos on my 48x cdrw cdrecord -dev= 0,0,0 speed=48 -dao fdbootcd.iso ## Rochester Latitude and Longitude 43" 7' N 77" 40' W cat >> ~/.wmweather+/conf < 800 *vt100*font: 10x20 *vt100*geometry: 80x40 #else *vt100*font: 7x13 *vt100*geometry: 80x24 #endif ----------cut---------- ## okidata okipage oki c7200 color printer lpd lpr linux print printer printing uses okipage 20DXn driver in foomatic for cupsomatic CUPS lpadmin -d bwprinter # changes default printer ## the old urldecode is now, in CGI.pm: CGI::unescape(foo); ## fixing the Darwin case -compatibility_version problem in ltmain.sh archive_cmds="" verstring="" ## un-exporting a variable in bash export -n OCC_ENV ## installing openc++ on debian apt-get install libgc6-dev apt-get install libgc6c102 wget http://ftp.us.debian.org/debian/pool/main/o/openc++/openc++_2.5.12-6_i386.deb dpkg --ignore-depends=libgc6-dev --ignore-depends=libgc6 --install openc++_2.5.12-6_i386.deb ## fixing the fonts in netscape from big and ugly to tight xset fp unix/:7101,unix/:7100 && xset fp rehash # 7101 is the xfstt font server # 7100 is the xfs xfree86 font server ## getting my usb canon n650u scanner to work in linux # kernel modules for scanner, usbcore, usb-uhci # debian packages for usbutils, xsane mknod /dev/usbscanner0 c 180 48 ln -s /dev/usbscanner0 /dev/usbscanner vi /etc/sane.d/plustek.conf # add vendor and product as per lsusb chgrp video /dev/usbscanner0 # i'm in the video group vi /etc/sane.d/dll.conf # comment all but plustek to avoid needless scanning chmod g+rw /dev/usbscanner0 # has to be writable ## kernel 2.6+ deprecates the scanner module in favor of libusb ## for fast access, lsusb to find vendor and product, then add ## something like this to /etc/sand.d/plustek.conf [usb] 0x04a9 0x2206 ## hotplug should handle read/write, just make sure you're in scanner group ## grepping out the version of ldconfig/glibc with sed ldconfig --version | sed -n 's/^.*\([0-9]\{1,\}.[0-9]\{1,\}.[0-9]\{1,\}\).*$/\1/p' ## hacking config.guess from autoconf to output the glibc version on linux eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #include int main (int argc, char *argv[]) { #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 printf("LIBC=gnulibc%d.%d\n", __GLIBC__, __GLIBC_MINOR__); # else printf("LIBC=gnulibc1\n"); # endif # else printf("LIBC=gnulibc1\n"); # endif #else #ifdef __INTEL_COMPILER printf("LIBC=gnu\n"); #else printf("LIBC=gnuaout\n"); #endif #endif exit(-1); } EOF $CC_FOR_BUILD $dummy.c -o $dummy \ && eval `./$dummy` rm -f $dummy.c $dummy # eval `$CC_FOR_BUILD $dummy.c 2>/dev/null | grep ^LIBC=` # rm -f $dummy.c test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 # patching a linux kernel, because i always forget the patch arg dammit gzip -cd patchXX.gz | patch -p0 or bzip2 -dc patchXX.bz2 | patch -p0 # alternatively, on my system: $ cd /usr/src/kernel $ kernel-X.X.XX/scripts/patch-kernel # reads all patches in current direcotry and brings kernel up-to-date # wow i finally got this fucker automated # use the following to take a directory full of jpegs, scale them to # 400 pixels width/across/x, and append the web_credit.gif # i have automated my semi-annual funnytimes chore for fn in 2003*.jpg; do convert $fn ../../textiles/web_credit.gif -resize 400x600 -append ../appended/$fn; done ## best resizing one-liner yet ls -1 firstrun/*.jpg | grep -v _sm.jpg | while read foo ; do convert $foo -scale 100 secondrun/`basename $foo .jpg`_sm.jpg; done; ## the 36 plots, from: ## http://www.rpglibrary.org/articles/storytelling/36plots.htm, ## by Loren J. Miller, from Georges Polti's 36 Dramatic Situations # Supplication - Persecutor, Suppliant, a Power in Authority # Deliverance - Unfortunates, Threatener, Rescuer # Revenge - Avenger, Criminal # Vengeance by Family upon Family - Avenging Kinsman, Guilty Kinsman, Relative # Pursuit - Fugitive from Punishment, Pursuer # Victim of Cruelty or Misfortune - Unfortunates, Master or Unlucky Person # Disaster - Vanquished Power, Victorious Power or Messenger # Revolt - Tyrant, Conspirator(s) # Daring Enterprise - Bold Leader, Goal, Adversary # Abduction - Abductor, Abducted, Guardian # Enigma - Interrogator, Seeker, Problem # Obtaining - Two or more Opposing Parties, Object, maybe an Arbitrator # Familial Hatred - Two Family Members who hate each other # Familial Rivalry - Preferred Kinsman, Rejected Kinsman, Object # Murderous Adultery - Two Adulterers, the Betrayed # Madness - Madman, Victim # Fatal Imprudence - Imprudent person, Victim or lost object # Involuntary Crimes of Love - Lover, Beloved, Revealer # Kinsman Kills Unrecognised Kinsman - Killer, Unrecognised Victim, Revealer # Self Sacrifice for an Ideal - Hero, Ideal, Person or Thing Sacrificed # Self Sacrifice for Kindred - Hero, Kinsman, Person or Thing Sacrificed # All Sacrificed for Passion - Lover, Object of Passion, Person or Thing Sacrificed # Sacrifice of Loved Ones - Hero, Beloved Victim, Need for Sacrifice # Rivalry Between Superior and Inferior - Superior, Inferior, Object # Adultery - Deceived Spouse, Two Adulterers # Crimes of Love - Lover, Beloved, theme of Dissolution # Discovery of Dishonor of a Loved One - Discoverer, Guilty One # Obstacles to Love - Two Lovers, Obstacle # An Enemy Loved - Beloved Enemy, Lover, Hater # Ambition - An Ambitious Person, Coveted Thing, Adversary # Conflict with a God - Mortal, Immortal # Mistaken Jealousy - Jealous One, Object of Jealousy, Supposed Accomplice, Author of Mistake # Faulty Judgment - Mistaken One, Victim of Mistake, Author of Mistake, Guilty Person # Remorse - Culprit, Victim, Interrogator # Recovery of a Lost One - Seeker, One Found # Loss of Loved Ones - Kinsman Slain, Kinsman Witness, Executioner ## easy way to blockquote a file linewrap wrap cols ## the piped-to perl line is for indenting the block ## args are for GNU fold, standard only takes a -w width ## and will break words, and thus BSD fold SUCKS IT fold --width=70 --spaces FILE | perl -ne 's/\n/\0/g; print "\t$_\n";' ### printing a postscript document 2 pages per side on duplex printer, ### avoiding the frustrating upside-down reversal of the opposite sides cat > ~/bin/bookit.sh <$fn

" >> index.html; done # turkmenistan stages of life Niyazov -- officially known as Turkmenbashi (Head of all the Turkmen), but more usually as Turkmenbashi the Great -- was quoted as saying on the official website, Turkmenistan.ru: "We will return to our roots. "Our ancestors had a clearer and more reasoned division of the ages of man...childhood lasted to 13, adolescence to 25, youth to 37, maturity to 49. "Later there followed: the age of the prophet, from 49 to 62; the age of inspiration, from 62 to 73; the age of the white-bearded elder, from 73 to 85; old age, from 85 to 97; and the age of Oguz Khan (an ancient ruler of the Turkic ancestors of the Turkmen) -- from 97 to 109." # Replacing all spaces in a list of files. for fn in SuperTaboo\ *; do mv "$fn" "`echo $fn | sed 's/ //g;'`"; done ## Billy Madison Deathead says, "what you've just said is one of the most insanely idiotic things I have ever heard. At no point in your rambling, incoherent response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you no points, and may God have mercy on your soul." ## simple shell line to unzip downloaded roms, overwriting their nfo files for fn in *.zip; do echo "=====$fn"; unzip -o "$fn"; echo "=====done\!"; read; done ## burning mp3 to cd, from http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/other-formats/html_single/MP3-CD-Burning.html for i in *.mp3; do mpg123 --rate 44100 --stereo --buffer 3072 --resync -w `basename $i .mp3`.wav $i; done; normalize -m *.wav; (echo "CD_DA"; for i in *.wav; do echo; echo "TRACK AUDIO"; echo "AUDIOFILE \"$i\" 0"; done) > cd.toc; cdrdao write --device 0,0,0 --driver generic-mmc cd.toc ## burning dreamcast games on linux ## if bin/cue format, use bchunk to split into files, make a TOC, and cdrdao? ## upgraded from ssh1 to ssh2, or to OpenSSH_3.0.2p1 Debian 1:3.0.2p1-8.3 ## and my authorized_keys don't seem to work anymore! you'll need to `ssh-keygen -t rsa' (see man ssh-keygen for more info), make sure to ssh-add ~/.ssh/id_rsa, and also add the new id_rsa.pub to the authorized_keys file on all your servers. alternatively, you can use `ssh -1' to force use of the version 1 protocol to allow you access to old authorized_keys. ## some perl date manipulations perl -e '@now = localtime; $foo = sprintf("%2.2d/%2.2d/%4.4d", $now[4] + 1, $now[3], $now[5] + 1900); foreach $c (split(/\B/, $foo)) { print "key $c\n"; }' sub my_date { my $time = shift || time; my @now = localtime($time); sprintf("%4.4d%2.2d%2.2d%2.2d%2.2d%2.2d", $now[5] + 1900, $now[4] + 1, $now[3], $now[2], $now[1], $now[0]); } ## Evil Dead is likely loosely based on "Equinox" (1970) ## http://us.imdb.com/Title?0067055 ## Thomas Jefferson on Copyright Law/IP Intellectual Property ## http://www.rockymountainnews.com/drmn/local/article/0,1299,DRMN_15_1020197,00.html If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. Its peculiar character, too, is that no one possesses the less, because every other possesses the whole of it. He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me . . . . Inventions then cannot, in nature, be a subject of property. Society may give an exclusive right to the profits arising from them, as an encouragement to men to pursue ideas which may produce utility, but this may or may not be done, according to the will and convenience of the society, without claim or complaint from anybody. -- Thomas Jefferson ## http://digital.library.upenn.edu/books/bplist/archive/1999-02-11$2.html # extracting got/set tokens from hazel source code perl -ne 'BEGIN { %namespaces = ("DICT_HAZEL"=>"H", "DICT_SHOPPER"=>"E", "DICT_CONFIG"=>"M"); } next unless /(get|set)_var\w*\((\w+), *\"([^"]+)\"/; print "$1 \%HZ", $namespaces{$2} || "?", "_$3\n";' search.c | sort | uniq ## @qsend *smut subj="Pepper" Looking for a hot time in the old town tonight? Here's your ticket. Amazingly, herbalists say this is really good for you (or your patient). You make a tea by steeping 1/2 oz or red pepper (cayenne) flakes to two quarts of water. Boil the water, then pour into a teapot with the pepper, let steep for twenty minutes, filter the pepper from the water, and bring to a comfortable temperature for use. It creates quite a sensation on the insides. Not quite what you would expect, but it will definitely set your sub's tail to wagging. A suggestion. This enema is different enough that the nurse should secretly try it before prescribing it for the patient. It is also worth noting that this enema provides enough stimulation to the male prostate that it can cause spontaneous release of ejaculate from the penis. So, of course, the nurse tells the slave that he must, under no circumstances, begin to leak cum, then plugs in the hot pepper nozzle and watched him squirm trying to prevent the unpreventable. . ## in the beginning there was sheep (Score:4, Funny) by mihalis (cm at mihalis dot net) on 01:03 PM November 29th, 2000 EST (User #28146 Info) http://mihalis.net This is a good debunking of Neal Stephenson's "In the beginning was the command line". In the beginning there was no command line, and when someone invented it, it was as "revolutionary" as graphical user interfaces where when Douglas Englebart invented them. They are certainly not an intrinsic part of any computer as he seems to imply. A better title would have been "In the beginning was the sheep". Sheep produce wool, so man invented the loom. Then Jacquard invented the programmable loom. Then Ada Lovelace wrote "punch cards" for it and thus was programming invented. ## a haiku for you My groin on fire. Testicles burn like dragon. Please water my gland. ## @qsend *video subj="funny quote about janeneneeaan garafalo" http://www.dumbassandthefag.com/reviews/stealthismovie.html "Janeane Garofalo, the thinking man's version of a hot slut splayed out naked waiting to get fucked" ## comments on a village voice story on the homeless @qsend *curr subj="more from the Village Voice" >How did you become homeless? I left my house because of a domestic >violence situation. I had to leave even though I had two kids. This one sounds as if she left her kids in that "domestic violence situation." That's great. >What should the city do differently? Giuliani is trying to make us >work. It's really a catch-22. I say give us employment and programs to >stay away from drugs. The mayor is trying to make us work, but I say he give us employment? Huh? . @qsend *curr subj="AMAZING HOBO STORIES!" >How did you become homeless? I had a misunderstanding with my family, >with my mother. When I got out of prison for drugs and manslaughter, >my mother gave me a chance to live with her. But I happened to go on > drugs. I got myself kicked out. !!! >How did you become homeless? I spent six months in jail for beating >up my old lady. When I got out, I couldn't go back there because she >was afraid I'd beat her up. !!! >How did you become homeless? I'm mentally ill, schizophrenic, and, >what's it called, bipolar. I've been drinking since I was three, >addicted since I was 14. I smoke crack. I'm an inventor. I just >need someone to invest in my ideas. I know how to make things to >stop airplanes from falling out of the sky. ??? These are the best stories the left-handed VILLAGE VOICE can come up with?? We're supposed to sympathize with these people? ## What is a turd burglar? http://www.rumba.demon.co.uk/tasteles.htm # damage types You say, "fire, blunt, puncture, frag, bullet, ecto (misc. magic?), laser, plasma, decompression, radiation, corrosion, gravity" # @qsend "*sc *unwashed" subj="iberian settlers" On our way back from last month's "witch season" vacation in Salem, Malenka and I swung by "America's Stonehenge" in New Hampshire. As the name implies, it's an ancient astronomical structure built by pre-historic "Americans." The info center mentioned Iberian origins, and also had some kooky inscriptions referencing "Baal" and the "Canaanites". It was mostly uninteresting rocks. The one cool bit was a central structure with an "altar" atop, replete with grooves through which the blood of the sacrificed would flow into the "oracle chamber." Apparently the site influenced HP Lovecraft. Not quite as awe-inspiring as this admirer of his work had hoped, but I'm glad to have visited. Here's the official website: http://www.stonehengeusa.com/ # The Secret Life of Walter Mitty They [Mitty and his wife] went out through the revolving doors that made a faintly derisive whistling sound when you pushed them. It was two blocks to the parking lot. At the drugstore on the corner she said, "Wait here for me. I forgot something. I won't be a minute." She was more than a minute. Walter Mitty lighted a cigarette. It began to rain, rain with sleet in it. He stood up against the wall of the drugstore, smoking... He put his shoulders back and his heels together. "To hell with the handkerchief," said Walter Mitty scornfully. He took one last drag on his cigarette and snapped it away. Then, with that faint, fleeting smile playing about his lips, he faced the firing squad; erect and motionless, proud and disdainful, Walter Mitty, the Undefeated, inscrutable to the last. # Philip Baker Hall as Floyd Gondolli in "Boogie Nights": "I like simple pleasures, like butter in my ass, lollipops in my mouth. That's just me. That's just something that I enjoy." # what is a foo when sold by hazel If you would ask a fish if it possesses the secret qualities of a cow, the fish would become very disturbed and would slap you with a naughty udder. Thus, you will buy a foo to avoid the wrath of such a fish with the naughty udder slapping you. # kindler gentler satan <> # taboo teaches us about muslim names Message 12525 on *chatter (#16543): -------------------------- Date: Monday 21-Dec-98 21:05:58 From: taboo (#90889) To: *chatter (#16543) Hmm..few Americans seem to understand the Muslim naming tradition. You don't have a "family" name...a Muslim usually take his/her father's name as the last name, so Hussein's father was probably named Hussein Something, and which is why Saddam's son is named Eday Saddam or something like that. A common practice is to include "Mohammed" as a middle name though, so, Mohammed is the most popular name in the world. -------------------------- # jesus tv Simon Peter said to them, "Make Mary leave us, for females don't deserve life." Jesus said, "Look, I will guide her to make her male, so that she too may become a living spirit resembling you males. For every female who makes herself male will enter the kingdom of Heaven." # what's the different between solaris and sunos? Solaris 1.x = SunOS 4.1.x + OpenWindows Solaris 2.x = SunOS 5.x + OpenWindows That said, people referring to Solaris generally mean Solaris 2.x and people refering to SunOS generally mean SunOS 4.1.x. SunOS 4.1.x is based primaryly on BSD. SunOS 5.x is based primarily on SVR4. # write til you die In 1937, Ernest Vincent Wright wrote a 50,000-word novel without using the letter ''e.'' Perhaps exhausted by his labors, Wright died the day his book was published. # Several ideas on reading faster speed reading, from a Slashdot comment # some time ago: -Forget all the stupidity you've acquired about how to read. -Use your finger to follow the lines of text you're reading (your third-grade teacher would be horrified, but it WILL help you read faster). Use it to follow your eye-direction as you read. Your finger will be moving side to side along the lines, and moving down the columns of text you're reading. This technique, because it essentially stops REreading what you've just read, usually increases reading speed by about 100%, sometimes more. -Read SO FAST that you CANNOT subvocalize what you're reading -- subvocalizaion, or reading out loud without speaking, is a major cause of slow reading. -Ask questions of what you're reading. For example, if you read "Uncle Emma was reading brown" you might ask (out loud) "Who is Uncle Emma" "What is 'reading brown'" and so on. This technique is to engender subconscious INTEREST in what you're reading, and to help you catch the cues to the answers to these questions later on. Also, it effectively prevents subvocalization. # Jed Leland to Charles Foster Kane in "Citizen Kane": "You used to write an awful lot about the workingman. He's turning into something called organized labor. You're not going to like that one little bit when you find out it means that your workingman expects something as his right, not as your gift! Charlie, when your precious underprivileged really get together, oh boy! That's going to add up to something bigger than your privileges! Then I don't know what you'll do! Sail away to a desert island probably and lord it over the monkeys!" # my real-life dungeons and dragons AD&D stats http://blanchard.virtualave.net/war/dndstats.html Str: 11 Int: 11 Wis: 15 Dex: 12 Con: 11 Chr: 14 # mass-subscribing to ezmlm via stdin ezmlm-sub /usr/local/vpopmail/domains/netsville.net/status # where that pathname is the path to your qmail/ezmlm list owner # then paste the addresses, one to a line, then ctrl-d, whatever # ours is setup as a moderated list, only moderaters can send # i still have to accept my own messages, but eh, wtf # cvs add a directory and its contents, recursively # there's got to be a better way to do this # but cvs import seems to want to add another branch for fn in `find hazel-cat -type d | grep -v CVS`; do echo $fn; done ; for fn in `find hazel-cat -type f | grep -v CVS`; do echo $fn ; done # all usernames from /etc/passwd between 1000 and 9999 (inclusive) for a bcc: perl -n -e '($uname, $pwd, $uid) = split(/:/, $_, 3); $line .= "$uname\@netsville.net," if $uid > 999 and $uid < 10000; if ($line and not($i++ % 40)) { push(@BCCS, $line); $line = ""; }; END { push(@BCCS, $line); open(MSG, "MESSAGE.txt") or die; @MSG = ; close(MSG); foreach (@BCCS) { chop; open(FP, ">OUTGOING_" . $$ . "." . $j++ . ".txt"); print FP "Bcc: $_\n", @MSG; close(FP); } } BEGIN { $line = ""; @BCCS = (); }' /etc/passwd # poor, stupid, lazy man's for [1..x] loop in bash i=10 ; while test $i != "0" ; do echo $i; i=`expr $i - 1`; done # here's an example for a nonexistent site i=113 ; while test $i != "0" ; do idx=`printf "%.4d" $i`; wget "http://www.example.com/images/gooeyfacial${idx}.jpg"; i=`expr $i - 1`; done i=20 ; while test $i != "0" ; do idx=`printf "%.3d" $i`; wget "http://www.sircumalots.com/pics/23/images/${idx}.jpg"; i=`expr $i - 1`; done # if your embedded
styles look bad in netscape ns47, such as color: attributes bleeding past the
in which they are supposed to be enclosed, making text unreadable, try pulling the embedded style out of the tag and into a stylesheet, and assigning the tag a class instead
# Willy Wonka to Charlie Bucket in "Willy Wonka and the Chocolate Factory": "Wrong, sir! Wrong! Under section 37B of the contract signed by him, it states quite clearly that all offers shall become null and void if -- and you can read it for yourself in this photostatic copy -- "I, the undersigned, shall forfeit all rights, privileges, and licenses herein and herein contained," et cetera, et cetera... "Fax mentis incendium gloria cultum," et cetera, et cetera... "Memo bis punitor delicatum"! It's all there, black and white, clear as crystal! You stole fizzy lifting drinks! You bumped into the ceiling which now has to be washed and sterilized, so you get nothing! You lose! Good day sir!" # simple way for showing figlet ascii fonts from shell for fn in /usr/share/figlet/*.flf; do fontname=`basename $fn .flf`; figlet -f $fontname $fontname; done # with optional text specified and a pause option pause=1 ; text="fazigu.org" ; for fn in /usr/share/figlet/*.flf; do fontname=`basename $fn .flf`; echo "$fontname:" ; figlet -f $fontname $text; if [ $pause ] ; then read; fi done # extracting referrers of successful hits in common log format apache perl -ne 'next unless /"GET (\S+) HTTP\/\d.\d" 200 \d+ "(\S+)"/; print "$2\t$1\n";' /var/log/apache/tijuanabibles.org-access.log | egrep '^http' | egrep -vi '(tijuanabibles.org|google.com|lycos|mail|search|altavista.com|excite.com)' | sort | uniq perl -ne 'next unless /"GET (\S+) HTTP\/\d.\d" 200 \d+ "(\S+)"/; print "$2\t$1\n";' /var/log/apache/tijuanabibles.org-access.log{,.[0-9]} | egrep '^http' | egrep -vi '(tijuanabibles.org|google.com|lycos|mail|search|altavista.com|excite.com)' | sort | uniq perl -ne 'next unless /"GET (\S+) HTTP\/\d.\d" 200 \d+ "(\S+)"/; print "$2\n";' /var/log/apache/fazigu.org-access.log{,.[0-9]} | egrep '^http' | egrep -iv '(fazigu.org|google|lycos|mail|search|altavista)' | sort | uniq # misc perl one-liners perl -ne 'BEGIN { %NAMESPACES = ('SHOPPER' => 'E', 'INPUT' => 'E', 'CONFIG' => 'M'); } if (m/get_var_as_string\(DICT_(\w+),\s+\"([^\"]+)\"/) { $ns =~ print "\%HZ", $NAMESPACES{$1}, "_$2\n"; }' members.c perl -ne 'if (m/(croak|speak)_custom_message\(\"(\w+)\",\s+\"([^\"]+)\",\s+\"([^\"]+)\"/) { print "# fatal: $1; default: $3\n$2:$4\n"; }' members.c # Translating Publisher or other silly documents into (chopped up bits of) plain ASCII: for FN in *.rtf; do NN="`basename $FN .rtf`.txt"; cat header.html > $NN; catdoc $FN | dewindowizer.pl >> $NN; cat footer.html >> $NN; done # my specific case for the JSM jimmy stewart museum newsletter $ dewindowizer.pl file.pub | strings # then to index headers i've created $ perl -ne 'if (m//) { $current=$1; } elsif (m~

(.+)

~) { print "
  • $1
  • \n"; };' newsletter-0304.html # preventing a form from being submitted more than once
    # my favorite live free or die quote "They that give up essential liberty to obtain temporary safety, deserve neither liberty nor safety." (Ben Franklin) # if your 3-button mouse appears to be double-clicking on a button3 # middle-click in X, make sure you didn't enable ChordMiddle or # Emulate3Buttons in XF86Config # Quick way to bulk-scale JPG to 400 pixel width. for fn in *.jpg; do convert -scale 400 "$fn" "400x-$fn"; done # converting mailed attachments to dated image files, the second doing # pretty capitalization i=0; for fn in *:* ; do mv "$fn" `echo "$fn" | sed 's/ /_/g;'` ; done ; for fn in `ls -t *:*` ; do i=`expr $i + 1`; datestr="`date +%Y%m%d``printf %.2d $i`"; mv $fn $datestr--`echo $fn | sed 's/:/--/g;' | capitalize -c`.jpg; done i=0; for fn in *:* ; do mv "$fn" `echo "$fn" | sed 's/ /_/g;'` ; done ; for fn in `ls -t *:*` ; do i=`expr $i + 1`; datestr="`date +%Y%m%d``printf %.2d $i`"; mv $fn $datestr--`echo $fn | perl -pe 's/:/--/g; s/([\W_])([a-z])/$1\U$2/g;'`.jpg; done # incrementing a file containing a number echo $(expr `cat serialnum` + 1) > serialnum # Kaspar Hauser after first assassination attempt; one of the saddest # quotes I've ever read. Ignorance (of sentience) is bliss. "I all men love; do no one anything. Why the man kill? I have done nothing...You should have first killed me, before I understand what it is to live..." # http://www.ling.lancs.ac.uk/monkey/ihe/linguistics/LECTURE4/4kaspar.htm # great aide in debugging CGI, gleaned from George @ thebook.com BEGIN { open(STDERR, ">>log.txt"); } # really fucked up video by Azar Habbib hatten hatt-baby, and its lyrics http://user.tninet.se/~prv247p/hatt/hatten.swf http://vinn