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 quinnfazigu@gmail.com! Written with keywords in mind, thus the strings of synonyms. ##################################################################### ##################################################################### # java jdk8 fabric8 okhttp3 SSL error sudo apt install openjdk-8-*=8u252-b09-1ubuntu1 ## kubernetes microk8s pod stuck in pulling or ImagePullBackOff or creating container ## or with any other microk8s error, first try restarting kubelet: sudo service snap.microk8s.daemon-kubelet restart ## Simple guide to upgrading a Debian system. sudo apt-get upgrade vim /etc/apt/sources.list # Change to latest codename, e.g. %s/stretch/buster/g sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade uname -a sudo reboot uname -a cat /etc/debian_version # @see https://www.rootusers.com/how-to-upgrade-debian-8-jessie-to-debian-9-stretch/ # @see https://wiki.debian.org/SourcesList ## LetsEncrypt certbot-auto renewal bypassing issues with Debian Python packages. 504 [2019-06-25T14:04:06] $ wget https://raw.githubusercontent.com/certbot/certbot/75499277be6699fd5a9b884837546391950a3ec9/certbot-auto 507 [2019-06-25T14:04:36] $ chmod 755 certbot-auto && sudo chown root:root certbot-auto && sudo mv certbot-auto /usr/local/bin/ 508 [2019-06-25T14:04:38] $ certbot-auto --no-self-upgrade --apache If it breaks, e.g. not finding the "datetime" module, then mv away /opt/eff.org/certbot and run it again to allow it to freshly reinstall itself. ## Can the same IP port be used as both source and destination? ## @see https://serverfault.com/questions/592637/why-are-there-only-65-535-ports-and-will-we-ever-have-more @Qwertylicious Not quite - it's just that no other PCs behind the NAT would be able to access the PCs that the swarm of connections was made to. Connections are uniquely identified by source port, source ip, dest port, and dest ip, so the limits just apply to additional connections to those same servers (or in the small network scenario far more likely, when your router just doesn't have much memory allocated for tracking all those connections and just starts dropping them from the NAT table after there's a few hundred thousand connections total). – Shane Madden♦ Jun 7 '16 at 3:08 ## Kanger Subox Mini "E1" error display code Hold down all three buttons /while/ inserting the battery. Keep them down until "Kangertech" shows on the screen. @see https://www.reddit.com/r/electronic_cigarette/comments/3g32d0/e1_error_message_on_my_kangertech/ ## Neat little clock. Orig. from http://www.commandlinefu.com/commands/view/11762/print-the-current-time-on-the-whole-screen-updated-every-second while true ; do printf "%s\f" $( date +%T ) ; sleep 1 ; done | sm --foreground saddlebrown --background wheat --font=Consolas - ## Ubuntu sound audio xubuntu doesn't work sound doesn't work audio doesn't work ubuntu audio problems ## @see https://help.ubuntu.com/community/SoundTroubleshootingProcedure ## killall pulseaudio ; rm -rf ~/.config/pulse/* ~/.pulse* # sudo reboot ## Worked for me on 16.04 ## The following seems to work when I'm stuck with only "Dummy" output, without need a reboot. pulseaudio --kill && rm -rf ~/.config/pulse/ && pulseaudio --start ## urldecode # Convert %XX hex codes into the ASCII characters they represent. ## unset -f urldecode ; function urldecode() { perl -p -e 's/%([0-9A-F]{2})/chr(hex($1))/gie;' ; } ; ## tablify # Print tabular data with horizontal justification. ## unset -f tablify ; function tablify() { perl -a -n -e 'push(@rows, [@F]); for (0..$#F) { $ll = length($F[$_]); $cm[$_] = $ll if $ll > ($cm[$_] || 0); } ; END { printf(join(q{ }, map { "%${_}s" } @cm) . "\n", @{$_}) for @rows; }' ; } ; ## Using telnet{-ssl} to connect to an HTTPS server. 2016-08-05 13:44:40 ~/.vim ronstra@Latitude-E5430-rons$ telnet -z ssl www.mozilla.org 443 Trying 104.16.40.2... Connected to www.mozilla.org.cdn.cloudflare.net. Escape character is '^]'. GET / HTTP/1.1 Host: www.mozilla.org HTTP/1.1 301 MOVED PERMANENTLY ## previous declaration ‘unsigned int wait::::__w_termsig’ ## You probably have a file in your project with a name conflicting with some system file, such as "endian.h" or "limits.h". ## Find symbolic links pointing to some directory: ## 2016-01-26 16:00:00 «««« ~ ## ronstra@GA-Z77X-D3H$ sudo find . -type l -printf '%p:%l\n' 2>/dev/null | awk -F: '$2 ~ /\/rons\/?/ { print }' | less ## A device attached to the system is not functioning. (0x8007001F) samba ## Windows backup was failing. Once I changed the destination folder from mixed to all-lowercase, it seemed to be fixed. ## Problem: Vim mappings were not working for to ":bprev" and to ":bnext". ## Keywords: vim .vimrc .inputrc readline Xdefaults ctrl-left ctrl-right c-left c-right c-pgup c-pageup ## Solution: My ~/.Xdefaults was setting vt100.translations to force forward-word and backword-word like so: ! For translations, it seems the pointer cursor must be within the window. ! Alt + / will complete the word under the cursor from scrollback! *.vt100.translations: #override \n\ Meta /: dabbrev-expand()\n\ Meta L: hard-reset()\n\ Shift Prior: scroll-back(1, page)\n\ Shift Next: scroll-forw(1, page)\n\ Shift Up: scroll-back(1, line)\n\ Shift Down: scroll-forw(1, line)\n\ Shift Home: scroll-back(1000, page)\n\ Shift End: scroll-forw(1000, page)\n\ Ctrl Left: string("0x1B") string("B")\n\ Ctrl Right: string("0x1B") string("F")\n ## The last two, in particular. Remove them, and the Vim mappings fucking worked. Dammit. ## Fucking Skype ads sidebar ## @see http://community.skype.com/t5/Windows-desktop-client/Block-Skype-Ads-Quick-and-Easy/td-p/3222434/page/3 To be really clear: Exit Skype (not running at all not even in the background). Edit the template as stated, taking out the ads placeholder tag Save the file Close the file Re-open the file to confirm the tag is gone Set the file to read-only as mentioned earlier Launch Skype When you open a conversation it should no longer show the ads banner at the top. If you don't see the banner at the top... then a few moments later it appears... You didn't mark the config file as read-only, allowing Skype to replace the file with a copy of the default file that includes the placeholder. In addition to having apps.skype.com as a restricted site (Via Internet Explorer as described earlier) I also have it re-directed through my hosts file. If you don't know what that is then google "Windows Hosts file" - It exists in different places on different versions of Windows and we aren't creating a complete tutorial for it here. # Stop skype ads 127.0.0.1 apps.skype.com ## Ubuntu 14.10 blocks port 80 apache2 ubuntu blocking web ubuntu blocking ports ubuntu blocking port 80 ## "Could not reliably determine the server's fully qualified domain name" ## @see http://askubuntu.com/questions/256013/could-not-reliably-determine-the-servers-fully-qualified-domain-name 2015-04-02 10:01:29 :: ~/bin rons@GA-Z77X-D3H$ sudo service apache2 restart * Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message ...done. EOT 2015-04-02 10:07:47 :: ~/bin rons@GA-Z77X-D3H$ set -C ; echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf ; set +C ; sudo a2enconf fqdn ; sudo service apache2 restart ServerName localhost Enabling conf fqdn. To activate the new configuration, you need to run: service apache2 reload * Restarting web server apache2 ...done. ## EOT ## Change default auto-play behaviour action when inserting USB device. Start->Search[Autoplay]->Autoplay ## 2014-04-15 09:14:57 :: ~ ## rstraight@crunch2$ perlbrew install-patchperl -vvv ## ## /home/rstraight/perl5/perlbrew/bin/patchperl already exists, are you sure to override ? [y/N] [N] y ## ## ERROR: Failed to retrieve patchperl executable. echo "insecure" >> ~/.curlrc echo "check_certificate=off" >> ~/.wgetrc ## Always use Consolas or monospace font in textareas, tt, pre, code, xmp ## blocks. I use the Stylebot Chrome extension, options, styles, and edit ## the global stylesheet. If you don't, you'll have to find the user.css ## for Chrome, IE, Firefox, or whatever browser you use, then enter the ## following CSS or something like it: tt, pre, code, xmp, textarea, input[type=text] { font-size: 10pt; font-family: Consolas, monospace; } ## Attach a process/session to a screen session; change the controlling terminal/pty. repeater/reptyr https://github.com/nelhage/reptyr ## MP3 files won't play in order, ignore id3 info tags for track, ignore alphabetical sort. ## The trick is to copy them in the order you want them to play. If an OS copies them ## with multiple threads, or just doesn't care about the order in which they appear in your ## shell, this could be ANY order. The hand-rolled solution is to rename them in lexical ## order and then use a loop or rsync to copy them to your removable media. ## @see google:setting play order of mp3 http://www.murraymoffatt.com/software-problem-0010.html puddlegen yafs plgen DriveSort (Windows) ## Password Generator w/Seed ## ========================= apg -n1 -c "$( cat /var/log/syslog | perl -e '$ss=""; while ((length($ss) < 31) && ($ll=)) { next if rand() < $tt; @cc = split(//,$ll); ( $ss .= join("", sort { rand() <=> rand() } @cc[1..$#cc/7]) ); } $ss =~ s/\s//g; print $ss;' )" ## Spreadheet Formula for Sum of All Cells Below Header to Just Below Current Cell ## =============================================================================== =SUM(INDIRECT(ADDRESS(2, COLUMN(), 4) & ":" & ADDRESS(ROW()-1, COLUMN(), 4))) ## Appending to a Bash Array Variable ## ================================== # One way. $ aa=() ; for ii in $( seq 0 5 ) ; do aa[$ii]="$(( ii**2 ))" ; done ; echo 'aa[splat]="'${aa[*]}'"; aa[amper]="'${aa[@]}'";' > aa[splat]="0 1 4 9 16 25"; aa[amper]="0 1 4 9 16 25"; # A better way. $ aa=() ; for ii in $( seq 1 3 ) ; do aa[${#aa[@]}]=$(( ii**2 )) ; done ; echo "${aa[*]}"; > 1 4 9 # Because I Can Never Remember the Right Sequence For Bash Redirection # ==================================================================== # 2g tampon, 1 space-pipe $ fn='two-gt-amp-one-space-pipe.txt' ; rm -f $fn ; ls /etc/passwd /tmp/not/found /etc/group 2>&1 | tee $fn > /dev/null ; cat $fn ls: cannot access /tmp/not/found: No such file or directory /etc/group /etc/passwd # Replacing Decimals With Hexdecimals in Vim # ========================================== :%s@\d\+@\= printf("%04X", submatch(0))@gc :%s@ \(\d\{2,3}\): @\= printf(" 0x%02X: ", submatch(1))@gc # SCRIPT is AWESOME # ================= # Replays your terminal session-- even with typing delays! bashlvl-1$ script -f -q -t ~/var/log/typescript 2> ~/var/log/typescript.timing bashlvl-2$ ## Do stuff... bashlvl-2$ exit bashlvl-1$ scriptreplay ~/var/log/typescript.timing ~/var/log/typescript # Some /etc/vimrc Dictates # ======================== " Personal usability settings foisted on everyone. " Legend: Commented w/3 quotes=sys/default; 2=too controversial. set incsearch set smartcase set nohlsearch set bg=dark set noexpandtab ""set ignorecase ""set tabstop=4 ""set shiftwidth=4 """syntax on """set autoindent """set nocompatible """set ruler # SSH Speedup Options # =================== # @see ~/.ssh/config. ssh -c arcfour,blowfish-cbc -4 -M -C -S "~/.ssh/socket-%r@%h:%p" -Y # Hardcopy Printout of the Current Keyboard Layout # ================================================ 2013-11-14 14:22:23 :: ~/.x-terminal-emulator rons@fazigu$ xkbprint -color -dflts -fit -kc -label symbols -lc en_US.UTF-8 -nkg 2 /var/lib/xkb/server-DCDF0A67BC073E95D8BF65CFCB01DC11140B1149.xkm - | lp - # Alternative to /dev/stderr when using sudo # ========================================== 2013-09-13 11:22:26 :: ~ rstraight@redis-dmp01$ sudo -u redis bash -c 'echo "foo" 1>&2' 2> stderr.txt 1> stdout.txt ## Tripwire failed to open *.twd file. ## http://linux.m2osw.com/tripwire-init-not-saving-database sudo tripwire --init ## And when it fails to open some files, either remove them from ## twcfg.txt or twpol.txt, or touch new ones, then run: sudo twadmin -m F -S /etc/tripwire/site.key /etc/tripwire/twcfg.txt sudo twadmin -m P -S /etc/tripwire/site.key /etc/tripwire/twpol.txt ## http://netwizards.co.uk/installing-tripwire-on-ubuntu/ GREAT tutorial. # The following will parse the new policy file and run a fresh report. # Only need the --twrfile if it failed to run recently. sudo tripwire --update -Z low ## --twrfile /var/lib/tripwire/report/fazigu.org-20140113-073517.twr sudo tripwire --update-policy --cfgfile /etc/tripwire/tw.cfg --polfile /etc/tripwire/tw.pol --site-keyfile /etc/tripwire/site.key --local-keyfile /etc/tripwire/fazigu.org-local.key /etc/tripwire/twpol.txt ## Godzilla Reboot Trailer / 2001 Monolith Theme ## http://screencrush.com/godzilla-trailer/ "It’s almost silent (minus the addition of the monolith theme used in ’2001: A Space Odyssey’ aka “Requiem for Soprano, Mezzo-Soprano, 2 Mixed Choirs and Orchestra” by György Ligeti), which makes the iconic Godzilla roar at the end even more impactful." -- Recognized the "Monolith Theme" and was wondering if it was original for 2001 or a prior work. ## fucking resolvconf and /etc/resolv.conf dns-search dns-domain domain search ## According to resolvconf(8), the appropriate filename is of the form ## "IFACE.PROG", where "IFACE" is the interface (OK, duh) and the vague and ## misleading "PROG" is the type of connection. Here's mine: /run/resolvconf/interface/eth0.dhclient ## Added a "search foo.com" line to that file then ran `sudo resolvconf -u`. ## /etc/resolv.conf was regenerated with the search line. ## epson wf-2540 black is gray black prints gray grey off-brand cartridges 1. Remove the ink cartridge. 2. Pull the plug without turning off the printer. 3. Wait 5-10 minutes. 4. Plug-in the printer. 5. Should bitch about missing cart. [OK] then put the cart back. 6. [...] 7. Print! Worked for me-- after opening and throwing away three Black XL carts. :/ Found at http://www.justanswer.com/printers/7o9ej-having-problems-epson-wf-2540.html. ## “LifeCam could not find the LifeCam Files folder or save a file in it. For more information, see "Troubleshooting and product support" in LifeCam Help.” In Windows7, go to either your Library/Pictures/Pictures or directly to your C:\Users\%USER%\Pictures folder (where %USER% is your login name) and (if this is indeed the problem) it should say you're not allowed to access it, and to click to do so. Kinda fucking stupid, huh? Like it's saying, "Only if you say please." Anyway, doing that opened access and LifeCam works again. Total fucking bullshit. ## The Windows Live Call button only works with Windows Live Messenger 8.1 or later. Do you want to install Windows Live Messenger now? To disable the Windows Live™ Call Button on the Microsoft LifeCam VX-3000, simply rename IcePick.exe, found in C:\Program Files\Microsoft LifeCam\ (or wherever you installed the LifeCam drivers) to IcePick.ex_. ## Verizon Droid4 Android screen goes black when call starts. If you have a screen protector, peel back the top right corner and cut out a rectangle from the speaker down to just above the screen. Your proximity sensor is probably obscured. ## URI, URL, URN. URI (identifiers) consist of URL (locators) and URN (names). "URI" is an abstract umbrella term for a resource citation of some specificity. A URN specifies only the name of a resource. These indicators (e.g. "mailto" or "news" schemes) do not include its location. It is assumed that the consumer knows how to locate a resource of that name in that particular scheme. A URL specifies both the name and the location of a resource. A URL is the complete specification of a distinct resource. URN> person:///quinn ## [Citation Needed] Most mailto I've seen exclude any slashes. URL> person://fazigu.org/~quinn/ URI> person://fazigu.org/~quinn/ ## My git origin/master doesn't seem to be receiving changes I push, even though I set git-push --set-upstream to a new URI. $ git remote -v # Shows current remote info. $ # git remote rm origin # Only if that is wrong. $ # git remote add origin scheme://host/proper-location-of-repo-containing-origin-master-you-wish-to-track.git $ git config branch.master.remote origin $ git config branch.master.merge refs/heads/master ## @see http://blog.aplikacja.info/2010/08/switch-origin-of-your-git-repository/ ## FUCKING UBUNTU Window resize handle borders TOO FUCKING SMALL. ## What the FUCK were they thinking!? ## Fix from https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/878198/comments/8 ## says to edit the theme definition itself, which for Ambiance is here in ## /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml ## See below for the relevant block. ## Ubuntu won't load my fucking .Xresources, or .Xdefaults. ## I ended up just making my own ~/.xsession that does this: 2013-03-04 11:44:32 :: ~ rons@kan-6367$ cat .xsession xrdb $HOME/.Xresources gnome-session --session=gnome ## Yes, I know it blows away existing resources. Don't care. ## Then choose user-defined or custom session in the lightdm greeter screen. ## Reviewing Diffs and Copying Between Directories ## =============================================== 2013-02-22 09:51:43 :: ~/.boilerplate/distro/git.d rons@dev-ubu-03$ for fn in $( find . -type f ) ; do diff "$fn" "../base/trunk/$fn" | hldiff ; echo ; read -p '» Copy base file to new git-based folder? ' ; if $( echo $REPLY | grep -Ei --silent '^y(es)?$' ) ; then cp "../base/trunk/$fn" "$fn" ; fi ; done ## SUPER BRANCH CREATOR ## ==================== git fetch ; case_id=9001 ; label='any-colour-you-like' ; startish_raw='origin/shared/any-colour-you-like' ; what_for=$( echo $case_id | grep --silent '^[0-9]\+$' && echo -n " for work on case #${case_id}" ) ; startish_esc=$( echo ${startish_raw} | sed 's/\//\\\//g;' ) ; start_sha=$( git branch -av | awk "/^([[:space:]]+(remotes\/)?)${startish_esc}/ { print \$2 }" | tail -1 ) ; branch_name="${USER}/$( date +%Y%m%d )/${start_sha}/${case_id}/${label}" ; commit_subject="New branch ${branch_name}." ; commit_body=$( echo "Created from ${startish_raw}${what_for}." | fmt --width=70 ) ; commit_message="${commit_subject}\n\n${commit_body}\n" ; git checkout --track -l -b ${branch_name} ${startish_raw} && ( echo -e "${commit_message}" | git commit --allow-empty --file='-' ) ## Alternative to `top` on Fucking Solaris ## ======================================= ## 2012-12-27 14:40:49 :: ~ ## root@oracle# while ( true ) ; do date ; uptime ; ps -eo pid,user,group,stime,pcpu,s,nice,args | sort -rk5 | head -5 ; sleep 5 ; echo ; done Thu Dec 27 14:41:01 EST 2012 14:41pm up 538 days 4:19, 10 users, load average: 17.71, 16.81, 16.69 PID USER STIME NI %CPU COMMAND 10307 oracle Sep_14 20 4.1 oracleXMP (DESCRIPTION=(LOCAL=NO)(SDU=1500)) 7194 oracle 14:40:10 20 3.8 oracleXMP (DESCRIPTION=(LOCAL=NO)(SDU=1500)) 3916 oracle 14:28:05 20 3.8 oracleXMP (DESCRIPTION=(LOCAL=NO)(SDU=1500)) 7162 oracle 14:40:07 20 3.7 oracleXMP (DESCRIPTION=(LOCAL=NO)(SDU=1500)) ## ## ... or prstat -Z ## Calling Arbitrary Perl Subs ## =========================== ## perl -e 'no strict qw( refs ); use Foo::Bar; my $pkg = "Foo::Bar"; my $subname = "baz"; print &{"${pkg}::${subname}"}();' ## perl -e 'my $subname = "foo"; sub foo { print shift(@ARG) . "\n" }; { no strict qw( refs ); &{$subname}($subname); $subname->("arrowed"); }' ## Recoding a Page From One Charset To Another ## ===================================================================== ## This is a special case, but might be useful for y'all. ## It's mostly the recode command that matters. cat word-export.html | perl -ne 'if ($outit) { print } elsif ($innit) { if (s{^(.+)(.+)}{$2}) { $innit = 0; $outit = 1; print; } } elsif (s{(.+)}{}) { $innit = 1; print; } else { print } ' | perl -pe 's{()}{\n$1\n}gism; s{]+/>}{}gism;' | recode utf8/..iso-8859-1 | perl -pe 's/TM/\™/gism;' > word-export-demoronised.mhtml ## Open File Handles ## ================= sysctl fs.file-nr ## Allocated, unused-but-allocated, max lsof -n -p $( pgrep -d, -f 'apache|cgi' ) | wc -l ## Matching a pattern. ## Compare output of two commands: diff <( ls -l /data/stuff ) <( ls -l /backup/data/stuff ) ## Vim Modelines No Work No More! ## ============================== ## set nocompatible ## In ~/.vimrc ## Use "vim: expandtab:shiftwidth=4:tabstop=4:", for example, in an SQL file. ## How much RAM in my machine and where is it? 2013-02-15 12:44:58 :: ~ rons@GA-E7AUM-DS2H$ sudo dmidecode --type=17 | egrep 'Size|Bank Locator:' Size: 2048 MB Bank Locator: Bank0/1 Size: 2048 MB Bank Locator: Bank2/3 Size: No Module Installed Bank Locator: Bank4/5 Size: No Module Installed Bank Locator: Bank6/7 ## Prettier default xterm icons. Is there a user-path for these? cd /usr/share/pixmaps sudo convert gnome-color-xterm.png -scale 48x48 xterm_48x48.xpm sudo convert gnome-color-xterm.png -scale 32x32 xterm_32x32.xpm sudo ln -sf xterm_32x32.xpm xterm-color_32x32.xpm sudo ln -sf xterm_48x48.xpm xterm-color_48x48.xpm ## Cleaning up, purging, getting rid of old Ubuntu/Debian kernel image stuff from /boot. 2012-03-14 17:47:31 :: /boot rons@GA-E7AUM-DS2H$ find . -maxdepth 1 -type f -mtime +90 -iname '*generic*' | xargs sudo mv --target=/usr/local/tmp/boot/ ## http://www.evertype.com/misc/charm.html Merlin's Charm of Making I sent this note out to a number of internet lists some years ago in response to a query I received. The mystery of Merlin’s Charm of Making is, alas, no longer a mystery. Although Merlin and Morgana both pronounce things differently from each other, and even Merlin has two sounds which to me sound like phonemes but which must be allophonic, I get the following from the Charm of Making in John Boorman’s film Excalibur: /a'na:l naθ'rax, u:rθ va:s be'θud, dox'je:l 'djenve:/ It’s certainly not Welsh. It looks very much like an attempt at Old Irish. (One wonders where Boorman got it.) Following is the best I can do at reconstructing reasonable Old Irish from it. It is probably a defective reconstruction. I have normalized to Modern Irish orthography to indicate lenition. In Old Irish Anál nathrach, orth’ bháis’s bethad, do chél dénmha In Modern Irish: Anáil nathrach, ortha bháis is beatha, do chéal déanaimh In English: Serpent's breath, charm of death and life, thy omen of making. anál nathrach = breath of serpent orth’ bháis ’s bethad = spell of death and of life do chél dénmha = thy omen of making anál fem. -á stem ‘breath, breathing’ nathair fem. -k stem ‘snake, serpent’ g. sg. nathrach ortha fem. -n stem ‘prayer; incantation, spell’, from Latin oratio bás masc. -o stem ‘death’ g. sg. báis ocus conj. ‘and’ here shortened to 's betha masc. -t stem ‘life’ g.sg. bethad do prn. ‘thy’ Usually unstressed cél masc. -u stem ‘omen, augury, portent’ dénumh masc. -m stem ‘making, doing’ g.sg. dénmha Modern Irish would have the -is in bháis as a /sh/ sound, but it might not have been so palatalized in the Old Irish period; and the nonpalatal ’s of ‘and’ ought to reinforce that. The third part of the charm could also be dochél dénmha ‘an evil omen of making’, but that suits the sense badly. The word do ‘thy’ is usually unstressed in speech but what can you do... Note that Merlin says dénmhe, which ought to be dénmha; perhaps there is some sort of ‘incantation register’ in which a final vowel can be altered in this way.... In any case, I am less than happy with the third part of this. I'd like to have seen an imperative or hortative, but verb-first syntax precludes even dénae, the imperative of do-gní (from which the verbal noun dénumh is formed), which anyway doesn’t have the nominal formative -mh. I would be interested in hearing from specialists in Old Irish as to their opinions of this. There are other possibilities for the retro-translation, and indeed the use of a Latin loanword, given the context, is problematic. ## http://www.maryjones.us/jce/charmmaking.html The Charm of Making Pseudo-spell. Here is the Charm of Making, as it appears in the film Excaliber: Phonetic: anal nathrak, uthvas bethud, do che-ol di-enve. Old Irish (these are possible spellings for what is being said, as Gaelic is a very strange language when it comes to spelling): Anal nathrach, orth' bhais's bethad, do che'l de'nmha. OR: Anáil nathrach orth bhais betha, do cheol déanta. Modern English: Serpent's breath, charm of death and life, thy omen of making. My translations: Anáil nathrach, ortha bhas betha, do cheol déanta. Breath of the serpent, spell of life, the song for the maker. Breath of serpent, spell of death and life, your song of making. In his (incredably inaccurate) book The 21 Lessons of Merlyn, Douglas Monroe says that it is an ancient Welsh Druid spell. This is probably untrue. It is Gaelic, for one (provided the hypothesis is correct); for another, it is from a film, not from any ancient druid text--mainly because the druids didn't have texts. Their religion forbade any transcription of its dogma. ## Wicked bitchin' use of fgrep's -f flag and shell pseudo-files. Grabs the ## final field in a CSV file (which here is an IP address), gets the unique ones, ## rips off any DOS newline parts; 2012-02-15 15:28:24 :: ~/tmp rons@toolbox$ zfgrep -f <( awk -F, '{ print $NF }' data.csv | sort | uniq | tr -d "\r" ) /tmp/click_0*.gz ## http://superuser.com/questions/53957/what-do-alsa-devices-like-hw0-0-mean-how-do-i-figure-out-which-to-use JohnT's answer gives a good basic. I'll follow it up with how to find the devices on your system. Use "aplay -l" to get a list of the devices on your system. The hw:X,Y comes from this mapping of your hardware -- in this case, X is the card number, while Y is the device number. $ aplay -l # note lower-case "L" option **** List of PLAYBACK Hardware Devices **** card 0: T71Space [Terratec Aureon 7.1-Space], device 0: ICE1724 [ICE1724] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: T71Space [Terratec Aureon 7.1-Space], device 1: IEC1724 IEC958 [IEC1724 IEC958] Subdevices: 0/1 Subdevice #0: subdevice #0 card 0: T71Space [Terratec Aureon 7.1-Space], device 2: ICE1724 Surrounds [ICE1724 Surround PCM] Subdevices: 3/3 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Since these are USB devices that might not always get the same device numbers each time they're plugged in, the hw:X,Y device might change. The simplest answer is, for a desktop system, try the GNOME/KDE/Xfce configuration tools, and see if they're smart enough to pick up the changes. The complex way, if you're not doing this with a desktop system, gets ... interesting. You might be able to get away with using device aliases instead of the "hw:X,Y" -- this is what the output of "aplay -L" shows. The "something:CARD=FOO,DEV=Y" stuff is the alias, and probably won't change between different device plug-ins, where the X in "hw:X,Y" might. (Assuming that you're using the same USB dongle each time.) $ aplay -L default:CARD=CK804 NVidia CK804, NVidia CK804 Default Audio Device front:CARD=CK804,DEV=0 # hw:0,0 NVidia CK804, NVidia CK804 Front speakers surround40:CARD=CK804,DEV=0 # hw:0,1 NVidia CK804, NVidia CK804 4.0 Surround output to Front and Rear speakers So your aplay command would become "aplay -D front:CARD=CK804,DEV=0 somefile.wav", and you can use the same devicename in your .asoundrc. ## Fucking pulseaudio only shows dummy device. ## http://forums.debian.net/viewtopic.php?f=7&t=48663 # See what might be hogging your devices. sudo lsof /dev/snd/* # KILL THE FUCKER. In my case: sudo apt-get remove roaraudio # Also, forcing a reload of ALSA modules might do it: sudo alsa force-reload ## CUPS Canon Pixma ip4300 # wget ftp://download.canon.jp/pub/driver/bj/linux/cnijfilter-common-2.70-1.i386.rpm # wget ftp://download.canon.jp/pub/driver/bj/linux/cnijfilter-ip4300-2.70-1.i386.rpm sudo apt-get install ups ghostscript gsfonts ## Xclipboard already running? Not in ps? Strace doesn't help? ## Yeah, GNOME steals it. Try some of these. xsel/xclip - cmdline access to all the myriad X11 buffers autocutsel - dedicated xsel/clipboard sync clipit - does what autocutsel does, and much more glipper - nopaste support, plugins ## Compaq Portege 3500 CMOS battery clock errors Just before getting up, when asked to press [F1] to enter BIOS and fix the time, I did so and then saw a "Save as Defaults" option. Doing that, it now seems to actually save my time, even when the thing is unplugged. Go figure. Take that back. Doesn't work. Back to the year 2000. Oh, but for future reference, [F12] is what allows you to select those icons on the boot screen, which are the various boot methods. ## Oh noes! I was an idiot and typed some command like git-read-tree and ## now everything in my repo is staged for deletion! ## Run this one first to get the easy ones without spaces. git status | awk -F ' ' '/deleted:/ { print $3 }' | xargs git reset HEAD ## Then this slower one to get the ones with spaces. git status | awk -F ' ' '/deleted:/ { print $3 }' | xargs -I {} git reset HEAD '{}' ## Stuffing text into all open screen windows :at \# stuff "export -n LESSCHARSET\015source ~/.bash/aliases\015" ## This un-exports my LESSCHARSET environment variable and reloads ## by bash aliases, assuming every screen window over which I am ## looping is at a bash prompt, which they usually aren't, but eh. ## Vim configure to automagically stuff visual mode selection into X11 selection ./configure --prefix=$HOME/usr --with-x --disable-gpm --disable-acl ## Obviously, the --with-x is the important one. The rest is because I'm on a ## stupid old Redhat box. ## Assloads of "Apache/2.2.16 (Ubuntu) (internal dummy connection)" entries ## in your /var/log/apache2/access.log? Add this to your ## /etc/apache2/sites-available/default: SetEnvIf User-Agent "internal dummy connection" ubuntu_idc=1 CustomLog ${APACHE_LOG_DIR}/access.log combined env=!ubuntu_idc ## Display full filename in Emacs menubar buffers list ## Copy the below into your init file. ;; Copied from /usr/share/emacs/23.1.50/lisp/menu-bar.el.gz (defun menu-bar-update-buffers-1 (elt) (let* ((buf (car elt)) (file (and (if (eq buffers-menu-show-directories 'unless-uniquify) (or (not (boundp 'uniquify-buffer-name-style)) (null uniquify-buffer-name-style)) buffers-menu-show-directories) (or (buffer-file-name buf) (buffer-local-value 'list-buffers-directory buf))))) (cons (if buffers-menu-show-status (let ((mod (if (buffer-modified-p buf) "*" "")) (ro (if (buffer-local-value 'buffer-read-only buf) "%" ""))) (if file (format "%s %s%s" file mod ro ) (format "%s %s%s" (cdr elt) mod ro))) (if file (format "%s -- %s" (cdr elt) file) (cdr elt))) buf))) ## The message below seems to be caused by just copying your existing /var/mysql tables into a new installation. /etc/cron.daily/logrotate: error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log ' run-parts: /etc/cron.daily/logrotate exited with return code 1 mysql> drop user 'debian-sys-maint'@'localhost'; mysql> create user 'debian-sys-maint'@'localhost' identified by 'whatever plaintext passwords are in /etc/mysql/debian.cnf'; mysql> grant all privileges on *.* to 'debian-sys-maint'@'localhost' with grant option; ## You may also want to run the `mysql_fix_privilege_tables' command. ## Commifying a number. In this case, the uncompressed size of a gzipped file. $ gzip -lq file.gz | awk $'{ print sprintf("%\'d bytes", $2) }' 61,147,092 bytes $ printf "%'d\n" $( gzip -lq file.gz | awk '{ print $2 }' ) 61,147,092 ## Probably an easier way to find the max width and height of a set ## of images, but this works: for dims in $( find public_html/ -name 'sm_front.jpg' | xargs identify | grep -o 'JPEG [0-9x]\+' | awk '{ print $2 }' | sort | uniq ) ; do echo $dims | ( IFS='x' read w h ; echo $w >> cover-widths.txt ; echo $h >> cover-heights.txt ) ; done ; echo "Max width: $( sort -n cover-widths.txt | tail -1 )" ; echo "Max height: $( sort -n cover-heights.txt | tail -1 )" ; rm -f cover-{widths,heights}.txt ## Loop through a list of hosts, trying to ignore timeouts and missing ssh ## keys, find a certain process running on each and display when it started ## and how long it's been running. The original version uses a lot of ## internal stuff, but hopefully you get the idea. process_pattern='something.pl' ; ( for hn in $( something-that-generates-a-list-of-hostnames | sort -k1.2 -n ) ; do printf "%10.10s: " "$hn" ; ssh -o 'ConnectTimeout 2' -o 'PasswordAuthentication no' $hn "ps_stat=\$( ps ax -o pid,stime,etime,command | fgrep \"$process_pattern\" | fgrep -v /bin/sh | fgrep -v fgrep | tail -1 ) ; if [ \"\$ps_stat\" ] ; then echo \$ps_stat | ( read x_pid x_stime x_etime x_command ; printf '%5s %8s %12s %s\n' \"\$x_pid\" \"\$x_stime\" \"\$x_etime\" \"\$x_command\" ) ; else echo '(\"$process_pattern\" not running)' ; fi" ; done ) ## How many wings in Quaker Steak and Lube Sprintster? Sprintster 6 $5.99 Single 10 $8.99 Supersize single 15 $12.99 Compact bucket 19-21 $16.99 Full bucket 27-30 $28.99 Mega bucket 38-41 http://answers.yahoo.com/question/index?qid=20090528180131AAlXSuZ ## detecting how much of an image is white proximity to white http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=11297 2010-09-07 11:32:53 :: ~/src/MUD/MOO/closet/Cvs/manual rons@ga-e7aum-ds2h$ convert logo: -threshold 99% -format "%[fx:100*image.mean]" info: 82.4707 ## google chrome unstable lost search bar get the latest chrome as of 9/10/2010 ## jquery flot pie charts ie7 msie7 Make sure you're rendering your charts in a $(document).ready() and not just inline Javascript, because IE does not have the dimensions of the container/placeholder divs until the document is ready. ## debian unix grep case insensitive en_US.UTF-8 http://www.mail-archive.com/debian-bugs-closed@lists.debian.org/msg39846.html fix by setting LANG=C seems to have cropped up again in grep 2.6.3 ## fsck.vfat read-only sd card problems ## "Unable to create unique name" fsck ## "Leaving file system unchanged." http://andrewgee.org/blog/2007/07/03/its-good-when-things-dont-work/ $ dosfsck -w -r -v /dev/sde1 ## getting samba to just fucking work sudo apt-get install samba samba-common-bin vim /etc/samba/smb.conf ## add any shares, set workgroup, etc. sudo smbpasswd -e user ## enable and set password for a user ## Get this? "Failed to find user rons in passdb backend." Try this: sudo smbpasswd -a rons ## enable and set password for a user ## The Samba password is entirely different from your Unix password. DUH. ## unicode xterm 2009-10-27 22:35:49 :: ~ rons@ga-e7aum-ds2h$ LC_CTYPE=en_US.UTF-8 xterm -fa dejavu ## "another sync client has been adding events to the blackberry calendar" ## http://forums.crackberry.com/f35/google-sync-another-sync-client-100371/index2.html I resolved the problem for my BB 8330 by opening Google Sync> Options> Sign Out. Let it take all of your synced info off of your device. Then close Google Sync. Next, go to Options> Advanced Options> Applications. Find Google Sync on the list, press the option button, and delete it. You'll be prompted for a restart. Do this. After your phone has rebooted, go to Google Mobile using your BB's browser. Choose "Install Now" and follow the onscreen instructions. After that, open up Google Sync and log in. Set up your sync preferences, and VOILA! Error message is gone, all events are synced. ## Linux Mozilla Firefox Flash conflicts hogging audio sound card. http://nileshbansal.blogspot.com/2006/09/firefox-linux-and-audio.html sudo vim /usb/bin/firefox s/MOZ_PROGRAM="/MOZ_PROGRAM="aoss / ## (Forces it to use OSS emu rather than Alsa.) ## Chrome for Linux http://www.google.com/chrome/intl/en/eula_dev.html?dl=unstable_i386_deb ## Lexmark z2300 2009-09-20 14:07:40 :: ~/src/lexmark-z2300/installer-deb rons@ga-e7aum-ds2h$ sudo sh startupinstaller.sh Collecting info for this system... Operating system: linux CPU Arch: x86 TRACKING IDENT = 14052009 cpu speed = 1200 MHz ram size = 3536.9921875 MB /tmp = 6986 MB , /usr/local = 18244 MB remove existing jre installing bundled jre /home/rons/src/lexmark-z2300/installer-deb/pkg/files/jre1.6.0_07.bin -d /usr/local Lexmark Z2300 Series = lxkusb://Lexmark/Z2300%20Series SELECTION ==> Lexmark Z2300 Series success chdir /usr/bin launching the launcher ## Doesn't work? For me, neither. Then I installed the usb printer module: ## modprobe usblp ## Fuck. Me. ## ESATA Linux troubles hotswap Thermaltake BlacX Duet usb esata docking station Aug 17 19:31:00 debian kernel: sd 0:0:0:0: [sda] Attached SCSI disk Aug 17 19:31:00 debian kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300) Aug 17 19:31:00 debian kernel: ata2: link online but device misclassified, retrying Aug 17 19:31:00 debian kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300) Aug 17 19:31:00 debian kernel: ata2.00: failed to IDENTIFY (I/O error, err_mask=0x100) Aug 17 19:31:00 debian kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300) Aug 17 19:31:00 debian kernel: ata2: link online but device misclassified, retrying Aug 17 19:31:00 debian kernel: ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300) Aug 17 19:31:00 debian kernel: ata2.00: failed to IDENTIFY (I/O error, err_mask=0x100) Aug 17 19:31:00 debian kernel: ata2: limiting SATA link speed to 1.5 Gbps Aug 17 19:31:00 debian kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310) Aug 17 19:31:00 debian kernel: ata2: link online but device misclassified, retrying Aug 17 19:31:00 debian kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310) Aug 17 19:31:00 debian kernel: ata2.00: failed to IDENTIFY (I/O error, err_mask=0x100) Aug 17 19:31:00 debian kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310) Aug 17 19:31:00 debian kernel: ata2: link online but device misclassified, retrying Aug 17 19:31:00 debian kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310) Put a jumper on pins 5-6 on a WD drive to enable OPT1 mode, forcing to 150GB/S operation. This apparently works around a problem with the NV MCP79 chipset in Linux. ## Bank of America Safe Pass Linux Safepass flash Debian Iceweasel http://www.akshayshah.org/archives/178 about:config general.useragent.extra.firefox;Firefox/3.0.12 ## The Iceweasel bit is all it cares about, not Linux. ## evolution segfault segmentation fault crashes imap gmail libcamelimap rm ~/.evolution/mail/imap//folders.db-journal ## Have I finally stumbled upon the key to using find/xargs on files with special characters? 2009-03-21 15:03:18 :: /data/video rons@ga-e7aum-ds2h$ find -name '*_bb.avi' -print0 | xargs -0 --replace='{}' mv "{}" BlackBerry/ ## Gigabyte mobo problems with Lenny/new Debian after custom kernel compiled, ## but it worked when I installed. Let's see what the install used... 2009-03-08 22:36:31 :: ~/src/kernel rons@ga-e7aum-ds2h$ vim /var/log/installer/hardware-summary 2009-03-08 22:36:31 :: ~/src/kernel rons@ga-e7aum-ds2h$ lspci -knn [...] 03:00.0 IDE interface [0101]: JMicron Technologies, Inc. JMB368 IDE controller [197b:2368] Subsystem: Giga-byte Technology Device [1458:b000] ## Installed JMB3xx driver. Will that fix it? Yes. Yes it will. Yahoo! 2009-03-08 23:03:13 :: ~/src/kernel/linux-2.6.28 rons@ga-e7aum-ds2h$ sudo insmod ./drivers/ata/pata_jmicron.ko 2009-03-08 23:03:13 :: ~/src/kernel/linux-2.6.28 rons@ga-e7aum-ds2h$ dmesg | tail pata_jmicron 0000:03:00.0: PCI INT A -> Link[AE4A] -> GSI 16 (level, low) -> IRQ 16 pata_jmicron 0000:03:00.0: setting latency timer to 64 scsi6 : pata_jmicron scsi7 : pata_jmicron ata7: PATA max UDMA/100 cmd 0xa000 ctl 0xa400 bmdma 0xb000 irq 16 ata8: PATA max UDMA/100 cmd 0xa800 ctl 0xac00 bmdma 0xb008 irq 16 ata7.00: ATAPI: _NEC DVD_RW ND-3550A, 1.05, max UDMA/33 ata7.00: configured for UDMA/33 scsi 6:0:0:0: CD-ROM _NEC DVD_RW ND-3550A 1.05 PQ: 0 ANSI: 5 scsi 6:0:0:0: Attached scsi generic sg3 type 5 ## Well, sorta. It's there now, but not as the traditional /dev/hd[a-z], but as /dev/scd0, ## and now we need the SCSI cdrom driver sr_mod. (Which I did compile along with the jmicron ## driver above. So: 2009-03-08 23:12:10 :: ~/src/kernel/linux-2.6.28 rons@ga-e7aum-ds2h$ sudo insmod ./drivers/scsi/sr_mod.ko ## And GNOME pops up a dialog for it! Added to /etc/fstab instead of /dev/hda, and we're off! ## When reinstalled and copied ~/.mozilla, ## iceweasel/firefox save dialog missing, save image as, context menu ## nothing would pop a save file chooser dialog. Edit -> Preferences -> Main -> Downloads -> Save files to ... ## Set to a valid directory, even if you have "Always ask me" checked. ## Connecting to Netgear WGPS606 Network Print Server via Linux/CUPS ## http://www.sapphyre.org/documents/netgear-wgps606.html Description: Netgear WGPS606 - Canon Pixma ip4300 Location: TV Room Printer Driver: Canon PIXMA iP4300 - CUPS+Gutenprint v5.0.2 Printer State: idle, accepting jobs, published. Device URI: lpd://print-server/L1 ## packaging your custom kernel as a deb fakeroot make-kpkg --append-to-version="-$( date +%Y%m%d+%H%M )" kernel_image ## Launching an app on another xserver. user1$ sudo -u user2 gedit --display=:1 text-file-to-edit.txt & No protocol specified cannot open display: :1 Run 'gedit --help' to see a full list of available command line options. user1$ echo "feck" user1$ echo "hey type xhost +localhost" | write user2 user2$ xhost +localhost user1$ sudo -u user2 gedit --display=:1 text-file-to-edit.txt & [1] 12345 user1$ echo "cool" 2009-01-09 10:41:55 :: ~ ## for a set of servers, has a process been running since some arbitrary date rons$ deploy_epoch=$( date --date='2009-01-07' +%s ) ; for hn in $( seq -fj%02g 1 1 ) $( seq -fl%02g 1 1 ) ; do start_epoch=$( sudo ssh $hn "ps xo lstart,cmd | fgrep tail-and-spread | grep -Ev '/bin/[a-z]*sh|fgrep' | cut -c1-24 | xargs -I{} date --date={} +%s" ) ; updated= ; [ $start_epoch -gt $deploy_epoch ] && updated=1 ; msg="$hn :: File::Follower used by tail-and-spread.pl is" ; if [ $updated ] ; then echo "$msg fresh." ; else echo "$msg stale." ; fi ; done ## Output decision structured as above to allow for simple toggling of which state to show. 2009-01-09 10:25:02 :: ~ ## Days since some date rons$ echo $(( (`date +%s` - `date --date='2009-01-07' +%s`) / 86400 )) 2 ## interactive renaming of some tv episode rips quinn@debian$ for fn in *.avi ; do ls -l $fn; read -p "Episode #? "; ep=$( printf '%02d' $REPLY ) ; read -p "Title? " ; title=$REPLY ; nn="Episode $ep - $title.avi" ; nn=$( echo $nn | sed 's/"/\\"/g' ) ; mv "$fn" "$nn" ; ls -l "$nn" ; done ## tailing a log until it rotates, then tailing the new one while ( sleep 1 ) ; do sleep $(( `date +%s -dtomorrow00:30 ` - `date +%s` )) & tail -f /log/logs/imp_gobbler_logs/gobbler-log-$( date +%Y%m%d ).txt --pid=$! ; done ## subtract the epoch seconds representation of a half hour past midnight tonight from the current time, sleep til then and pass that sleep process id for tail to wait for, then repeat ## while (sleep 1) is an idiom I'll be using now, as inflationary while (true) loops have bitten me once too often. ## randomizing a file random file ## awk's great and all, but this is a bit hairy $ cat /etc/passwd | awk -F: 'BEGIN { srand() } { print rand() "\t" $1 }' | sort | cut -f2- ## Sometimes perl is the best choice $ perl -e 'print sort { rand() <=> rand() } <>;' /etc/passwd ### Unless you're lucky enough to have the most recent coreutils $ sort --random-sort /etc/passwd ### Or the 'shuf' command. $ shuf /etc/passwd ## rounded corners in the gimp #. Create new image of full desired dimensions #. Select all, fill interior with border color #. Shrink selection by x (x =~ 5px || 10px) #. Grow selection by y (y =~ 2px || 5px) #. Feather selection by z (z =~ 2px) #. Fill interior with desired color #. Grow selection by a (a =~ 1px || 3px) #. Invert selection #. Fill exterior with desired color ## JSON perl cpan JSON fucking piece of shit JSON curly brackets curly braces truncating first character ## Try setting option allow_barekey as per below. No, you can't pass options on instantiation of your JSON object, and no you can't pass them all into some ->set_options method. You have to set each with a method call. 2008-11-13 12:52:09 :: ~/work/lab/DBIC rons$ perl -Mrc -Mstrict -MJSON -e 'my $json = JSON->new; $json->allow_barekey(1); print Dumper(from_json(q{ { foo: 300 } }));' unexpected end of string while parsing JSON string, at character offset 4 ["oo: 300 } "] at -e line 1 2008-11-13 12:52:13 :: ~/work/lab/DBIC rons$ perl -Mrc -Mstrict -MJSON -e 'my $json = JSON->new; $json->allow_barekey(1); print Dumper($json->decode(q{ { foo: 300 } }));' { 'foo' => 300 } ## perl rapid prototyping inner classes in single same file ## As per below, be sure to comment out your "use" statement. "use" calls "require" with an implicit import(), and require wants to find an actual file. By having the package in the same file, they're already available. Doesn't seem right, as use-ing an already-loaded package wouldn't try to find a file ... would it? In any case, in the code below, $INC{'Foo'} is undefined, so even tho we have access to it, it doesn't seem to be in the %INC hash. package Foo; sub new { return bless {}, shift; } package main; #use Foo; my $foo = Foo->new; ## linux kernel 2.6.27 ## not syncing no init found https://kerneltrap.org/mailarchive/linux-kernel/2008/9/25/3417774/thread CONFIG_SECURITY_ROOTPLUG=n ## I didn't think I'd chose that for my most recent kernel compile. Maybe I did before, and it's only in this new version that it looks for the device. Kind of a cool feature, tho. I could use a ratty old low-cap USB drive as a sort of ignition key for my PC. Still, it only prevents programs running as root. If someone has physical access, they could just read the drive for any data they need. ## Fun with tput changing color terminal echo "$(tput bold)$( tput setaf 2 ) Bold and green! $(tput sgr0)" echo "$(tput smso)$( tput setaf 2 ) Inverse and green! $(tput rmso)" ## man tput, man terminfo, search for setaf for color numbers ## http://certcollection.org/forum/topic/78476-9-unix-linux-tput-examples-control-your-terminal-color-and-cursor/ ## Cool graphical (generated HTML, not ncurses) cmdline presentation of used space: apt-get install gt5 ## Human-readable partition usage sorted by percentage used Use%. 2008-10-21 12:16:47 :: ~ quinn@debian$ df -h | sort --key=5 -n ## linux cmdline ping fastest host apt-get install netselect 2008-10-18 21:39:24 :: ~/personal/cygwin/cyg-mirrors quinn@debian$ perl -ne 'm{://([^/]+)/} and $hosts{$1}++;' -e 'END { print join("\n", sort keys %hosts); }' raw-north-american-mirrors.html | xargs netselect -v ## well, it would be, but the cyg mirrors aren't responding to traceroute, so nothing is scored by netselect :( ## Here's a one-liner using plain old ping. 2008-10-18 21:52:16 :: ~/personal/cygwin/cyg-mirrors quinn@debian$ ( for hn in $( perl -ne 'm{://([^/]+)/} and $hosts{$1}++;' -e 'END { print join("\n", sort keys %hosts); }' raw-north-american-mirrors.html ) ; do echo -n "$hn: " ; ping -c1 -w1 $hn | grep -Eo 'time=.+$' || echo "TIMEOUT" ; done ) | sort --key=2.6 mirror.cs.vt.edu: time=41.9 ms cygwin.mirrors.hoobly.com: time=42.9 ms rsync.osuosl.org: time=44.9 ms ftp.epix.net: time=45.9 ms cygwin.osuosl.org: time=54.9 ms mirror.cps.cmich.edu: time=60.9 ms mirror.mcs.anl.gov: time=60.9 ms www.goh4.com: time=63.9 ms sourceware.mirrors.tds.net: time=65.9 ms mirrors.xmission.com: time=78.9 ms cygwin.elite-systems.org: time=97.9 ms mirrors.kernel.org: time=97.9 ms ftp.gtlib.gatech.edu: TIMEOUT mirror.calvin.edu: TIMEOUT mirror.nyi.net: TIMEOUT www.gtlib.gatech.edu: TIMEOUT ## http://snipplr.com/view/7676/load-jquery-in-firebug/ j=document.createElement("SCRIPT"); j.src="http://code.jquery.com/jquery-latest.pack.js"; document.getElementsByTagName("HEAD")[0].appendChild(j); ## Cygwin Xterm shortcut ## "This application failed to start because cygICE-6.dll was not found ..." C:\cygwin\usr\X11R6\bin\run.exe -p /usr/X11R6/bin xterm -display 127.0.0.1:0.0 -ls ## And more Cygwin resources for the rare installation when everything's been forgotten... ## General tips http://bluwiki.com/go/CygwinTips ## Installing everything http://cygwin.com/faq/faq.setup.html#faq.setup.everything ## More setup tips, including using shared NFS home as Cygwin home http://software.jessies.org/salma-hayek/cygwin-setup.html ## cyg-apt wget http://www.lilypond.org/~janneke/software/cyg-apt http://genepath.med.harvard.edu/mw/Installing_cyg-apt ## Stab at unattended mode http://www.findatlantis.com/wiki/index.php/Installing_all_of_Cygwin_unattended The steps necessary are as follows: 1. Download setup.exe from the cygwin web site. 2. Run the installer conventionally, choosing the options for downloading to a local directory without installing anything. Make sure you have everything set to 'Install' in the choose packages page. 3. Run the sed script over the downloaded setup.ini file: cp setup.ini setup.ini-backup sed "s/[cC]ategory:.*/Category: Base/" < setup.ini > setup.temp cp setup.temp setup.ini This now leaves you with a 'canned' version of Cygwin that will install from the command line as follows: setup.exe -q --local-install --root c:\where\you\want\to\put\cygwin -l c:\path\to\installer\directory ## Maybe wrap above into a single script that fetches setup.exe, runs with your preferred mirror to download-only, then does what it does? Could setup.ini be hacked to choose "install" for everything? ## Maybe this does it: http://www.mail-archive.com/unattended-info@lists.sourceforge.net/msg01060.html ## Even better, a script for it: http://www1.maths.lth.se/help/windows/cygwin/ ## Cached at http://fazigu.org/~quinn/kb/cygwin/cygwinSetup. ## More Cygwin beautification tips: http://barrkel.blogspot.com/2007/12/cygwin.html ## toshiba portege 3500 linux net boot pxe ## Not a complete record of my travails, alas. :( ## Most came from here: http://syslinux.zytor.com/wiki/index.php/PXELINUX#How_Should_I_Setup_My_DHCP_server.3F # sudo apt-get install tftpd-hpa dhcp3-server pxe cat >> /etc/network/interfaces <> /etc/dhcp3/dhcpd.conf <\n\nWasteland Animations\n}; foreach my $fn (@ARGV) { print qq{\n}; } print "\n";' *.gif > index.html ## Get it here: http://fazigu.org/~quinn/files/wasteland/ ## Will see if I can send it to the Wiki. ## Compare HTML files between two directory structures ## Show a diff with highlighting for each ## Prompt between files ## Avoid prompting if not output ## The cleverness here is tee'ing to /dev/stderr. I see the output, but my pipeline continues to count the words to determine whether or not there was any ouput. ## Alternatively, I could have saved the output (seems to omit newlines), or used an extra diff just to check for differences. ## The "tee" trick seems useful for cases where I want to pipe to some operator while "leaking" the data to the screen, thus I'm recording it here! for fn in $( find htdocs_1/subdir/ -regex '.*\.\(html\)$' -not -name '*#*' ) ; do otherfn=$( echo $fn | sed 's#htdocs/#htdocs_2/#' ) ; clear ; diff_lines=$( diff -u $fn $otherfn | hldiff | tee /dev/stderr | wc -l ) ; if [ "$diff_lines" -lt 2 ] ; then continue ; fi ; echo -e "\n\n" ; read -n1 -p "[$diff_lines lines :: Press any key for next file] " ; done ## Downloaded BlackBerry JDE. ## Used wine to install Sun JDK. ## Used winetricks to install Windows Installer MSI2.0 2008-09-15 20:01:43 :: /data/wine/scratch quinn@debian$ WINEDLLOVERRIDES="msi,msimsg32,msisys,ole32,oleaut32,rpcrt4=n" wine BlackBerry_JDE_4.6.0.exe err:module:import_dll Library rpcrt4.dll (which is needed by L"C:\\windows\\system32\\services.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\services.exe" failed, status c0000135 err:wineboot:start_services_process Unexpected termination of services.exe - exit code -1073741515 err:module:import_dll Library rpcrt4.dll (which is needed by L"C:\\windows\\system32\\explorer.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\explorer.exe" failed, status c0000135 err:module:import_dll Library ole32.dll (which is needed by L"C:\\windows\\system32\\advpack.dll") not found err:module:import_dll Library rpcrt4.dll (which is needed by L"C:\\windows\\system32\\setupapi.dll") not found err:module:import_dll Library setupapi.dll (which is needed by L"C:\\windows\\system32\\advpack.dll") not found err:rundll32:main Unable to load L"C:\\windows\\system32\\advpack.dll" err:module:import_dll Library ole32.dll (which is needed by L"Z:\\scratch\\BlackBerry_JDE_4.6.0.exe") not found err:module:import_dll Library OLEAUT32.dll (which is needed by L"Z:\\scratch\\BlackBerry_JDE_4.6.0.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"Z:\\scratch\\BlackBerry_JDE_4.6.0.exe" failed, status c0000135 ## Downloaded these bitches from dll-files.com: 2008-09-15 22:52:14 :: /data/wine/dll quinn@debian$ ll *.zip -rw-r--r-- 1 quinn quinn 639346 Sep 15 22:47 ole32.zip -rw-r--r-- 1 quinn quinn 408868 Sep 15 22:48 oleaut32.zip -rw-r--r-- 1 quinn quinn 323231 Sep 15 22:42 rpcrt4.zip ## Copy them all into drive_c/windows/system32/, then run the install ## PREPEND JDK bin to your path at ~/.wine/system.reg, e.g.: "PATH"=str(2):"C:\\Program Files\\Java\\jdk1.6.0_10\\bin;C:\\windows\\system32;C:\\windows" Simulator still doesn't seem to work, but I'm trying to do everything within Wine (rather than extracting now-installed bits to Linux), so maybe that's to be expected. It builds, tho! ## t-mobile tmobile outlook blackberry outlook web access OWA blackberry ## blackberry enterprise server privacy snooping ## I don't want the company's nose in my Bb. ## I do want my corporate email. http://www.blackberryforums.com/rumor-mill/3438-support-outlook-web-access-2003-a.html http://support.t-mobile.com/knowbase/root/public/tm22699.htm * Login to my.t-mobile.com * Learn -> Messages and Email * Set up BlackBerry e-mail < Confirm PIN > < Confirm EULA > * Add e-email account: e-mail, password x2 ## Use MSIE. "Next" does nothing, otherwise. * Additional information required ; I will provide the settings * Choose: My work account * Choose: Outlook Web Access * Enter webmail URI (https if necessary), other details. (In my case, I entered my username (not email or CORP\username) as user AND as mailbox. Didn't work without specifying the mailbox/folder name.) ## xmame map joystick insert coin start ## TAB during game to set controls; seems to save them as XML here: 2008-09-10 23:36:03 :: ~/.xmame quinn@debian$ cat /home/quinn/.xmame/cfg/default.cfg JOYCODE_1_BUTTON9 OR KEYCODE_1 JOYCODE_1_BUTTON10 OR KEYCODE_5 ## BECAUSE I KEEP FREAKING FORGETTING THE CMD ## And daughter gets ANGRY 2008-09-10 19:58:48 :: /data/games/MAME quinn@debian$ xmame -s 3 frogger -jdev /dev/input/js0 # Maybe need to jscal -c /dev/input/js0 ## blackberry ssh client http://www.technicallythinking.com/2007/12/06/free-ssh-on-your-blackberry/ http://xk72.com/wap/ Use Blackberry version OK, but whoops: "Session Error - Writer: Invalid tunnel name" http://www.blackberryforums.com/blackberry-network/2185-blackberry-internet-msn-chat-web-telnet-tcpip-no-bes.html Options -> Advanced Options -> TCP APN: wap.voicestream.com Seems to work! ## emacs22 icon for windows xp http://fazigu.org/~quinn/files/icons/emacs-notebook.ico ## 32x32 grabbed from my linux machine, loaded in gimp, saved as Microsoft Windows Icon File (*.ico) ## No idea who originally created it. It's nice, though. ## Details for Cygwin emacs22 desktop shortcut: Target type: Application Target location: bin Target: C:\cygwin\bin\run.exe -p /usr/X11R6/bin /usr/local/bin/emacs22 -display 127.0.0.1:0.0 Start in: C:\cygwin\bin ## Need to specify -display above for it to work? ## perl perl5.10 segfault Apache $r GD DBI DBD::Oracle Using the global $r (e.g. passing to Apache::Request->new) outside of an Apache environment (where it will be undefined...or worse) results in a segfault. Solution: don't use it. E.g. $r && { what you did that segfaults }; ## BlackBerry only syncs Default Calendar. Couldn't get working with below; will try later. http://www.rp0229.com/blog/2007/12/13/syncing-multiple-calendars-using-google-calendar-sync/ ## Use of uninitialized value in subroutine entry at <...> line 109. Got this doing a map. Undefs were in the argument list being passed to the block within the map. This reproduces it: $ perl -Mstrict -we 'use List::Util qw/sum/; print sum(undef);' Use of uninitialized value in subroutine entry at -e line 1. 0 Why does sum() complain, but not other subroutines? $ perl -Mstrict -we 'sub foo { "string: " . $_ } ; print foo(undef, undef, undef);' Use of uninitialized value $_ in concatenation (.) or string at -e line 1. string: Turn off warnings, of course it shuts up. I'd never seen a complaint about passing an undef into a subroutine. It seems as if something is actually dying within my map, or otherwise interrupting the implicit return of the sole expression within the block. This throws the error: return sum map { $_->$method(@args) } $self->_contents; But this does not: return sum map { return $_->$method(@args) } $self->_contents; But a { die } block does indeed die, and a { warn } does indeed warn. Calling a nonexistent method clucks the proper error. Wtf? WTF? Fuck it. I'll just put the return in there. ...but putting in the return actually aborts the whole map and returns from the parent. Don't do that. The problem is that sum() is getting an @undef, not an (undef), and doesn't know what to do. Just make sure the map is actually mapping over something. ## perldoc perlsyn Way at the bottom, note on comments used as hints to the parser % perl # line 345 "goop" eval "\n#line " . __LINE__ . ' "' . __FILE__ ."\"\ndie 'foo'"; print $@; __END__ foo at goop line 345. ## NOTE :: Comment cannot be indented-- must be start of line ## Decent overview of Xresources http://web.mit.edu/answers/xwindows/xwindows_resources.html xterm -name xterm-big This process will have a class of XTerm, but an instance of xterm-big. So, you could create resources like this: XTerm*reverseVideo: on xterm*VT100.geometry: 80x24 xterm-big*VT100.geometry: 80x48 xterm-small*VT100.geometry: 80x10 where EVERY xterm you start up will have reverse video on, but one started with the '-name xterm-big' option will have one geometry, one started with the '-name xterm-small' option will have another, and one started with no specific name will default to the name 'xterm' and have yet a different geometry. (The VT100 designation is used to indicate that the geometry is for the main text window, and not the menus or subwindows.) ## 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 ## 256-color xterm hints http://frexx.de/xterm-256-notes/ http://vim.wikia.com/wiki/256_colors_in_vim ## Had to add TERM=xterm-256color to bashrc to get screen to use the full spectrum of colors ## 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$ 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 ## Clocksource tsc unstable (delta = 2350969233 ns) add clock=pit to kernel boot options eg. in /boot/grub/menu.lst https://bugs.launchpad.net/ubuntu/+source/linux/+bug/190414 clocksource=hpet ## linux /proc available timers ## clocksource tsc unstable "cat /proc" http://fixunix.com/hardware/243541-what-clock-source-my-kernel-using.html ~/src/kernel/linux-2.6.27 hacker@debian$ cat /sys/devices/system/clocksource/clocksource0/available_clocksource acpi_pm jiffies tsc acpi_pm might have fixed the problem, after I re-enabled ACPI in BIOS. ## 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 ## cvs ignore does not fucking work It does, if you know that to ignore something, you have to add a .cvsignore file to the directory in which that something is located, containing the wildcards relative to that directory. ~/.cvsignore seems to work sometimes, maybe only for single filenames? E.g. I added ".cvsignore" to ~/.cvsignore to ignore the .cvsignore files. ## 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 ## speaker test alsa-utils package has speaker-test ## 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://vinnakinky.just.nu/ http://www.angelfire.com/musicals/limmaskinkbit/the_hat.txt # slacker You should never traumatize a woman sexually. I should know; I'm a medical doctor. ## stop checking my disk while i'm rebooting a mazillion times This filesystem will be automatically checked every 20 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. # tuning the disk #/sbin/hdparm -d1 -m16 -X66 /dev/hda #/sbin/hdparm -c1 -d1 -k1 -X68 /dev/hda -c1 enable 32-bit mode (-c3 sets if supported, but all recent systems support) -d1 enable DMA -k1 saves -dmu options (use only when sure options are working) -m16 read 16 sectors per interrupt (WD Caviar recommends 4-8) -X set PIO mode, seldom necessary and dangerous # my fucking slapd/ldap/sasl nightmare I am guessing "ldap_sasl_interactive_bind_s: No such object" usually means that an SASL mechanism was not specified. Give it to ldapsearch et al with -Y CRAM-MD5. With an "sasl-realm fazigu.org" and "saslpasswd -u fazigu.org quinn" having been issued as root, authorization seems to work. It did NOT for quite some time, dying with a "no secret in database" error. At one point I restarted the server with a "by * write" access which might have allowed it to write the secret. I don't know. What the fuck? Now it works. Christ. Another revelation! I fixed "ldap_sasl_interactive_bind_s: No such attribute" by adding the following access rule BEFORE ALL OTHERS in slapd.conf: -----cut----- # userPassword can be changed by the owner if authenticated access to attr=supportedSASLMechanisms,entry by anonymous read by * read -----cut----- It's specific, so it has to be before other more general rules. It allows anonymous clients to access the supportedSASLMechanisms and the entry attributes of the database, which allows authentication. Adding the above allows me to proceed with authentication when testing with ldap* commands. Ah-ha--another revelation! Using SASL, set your rootdn to something like the following: rootdn "uid=quinn+realm=fazigu.org" Substituting your uid and realm, of course. This one works where the suggested "uid=quinn@fazigu.org" DID NOT. I found this out by turning loglevel 384 and checking /var/log/debug, which told me which user was trying to access what, or who it /thought/ I was. Once SASL is working, you can change the user password with saslpasswd as root like so: `saslpasswd -u fazigu.org quinn`. Fucking Netscape! If you add objectClass to the access entry we went over above, then it can safely authenticate! Woohoo, yay! -----cut----- # userPassword can be changed by the owner if authenticated access to attr=supportedSASLMechanisms,entry,objectClass by anonymous read by * read -----cut----- Maybe if it spoke SASL it wouldn't be an issue, but Netscape apparently doesn't, so it doesn't work. Maybe I need to install TLS. Whatever; it works now and I'm happy! # graphic designer and printer filler text lorem ipsum dolor sit amet, consectetur, adipisci velit, etc. full explanation: http://www.straightdope.com/columns/010216.html # Awesome tips for running a simple page-displaying server listening # on a port using the netcat or socket programs, from Andru Luvisi # via the MOO-Cows list. You can use the netcat or socket programs to make something simple. Using netcat, you could do something like: while :; do nc -l -p 7777 < /path/to/file; done With socket, you could do something like: socket -bcflqswp 'cat /path/to/file' 7777 netcat is available from http://www.avian.org/, socket is available from http://www.ibiblio.org/pub/Linux/system/network/misc/. # creating a buttonbar in linux with the gimp, imagemagick, and perl Create new image background white, foreground your text color. Mine started as 640x22 with an 18px font. Use the text tool to write out your series of text button titles. Spacing only matters inasmuch as you leave enough to properly pad each word. No need to be exact. Next create a new image with the colors inverted (white foreground this time), and repeat the text in the same position. I just guesstimated pasting it in, but one could probably copy it from the old image and invert the colors with a fill. The final GIMP step is to use the crop tool to select a block for each button, copying its boundaries into a file as per the list below. 0,0,59,22 home 70,0,61,22 news 139,0,87,22 services 236,0,76,22 support 324,0,52,22 chat 388,0,85,22 shopping That's x-origin/offset, y-origin, x-width, y-width. Those coordinates are separated by a single tab from the name of each button. perl -ne 'BEGIN { $CONVERT="/usr/bin/convert"; $UNSBAR = "buttonbar.gif"; $SELBAR = "buttonbar_selected.gif"; $UNSSUFF = ".gif"; $SELSUFF = "_selected.gif"; } ($xo, $yo, $xw, $yw, $name) = m/^(\d+),(\d+),(\d+),(\d+)\s+(\w+)/; next unless $name; $dims = "${xw}x${yw}+${xo}+${yo}"; `$CONVERT -crop $dims $UNSBAR ${name}$UNSSUFF`; `$CONVERT -crop $dims $SELBAR ${name}$SELSUFF`;' regions.txt # when my console-data packaged messed up with an apt-get upgrade, this # is what i did to fix the situation, re-configuring dpkg-preconfigure to # use --priority=low so it would ASK me before just failing repeatedly # when i tried to dpkg --configure -a. this is probably the way to # "get back" that screen you get during an apt-get upgrade spam; note # you must use a deb filename and not a package name. dpkg-preconfigure --priority=low /var/cache/apt/archives/console-data_1999.08.29-14_all.deb # getting 3d working on linux/x11/xfree86 and 3dfx voodoo3 (bent towards Debian) apt-get install xlibmesa3 compile kernel 2.4.x+, enabling tdfx driver DRI support be sure to add tdfx to /etc/modules if `glxinfo` shows "indirect", it didn't work if it shows Voodoo as your renderer, you're golden # my little shell for testing hazel from the command line by setting # the QUERY_STRING (export REQUEST_METHOD=GET must have already been issued) export QUERY_STRING="payment_method=cod&bill_email=quinn@fazigu.org&action=finish_cod&client=`./hazel.cgi -action test | perl -ne 'print $1 if /client=(\d{8,8})/'`" && gdb hazel.cgi # using openssl to encrypt and decrypt a message # en/decryption involves two types of files: # (1) Certificate files for sender and recipient. # (2) Private keyfile used by recipient to decrypt the message. openssl smime -encrypt -in foo.txt keepers/mycert.txt | openssl smime -decrypt -inkey keepers/mykeyfile.pem -recip keepers/mycert.txt # output the lines of a file in reverse order perl -e 'open(FP, "_toonlist.html"); @FILE = ; close(FP); while ($line = pop @FILE) { print $line; }' # inefficient way to merge multiple postscript files into a single one, with # both-sided printing turned on perl -e '$page = 1; $pages = scalar(@ARGV); open(PAGE, shift(@ARGV)) or die; while () { s/^%%Pages: \d+/%%Pages: $pages/; s/%%EndComments/%%Requirements: Tumble Duplex\n%%EndComments/; print unless /^%%EOF/; } close PAGE; foreach (@ARGV) { open(PAGE, $_) or die; ++$page; while () { if (not /^%%/) { print; } elsif (/^%%Page: \d+/) { print "%%Page: $page\n"; } } print "%%EndPage\n"; } print "%%EOF\n";' GW--350ppi_Character_Sheet_Front.ps GW--350ppi_Character_Sheet_Back.ps > GW--350ppi_Character_Sheet.ps # upgrading debian xserver user not authorized edit allowedusers=console in /etc/X11/Xwrapper.config # lil grep line to view unique hosts hitting a certain page, excluding me grep '~quinn' /var/log/apache/fazigu.org-access.log | grep -v requiem | perl -ne '/^(.+) - -/ and print "$1\n";' | sort | uniq # limey naughty words from http://www.theregister.co.uk/content/28/15418.html WORD "Technical", "thu" => "Marketing"); foreach $month (1..12) { foreach $i (1..5) { while (($DAY, $MEETING) = each(%MEETINGS)) { printf "0000%.2d$DAY$i\t\t$MEETING Meeting @ $TIME\n", $month; } } }' >> .gcalrc # good example of using -ne flags to perl with an END summary line perl -ne '$clients{$1}++ if /client-id (\d+): STORED_COOKIE `/; END { while (($key, $val) = each(%clients)) { print "$key:$val\n"; }}' hazel.err # doing an nslookup on the REMOTE_ADDR of user files with a STORED_COOKIE for ip in `grep -l STORED_COOKIE user*.txt | xargs grep REMOTE_ADDR | sed 's/user.*\.txt:_REMOTE_ADDR://g;' | sort | uniq`; do nslookup $ip | grep 'Name:'; done # fucking bash while docs always so fucking hidden while (! cp ~quinn/hazel.cgi .) do echo; done # How I forced my Alt key to be a Meta, since I'm too ham-handed to # distinguish the Windows key on my 104-key keyboard. xmodmap -e "keycode 64 = Meta_L" -e "keycode 113 = Meta_R" -e "clear mod4" -e "add mod1 = Meta_L" # uh or maybe it was this that worked: xmodmap -e "clear mod4" -e "clear mod1" -e "add mod1 = Alt_L" # here's a one-liner some might find amusing # backslash rip hair out fucker for fn in Braveheart_*; do perl -e "\"$fn\" =~ m/_([0-9]+)\._/; printf(\"mv \\"$fn\\" Soundtracks--\$\`--%0.2d--\$'\n\", \$1);"; done # finding text in slashcode slash table mysql select bid from blocks where blockbak like "%cl.gif%"; select * from blocks where bid = "nvmoowho"; update topics set image="topicall.gif",height=100,width=100 where alttext="All Topics"; insert into users (realemail, nickname, matchname, passwd) values ("gulliver@fazigu.org", "Gulliver", "gulliver", "funky"); # Strip Napster-downloaded files of those goddamned spaces. for fn in *; do mv "$fn" `echo $fn | sed 's/ - /--/g' | sed 's/ /_/g'`; done # Using a MouseSystems PC Point Pro Mouse with XFree86 XF86 Section "Pointer" Protocol "PS/2" Device "/dev/mouse" SampleRate 150 Resolution 1280 EndSection I'm using the PS/2 adapter for mine. If you're not, use MicroSoft as the protoocol. /dev/mouse is a pointer to /dev/psaux for me; it'll be different for you depending on where your mouse is plugged. SampleRate probably doesn't make any difference. `Resolution 1280' is what made the cursor stop jumping around. # Siberian cats This breed of cat is alleged to not produce the protein in saliva which dries into dander which aggravates those with cat allergies. My wife bought the cat for ~$500 (her money from a work bonus). Although she'd been exposed to "sample fur" sent by the breeder with no ill results, the cat itself has thrown her into periodic asthma attacks. After buying a hepa filter, regularly vacuuming, grooming the cat, changing the litter, it seems a bit better. It was the pollen season, so could have been unrelated to the cat. We shall see! We've spoken with two veterinarians and neither has heard of the Siberian breed. # BARF bone and raw food diet cats wet food bones We started our "Siberian" kitten on a bone and raw food diet--a chicken wing or breast every day. She certainly seems to enjoy it, flipping it overhead and attacking the cold meat as if it's prey! We've since cut down on the actual raw food due to the mess it's made. We now give her Sheeba every day, with an occasional chicken wing. We do notice that her anal emissions (shit, poo) are stinkier with the wet food than with the raw. # debt consolidation sites debt911.org, genus.org # My system, a socket 7 on an M590 motherboard from PC Chips, tends to crash a lot. What can I do? Get a new motherboard. I bought an ASUS P5AB and it ROCKS. For once, everything runs right. PC Chips is a piece of shit. The board claims to have an FSB of 100, but it's actually 90. That's why an AMD K62-550 running 100x5.5 will actually run at 450! Very bad motherboard. Do not buy PC Chips. BAD BAD BAD. # Hi, my mother-fucking Apache server insists on serving one of my (the first) VirtualHost instead of the DocumentRoot I have specified outside of all VirtualHost blocks. What the fuck should I do? Thanks. Add a `NameVirtualHost YOUR_IP_ADDRESS' somewhere in httpd.conf, then name all your hosts with and the ServerName directive within to point to the particular name Apache should handle for that block. # compressing an image to low-quality jpg and uuencoding it convert -quality 10 -sample 300 hello.jpg nipples.jpg && uuencode nipples.jpg nipples.jpg > nipples.jpg.uue # converting CMYK or other colorspaces to RGB for linux convert -colorspace RGB cmyk.jpg rgb.jpg # quick way to HTML index a directory of images with bash for fn in *; do echo "
  • $fn
  • " >> index.html; done # More info on nitroseamines, said to be a/the cancer-causing agent, # currently being removed from some strains of tobacco, possibly # leading to a cancer-free cigarette? Maybe all the meat-and-potatoes # eating from years past is really why cancer is such a problem. # from http://www.cryonet.org/archive/11363 As I avoid getting hooked up in any matter as those to much for a long time, another subject is what I've learned in a book on what to eat, from our taxpaid governmental food agency here as we trust to be neutral. This is very interesting since a lot of people get cancer not knowing why. The fact is veggies contains more or less a lot of nitrates, eggs meat and fish has aminoacids. Those are good separate, but mixed in the body as most people eat, they make nitroseamines as cause cancer. Since this is hard to make evident in humans, as only done in smaller animals, no alarm is set off yet. So I try to avoid mixing amines with nitrates, its possible but hard sometimes with mixed products in the store ie tablemargarine. Meat and potatoes is a no-no, ricemix ok as far as I know. # compiling ssh on SCO openserver edit auth-passwd.c, around line 743 if ( (!pr->uflg.fg_nullpw || !pr->ufld.fd_nullpw) && !pr->uflg.fg_pw_admin_num && strcmp(correct_passwd,"")==0 ) Comment out the offending middle line. I think it's just checking to make sure the person isn't root, but I have a phone call now. Bye! # wheelmouse in linux ms intellimouse microsoft Here's my Pointer section in /etc/X11/XF86config: Section "Pointer" Protocol "IntelliMouse" Device "/dev/mouse" ZAxisMapping 4 5 EndSection Making Netscape work is a much spammier affair. Here's where I got on track: http://www.linux.ie/beginners-linux-guide/intellimouse.html Oh, if your mouse seems slow and it's a cordless one, make sure the goddamned batteries are set, or try moving the receiver. Cell phones will interfere with it. Not sure about x10 stuff. # get an internal modem to work with linux to dialup PPP, mine being a USR 56k ISA Linked /dev/mouse to ttyS0 (COM0, my first, 9-pin serial port) and /dev/modem to ttyS3 (COM4). I mention the mouse here because the first time I got everything working, the mouse was real slow when I was online. COM0/COM2 and COM1/COM3 share IRQ, so pairing a mouse and modem on those matching COM is going to result in a sluggish mouse response. Set PnP-Aware OS to NO in the BIOS, manually setting the COM1 and COM2 IO ports to 3F8 and 2F8 Used `pnpdump > isapnp.conf` to make a raw isapnp configuration file, of which I ended up using these two lines: (IO 0 (SIZE 8) (BASE 0x02e8)) (INT 0 (IRQ 3 (MODE +E))) You'll need isapnptools to do that, of course. May also have to use setserial: setserial /dev/modem uart 16550A io 0x02E8 irq 3 setserial /dev/mouse uart 16550A io 0x03F8 irq 4 You can make this happen at boot by editing /etc/rc.boot/0setserial Might wanna make sure you use the symbolic /dev/mouse|modem files in /etc/gpm.conf and /etc/ppp/peers/provider. All this on Debian, of course, all trial-and-error (with help from the Modem-HOWTO!), and your mileage will most definitely vary. # bad slab magic on linux corrupt memory panic alt-sysreq If Linux is bombing with a "bad slab magic" and your kernel was compiled with a newer gcc (such as ecgs/gcc 2.9xx), try recompiling your kernel with gcc version 2.7.2. You can get it through Debian by apt-getting gcc272. My system would crash at odd times, beyond even an alt-sysreq rescue. Seems to be doing better since recompiling, but we won't know until it fails, and I hope it doesn't. UPDATE: months later and no crashes! I also got a new ASUS P5AB mobo motherboard to replace my piece of shit PCCHIPS M590, and am very happy. # a simple tfrc tiny.worlds whatever $ cat >> ~/.tfrc < autocorrect -> autoformat as you type -> smart quotes checkbox" ---------------------------------Humility---------------------------------- On the Tools menu, click AutoCorrect, and then click the AutoFormat As You Type tab. Under Replace as you type, select or clear the "Straight quotes" with "smart quotes" check box. ---------------------------------Humility---------------------------------- # setting what your terminal type termtype TERM is in .Xdefaults or .Xresources eg. to set it to xterm from xterm-debian or to vt100 or ansi XTerm*termName: xterm-debian # my hostname is in /etc/hostname, but where's my damn domainname? /etc/resolv.conf with domain keyword # problems with smail on debian, no smail config solution: apt-get remove uninstall smail and use exim instead use eximconfig to configure # connection to child 8 closed, SSL problems with MSIE > Here's the little section I found in httpsd.conf. It was set on by > default for the default site, but I hadn't put it in the global section > for all the virtual SSL hosts. Putting it there fixed the IE problem. > # Notice: Many problems with broken clients are also related to the > # HTTP keep-alive facility. You may additionally want to disable > # keep-alive for those clients. Use variable "nokeepalive". > # > SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown # e-mail me if you have a digital copy Un Chien Andalou and/or L'Age d'Or (Land Without Bread) Luis Bunuel/Salvador Dali on video rtsp://216.246.7.99:554/unchein.rm http://www.incredibleart.com/iartlive/features/theatre/unchien.html need better copy # KEGS is an awesome linux apple2 appleII apple// apple2gs appleIIgs apple//gs emulator while primarily a GS emulator, will also boot old apple game disk images! try searching for XGS to get a drive image, and GS roms can be found by searching for gsrom01 or gsrom03 on altavista http://www.crosswinds.net/san-jose/~kentd/kegs/ # 80-column mode, activate slot 3 ] pr#3 # reboot slot 6, disk 1 so you can play Wasteland BWAHAHAHA ] pr#6 # (I can hardly believe I remembered those!) # What happened to the Asimov archive at ftp.apple.asimov.net? ftp://mirror.apple.asimov.net/pub/apple_II/ # tingling in forehead pineal gland third eye tingling After reading much Lovecraft and watching FROM BEYOND in the 80's, I thought the tingling in the middle of my forehead was my pineal gland trying to escape. Possibly a third eye? A sense organ with input I'm unable to interpret? I asked a psychiatrist once and he said it was just subdermal muscle twitches. I'm not sure I believe him. Feel free to e-mail me if you can make your forehead tingle. # portable shared library shared libaries plugin module support info libtool, libltdl libtool dynamic library support libtoolize --ltdl --copy when made, PLUGIN.la and PLUGIN.so.0 are the relevant files # sativah smoke herbal nwpipe.com occasional aphrodisiacal effects, but mostly nothing after a week of smoking # how do i get gcal to show fixed dates 15 days in the future, two weeks in the future, x days in the future AHAAHA the `d' also shows today! yahoooo! # gcal -x omits "Fixed date list:" header # gcal -o shows multiple occasions with only one date line # gcal -C will show empty dates as well as those with occasions alias qcal='gcal -x -o -cdl15+' # troublesome *bsd tcshrc or profile with modifications cat >> .tcshrc < Here's some excerpts from an article in our next issue, which will be on > newsstands in about 2-3 weeks: > > FAKE POT - WHAT IS THAT SHIT? > > The Hydro's ingredients are listed as "cheshteya buds" and "lettuce > opium". The Sweet Green is cheshteya and "arabian marachobah". Cheshteya > also appears in the Inda-Kind, with other mysterious herbs. > > A search for the word "cheshteya" on the Internet reveals that the word > appears only on websites selling these products, otherwise the term does > not exist. Our resident herbalists concluded that cheshteya was in fact > mullein, a herb commonly used as an alternate smoke. However, a fat bag of > mullein can be bought at any herb store for a buck, while a bag of these > cheshteya blends costs twenty times that. > > "Arabian marachobah" is another mysterious herb which exists only in fake > pot-land. The consensus was that this is in fact gotu kola. > > This kind of mislabelling and using exotic, pot-like terms for their > ingredients continues throughout all their smoking blends. The Inda-kind > contains "cannabaceae buds" which is hops (part of the cannabis family but > non-psychoactive), along with "mentha piperita" (peppermint), passiflora > incarnata (passion flower), and S. Officinalis (soapwort). > > Strangely, some websites which sell inda-Kind list different ingredients, > including Wild Dagga (Lion's Ear), Indian Hemp (dogbane) and Nepeta Mint > (catnip). I called Riverdale and asked the fellow on the phone why there > were different ingredients listed for the Inda-Kind. He said that the > formula had been changed within the last year, "but not significantly", > and that I should just trust the label. > > The herbal hash products include on the label a definition of hash: (noun) > 1. a jumble or mixture. This is presumably intended to get them off any > legal hooks. The Mean Green "Irie Jamaican Formula" includes ingredients > such as Marybud (Marigold), Jamaican Tangawizi (ginger), and the "TH3 > complex" of Lettuce Opium, Artemesia absinthum (wormwood) and cheshteya. > The "Turkish Brown Original Ultra-Chronic Blend" contains many of the same > herbs, as well as "Salvia O" (common sage) which is written as "Salvia O" > to make people think it's the psychoactive Salvia D., Salvia Divinorum. > > International oddities > > International Oddities' ads deride their competition, claiming that they > sell "herbal tea" and "slut out the market." They even include a small > package of Riverdale's "Hydro" with your order, calling it "cheezy shit". > Yet their's are essentially the same products with better packaging and > presentation. > > The "Thai Stix" is described in the ads as being a "highly resinous 7 inch > bud". Yet it's not a bud at all, but rather herbs pressed around a stick, > smeared with some kind of resin. The smoke tasted the same as the > Inda-Kind: thick, cloying and headache inducing. > > IO's "Skunk" is described as being a 1.5 gram bud, but it is actually > moist leaves pressed together in a glass vial. It tasted like cloves, but > was hard to identify in its mushed state after being removed from the > vial. > > The "BC Hydro-ponic" does look very similar to pot buds, but of course > looks can be deceiving. The buds are not true buds, but rather herbs > compressed together into bud-like shapes. What at first appeared to be > glistening crystals turned out to be, upon magnified examination, to be > some kind of sticky spray-on substance. Their ads describe this product as > being "10x strength" without specifying what it's 10x stronger than. > > The "Ultra Wizard Smoke" is not very smokable at all. It is mostly made up > of stems with a few dried, wilted leaves clinging pathetically to them. It > is hardly the "custom smoking hybrid" as advertised. > > The "Black Opium" is a tiny ball of gooey tar. The sticker on the baggie > says "Please don't SMOKE our BLACK OPIUM." I obeyed the subliminal > instruction and dropped a dollop onto the end of a joint. It was a very > floral taste, but didn't induce any dreamlike states or visions. > > -- > Dana Larsen, Editor, CANNABIS CULTURE MAGAZINE > Marijuana & Hemp Around the World - http://www.cannabisculture.com > Box 15 - 199 West Hastings, Vancouver, BC, Canada, V6B 1H4 > tel (604) 669-9069 - fax (604) 669-9038 (More at http://www.cannabisculture.com/cgi/article.cgi?num=1526.) # tobacco additives smoking oregano smoking basil smoking herbs bugler with either oregano or basil. # htaccess setup cat >> .htaccess < require group anygroup require valid-user EOF If you get a `user xxx not found' user not found message, make sure you don't also have auth_dbm or somesuch other authentication module loaded! Apache will likely ignore your simple crypt'd passwords, try DBM, say nothing about the file not being a DBM file, and you'll pull your hair our for an hour like I did. # making a password file perl -e '%passwd = ("name" => "pass", "nameN" => "passN"); while (($key, $val) = each(%passwd)) { print "$key:", crypt($val, $$), "\n"; }' # cheap .muttrc answer to eudora "personalities" first is a default # email and sig, others are for each given e-mail. these rules only # work if you use `g' to group reply. gave up trying to get them to # work with a normal `r' reply. send-hook . my_hdr From: Quinn send-hook . set signature="~/.signature.personal" send-hook rdawg@fazigu.org my_hdr From: R-DAWG!!! send-hook rdawg@fazigu.org set signature="~/.signature.rdawg" # key troubles kbd loadkeys default.kmap.gz keymap, rebooted and # my keyboard was switched to azerty! loadkeys /usr/share/keymaps/i386/qwerty/defkeymap.kmap.gz loadkeys /etc/kbd/default.kmap.gz cat /etc/init.d/keymaps.sh # my sweet vim settings without bright-ass highlighting cat >> $HOME/.vimrc < 0 && line ("'\"") <= line("$") | \ exe "normal g'\"" | \ endif endif EOF # using rcs ci -l file # first edit, enter description, lock for editing ci -u file # checkin, unlock, enter comment such as "Quinn did blah." ci -l file # as above, but keeps it locked if you wish to edit further rlog file # show the revision history of the file, with all comments # checking out cvs files from a remote server without using pserver # assumes account on USER@HOSTNAME, preferably with your ~/.ssh/identity.pub # in its ~/.ssh/authorized_keys export CVS_RSH='ssh' export CVSROOT=':ext:USER@HOSTNAME:/home/USER/cvsroot' cvs checkout MODULE # where MODULE is either a directory # /home/USER/cvsroot/MODULE, or it has been entered into # /home/USER/cvsroot/CVSROOT/modules echo "do some editing" cvs release -d MODULE # deletes the working directory cvs checkout CVSROOT # edit modules and other CVS control files # importing via cvs (cd into directory structure to be imported) # the revision isn't really important; it's just the starting tag cvs import netsville/hazel-3.9 Netsville Hazel_3_9 (repository dir) (vendor) (branch/rev) # font tips The first change I made was switching the 75dpi and 100dpi FontPath statements. This change made my displayed fonts larger and easier to read. I then modified the misc, 100dpi, and 75dpi statements by adding the unscaled parameter. This change really makes a big improvement on font pixelation. For redundancy's sake, you can keep the scaled FontPath parameters, too, like I did. FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/Type1" FontPath "/usr/X11R6/lib/X11/fonts/Speedo" FontPath "/usr/X11R6/lib/X11/fonts/misc" FontPath "/usr/X11R6/lib/X11/fonts/100dpi" FontPath "/usr/X11R6/lib/X11/fonts/75dpi" # Toggling CirculateRaise On. perl -pi -e 's/CirculateRaise = No;/CirculateRaise = Yes;/g;' GNUstep/Defaults/WindowMaker grep CirculateRaise GNUstep/Defaults/WindowMaker Turning CirculateRaise on crashes Java in Netscape! ARGH! # httpd.conf running a secure server with raven, thinking it's always secure Check `Port' directive in httpds?.conf. Make it default to 80, not 443. # concatenating two binary files together in windows COPY /b FILE1+FILE2 FILE3 found through DOC of carve20a.zip DOS fileutil at simtel ftp://ftp.simtel.net/pub/simtelnet/msdos/fileutil/carve20a.zip # new case for macosX config.guess Power*Macintosh:Mac*OS:10.0:*) echo powerpc-apple-macos${UNAME_RELEASE} exit 0 ;; Also add a rule in config.sub for 'macos*' under system type. # GTK theme BeOS, Aqua won't work libpixmap.so missing apt-get install gtk-engines-pixmap # crash msie # sed subs sed -e 's/.*<\([^>]*[^>]\)>.*/\1/' sed -e '/<([^>]*[^>])>/q' | awk '{print $2}' | tr -d '<>' http://www.cornerstonemag.com/sed/sed1line.txt # renaming jpgs to gifs in html files find . -type f -name '*html' | xargs egrep -l 'header_|pic_nv' \ perl -pi -e 's~(pic|header)_([a-z]+).jpg~$1_$2.gif~gi;' # finding out who owns an IP address whois -h arin.net AA.XX.YY.ZZ # getting perl to run when setuid and ``tainted'' delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)} $cmdline = "$cmdline"; $cmdline =~ /(^.+$)/; $cmdline = $1; system($cmdline); # using gprof, be sure to add -pg to LD_FLAGS, as well! gprof hazel.cgi | perl -n -e '$yes++ if /^granularity:/; $yes = 0 if /^Index/; print if $yes > 1;' # Mutt won't allow backspacing Check your $TERM. Try linking xterm-color to xterm. # increasing mozilla font sizes cat >> ~/.mozilla/mozPrefs/prefs.js < # file descriptor symbols with integer counterparts stdin 0 stdout 1 stderr 2 # making a secure ftp tunnel with ssh ssh -f -L 2000:localhost:21 europa.netsville.com sleep 86400000 /dev/null # Reading Loki newsgroups with tin tin -g news.lokigames.com loki.requests # A big Hawaiian THANK YOU Mahalo! (A Big Hawaiian Thank You!) # Converting HTML tags to lowercase. Unfortunately, case-corrupts quoted attributes within. perl -pe 's~<(/?[^>]+)>~<\L$1>~g;' # Renaming Funnytimes cartoons. for fn in * ; do mv "$fn" `echo $fn | tr 'A-Z ' 'a-z_' | sed s/%2f/-/`.tiff; done # -sama, -san, -chan Message 9283 on *Q&A (#48454): -------------------------- Date: Thursday 15-Jul-99 16:30:08 From: Legion (#69858) To: *Q&A (#48454) Subject: Japanese 'Politeness' Suffixs Pax asks what the suffix -san means when used in Japanese. This is actually a pretty complex subject. Basically, Japanese has several levels of politeness. Broken down these are pretty much in the following catagories: inferior rank or status, equal rank or status, superior rank or status. There are special cases and further wrinkles of etiquette, but that's the easiest way to explain it for now. How this relates to suffixes is that you can relate the rank of the person you are addressing in relation to your own by the suffix you choose when addressing them. -San is most commonly used suffix when you are addressing a person whose rank or status is unclear in relation to your own. -San is also used to denote persons respected for their knowledge or who are of slightly greater status than yourself. When addressing people of clearly greater status than yourself, you would use the suffix -sama. When addressing a woman of equal or lower status intimately or affectionately you would use the suffix -chan (women of equal social status are automatically addressed as if they were social inferior). But when meeting strangers or addressing people to whom you have not been introduced, you use the suffix -san. Hope this helps, -------------------------- From http://www3.tky.3web.ne.jp/~edjacob/saq.html: Q. I have a question concerning the treatment of that ever-popular figure, Osama Bin Laden on Japanese TV news. Knowing a bit of Japanese, I am aware that the suspect in an investigation is usually referred to as yougisha (crime suspect), however Bin Laden is always referred to as shi (a respectful title) which always strikes me as being rather overly-polite. Surely, a simple san would be sufficient in his case? A1. "Famous people, especially musicians, manga artists, authors, actors, et cetera, are typically not spoken about with "san". Unless you know them personally, that is. News networks are only too ready to omit politeness when speaking about modern musicians, who many of them think are a pox on Japanese society. However, being a military commander does demand some level of respect among the Japanese (remember that in Japan, you bow to your opponent before you fight ) . Either way, in Japan they recognise that it is the job of news networks to remain impartial and as such they must treat leaders with respect. Since it is incorrect to use "san" for Osama, as he is a famous figure, they use "shi" because it is respectful without being venerable or exalted."--Answer kindly submitted by Jonas Rastro # Converting an MS Publisher *.pub file (such as the Jimmy Stewart Museum # JSM newsletter) into something reasonably readable. FN="1999fall.pub" && perl -pe "s/\\x91/\'/g; s/\\x92/\'/g; s/\\x96/--/g; s/\\x93/\"/g; s/\\x94/\"/g;" $FN | strings > `basename $FN .pub`.txt # Or a Word DOC: FN="hzlbroch.txt" perl -pe "s/\\x91/\'/g; s/\\x92/\'/g; s/\\x96/--/g; s/\\x93/\"/g; s/\\x94/\"/g;" $FN | strings > $FN.unms # How to META REFRESH # META and Netscape Navigator When Communicator updates a page, either through the Reload button or a meta tag, it checks for changes in HTML descriptions, but doesn't check check for changes within individual elements on the page. Because the HTML description of an image can remain the same even after the content of the image is updated, there may be applications, such as a webcam, for which you want to "force" an update. To force the update of individual elements on a page, you can use meta tags: # META NAME AND HTTP-EQUIV META with HTTP-EQUIV is directed to the server. If you had a server which responds to it, instead of using it's extension maps for determining the Content-Type, it should have used what you put as the value for the CONTENT attribute, and sent that in it's headers. Lynx, in turn, would cope with it via its header processing code in HTMIME.c. If you use NAME instead of HTTP-EQUIV, the server should ignore that META tag, and you can thereby pass client-specific instructions. Client's are free to ignore META tags altogether, and what they do with them, if anything, is client-specific. I added code to Lynx for checking a "no_cache" directive, directed either to the server via HTTP-EQUIV or selectively to clients via NAME, with either the the HTTP/1.0 ("Pragma") or HTTP/1.1 ("Cache-Content") syntax, and treating that as a directive always to resubmit any form(s) in the document. I did it simply to set up the code for using META, with an "example" function that would be useful for the present Lynx API. If you have other functions you'd like to invoke in Lynx via META directives, find the "added META functions here" comment in HTML.c, and add it analogously to the "example" function. # Rathe's hexidecimally coded messages. perl -e '$i = "Rathe's special code."; $i =~ s/([A-F0-9]{2,2})/pack("c", hex($1))/ge; print "$i\n";' # that song played at basketball games, parodied as Dr. Who Rock & Roll Part 2 - Gary Glitter (convicted pedophile) # tcsh completion variables set autolist set complete=enhance # The magical beauty of rsync! (rdist, mirroring) rsync --archive -e ssh fazigu.org:tmp/mp3 . rsync --archive -e ssh quinn@home-quinn:/usr/local/mp3 /home/ftp/pub/mp3 # But be sure to rename home files. rsync --dry-run --archive --update --verbose -e ssh user@source:/source-directory user@dest/dest-directory # Sound doesn't work. kernel: Sound: DMA (output) timed out - IRQ/DRQ config error? $ cat > /etc/conf.modules <sb alias must be removed (in /etc/modutils/aliases, and /etc/modutils/arch/i386), then one can `modprobe sound` and `modprobe sb` and get sound. If mpg123 doesn't work, your 16-bit output is probably not working. Use this in /etc/modutils/arch/i386: options sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330 It's apparently a problem with modprobe, and this solution was found by search deja.com for "invalid parameter parm_io". GRR. # Renaming a directory of tiff files transferred from a Mac. for fn in * ; do mv "'$fn'" "`echo $fn | sed -e "s/%2f/-/g;" -e "s/ /_/g;"`.tiff" ; done # Compiling gcc. cd /usr/local/src/gcc-2.8.1/ && make distclean && ./configure && make clean && make LANGUAGES="c c++ objective-c" && make stage1 && make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O2" && make stage2 && make CC="stage2/xgcc -Bstage2/" CFLAGS="-g -O2" && make stage3 && make CC="stage3/xgcc -Bstage3/" CFLAGS="-g -O2" && make stage4 && make CC="stage4/xgcc -Bstage4/" CFLAGS="-g -O2" && make compare && make install CC="stage2/xgcc -Bstage2/" CFLAGS="-g -O" LANGUAGES="c c++ objective-c" && make distclean # How to make the ugly crumbling broken fonts pretty again in X. Push the 75dpi FontPath to the top of the list. # Unconditionally remove a block (`b'), character (`c') or other special file. debugfs -w -R "rm /path/to/offensive/file" /dev/hdaWHATEVER # Resize a directory of images. for fn in *.pcd ; do convert -geometry 64x64 -rotate 180 $fn `basename $fn .pcd`_tn.jpg; done for fn in fs_*.jpg ; do convert -geometry 64x64 $fn `echo $fn | sed 's/fs_/tn_/;'`; done # What are `OFM' and `Intended Ratio' with regards to an aspect ratio? My guess is that OFM means `original film medium'. For example, a movie may be filmed in a 4:3 ratio, but the director only intends a certain center portion of the frame to be viewed in theatres. Sometimes these are transferred `full frame' to video, avoiding the `matte' of black bars, but perhaps exposing more of the shot than the director intended. # wrong pointer type stringp, nul in xemacs when using ftp/efs Try using a relative link ie. /user@host:docs/foo instead of /user@host:~/docs/foo. # Proper International Electrotechnical Commission byte size prefix. kibi, mebi, gibi, tebi, pebi and exbi. # urlencode a string. perl -e '$foo = "foo=bar&baz=foo&bar=b a z"; $foo =~ s/([^A-Za-z])/sprintf("%%\U%x", ord($1))/ge; print "$foo\n";' # Shell to rename files as Y2K-compliant. for fn in *.txt ; do mv $fn `echo $fn | sed s/-9/-199/;` ; done # Initial key repeat rate is suddenly too long. shift-numlock apparently toggles key repeat in X11. also try `xset r rate 0 0` # fixing mp3 skipping in linux mpg123 -b 4096 filename.mp3 # Yellow wood-strip hay-like flammable packing material. Excelsior! # Catting files one at a time with prompts in between. for fn in * ; do echo "-----$fn-----"; cat $fn; read; done # egrep's parenthizing egrep -i '(num|int).+"QUANTITY"' *.c # proftpd won't accept anonymous logins Make sure the ftp user has a valid shell! # MX record loops back to self in sendmail logs. Add machine alias to /etc/sendmail.cw # Screen commands C-a ESC enters scrollback. SPC begin/end mark C-a ] paste to stdin C-a > write buffer C-a < read buffer # Dynamic library path. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/new/path" # Number of elements in a Perl array. scalar(@array); # Last index of a Perl array. $#array; # Military Phonic Alphabet A - Alpha B - Bravo C - Charlie D - Delta E - Echo F - Foxtrot G - Golf H - Hotel I - India J - Juliet K - Kilo L - Lima M - Mike N - November O - Oscar P - Papa Q - Quebec R - Romeo S - Sierra T - Tango U - Uniform V - Victor W - Whiskey X - X-Ray Y - Yankee Z - Zulu # Shell for translating file case. for fn in * ; do mv $fn `echo $fn | tr A-Z a-z` ; done # Triggers in vt. \add_trig("#0", "*beep*", "\system(\"play --silent ~/GNUstep/Library/Sounds/dingdong.au &\");", 0, "", 1, 1, 0, 0); # Forcing From fields in elm. $ cat ~/.elm/elmheaders From: quinn@netsville.com # Intellipoint (or any unknown) mouse in X Does it work with GPM? If so you can just start gpm -R and have XF86 use /dev/gpmdata as a MouseSystems device. <$drippy (#109564)@LambdaMOO> # Can't ftp? Make sure your shell is in /etc/shells. # dewindowizer.pl while (<>) { s/\x91/\'/g; s/\x92/\'/g; s/\xE8/\'/g; s/\xE6/\`/g; s/\xF3/--/g; s/\x96/--/g; s/\x93/``/g; s/\x94/''/g; s/\xF4/``/g; s/\xF5/''/g; print; } # SCO shit cat >> $HOME/.profile <) { $words{$_} = ++$i; } close(OSPD); print "Ready. ($i words loaded)\n"; while () { print $words{$_} ? "The word is acceptable.\n" : "The word is unacceptable.\n"; }' # export a dbm file to a tab-delimited file perl -e 'dbmopen(%users, "users", 0555); while (($key, $val) = each(%users)) { print "$key\t$val\n"; }' | less # import a tab-delimited file into a dbm file perl -e 'dbmopen(%users, "users", 0755); open(FP, "users.tdf") or die; while () { chomp; ($key, $val) = split(/\t/); $users{$key} = $val; } close(FP); dbmclose(%users);' # Printing all file extension file types in a directory structure. ls -R1 | perl -ne 'print "$1\n" if /\.([^.]+)\s*$/;' | sort | uniq # Finding files in DOS format. find . -type f -print | xargs perl -ne 'next if $done{$ARGV}++; print "$ARGV is a DOS file.\n" if m/\r$/;' # Converting files to DOS format. find . -type f -print | egrep '(html|txt)$' | xargs perl -ni -e 'print, next if $skip{$ARGV}; if (m/\r$/) { print STDERR "Skipping DOS file $ARGV...\n"; $skip{$ARGV}++; print; } else { s/$/\r/; print; }' # Converting files to UNIX format. find . -type f -print | egrep '(html|txt)$' | xargs perl -ni -e 'print, next if $skip{$ARGV}; if (not m/\r$/) { print STDERR "Skipping UNIX file $ARGV...\n"; $skip{$ARGV}++; print; } else { s/\r$//; print; }' # Refontify an xemacs buffer w/font-lock-mode M-x font-lock-fontify-buffer # faking a CGI call, useful for debugging a compiled binary cgi setenv REQUEST_METHOD GET # or export REQUEST_METHOD=GET setenv QUERY_STRING 'foo=bar&baz=foo&bar=baz' # or export QUERY_STRING=... gdb ./cginame # a simple cgiwrap program in C $ cat <> cgiwrap.c #include #include #include #define MY_MAX_STRING 2048 void die(const char *why); int main(int argc, char **argv) { char *pathinfo; char cwd[MY_MAX_STRING+1], exepath[MY_MAX_STRING+1]; char *args[2]; pathinfo = getenv("PATH_INFO"); if (pathinfo == NULL) die("no PATH_INFO"); while (!isalpha(*pathinfo)) pathinfo++; if (getcwd(cwd, MY_MAX_STRING) == NULL) die("getcwd failed"); snprintf(exepath, MY_MAX_STRING, "%s/%s", cwd, pathinfo); args[0] = exepath; args[1] = NULL; execv(exepath, args); } void die(const char *why) { printf("Content-type: text/plain\n"); printf("\n"); printf("Cause of death: %s\n", why); exit(1); } /* setuid and just insert it after your cgi-bin and before the script */ /* you really want to run in the URL */ EOF cat <> moo.conf DATABASE=ghost PORT=6969 EOF cat <> restart.sh #!/bin/sh COMPRESS=gzip COMPRESS_EXT=gz if [ -r ./moo.conf ]; then . ./moo.conf elif [ $# -lt 1 -o $# -gt 2 ]; then echo 'Usage: restart dbase-prefix [port]' exit 1 else DATABASE=$1 PORT=$2 fi if [ ! -r $DATABASE.db ]; then echo "Unknown database: $DATABASE.db" exit 1 fi if [ -r $DATABASE.db.new ]; then mv $DATABASE.db $DATABASE.db.old mv $DATABASE.db.new $DATABASE.db rm -f $DATABASE.db.old.$COMPRESS_EXT $COMPRESS -f $DATABASE.db.old & fi if [ -f $DATABASE.log ]; then cat $DATABASE.log >> $DATABASE.log.old rm $DATABASE.log fi echo `date`: RESTARTED >> $1.log nohup ./moo $DATABASE.db $DATABASE.db.new $PORT >> $DATABASE.log 2>&1 & EOF DirectoryIndex index.shtml index.html index.php3 index.php index.hzml AddType text/x-hazel-hzml .hzml Action text/x-hazel-hzml /cgi-bin/hazel.cgi Message 16222 on *Q&A (#48454): -------------------------- Date: Saturday 14-Dec-02 16:02:02 From: Tessien (#109830) To: *Q&A (#48454) and *web (#114803) I forgot to mention what correct DOCTYPEs actually are. Here's a list: HTML XHTML Also, a good article on DOCTYPE switching can be found at http://developer.apple.com/internet/html/doctype.html . # the ASCII version of the goatse image * g o a t s e x * g o a t s e x * g o a t s e x * g g o / \ \ / \ o a| | \ | | a t| `. | | : t s` | | \| | s e \ | / / \\\ --__ \\ : e x \ \/ _--~~ ~--__| \ | x * \ \_-~ ~-_\ | * g \_ \ _.--------.______\| | g o \ \______// _ ___ _ (_(__> \ | o a \ . C ___) ______ (_(____> | / a t /\ | C ____)/ \ (_____> |_/ t s / /\| C_____) | (___> / \ s e | ( _C_____)\______/ // _/ / \ e x | \ |__ \\_________// (__/ | x * | \ \____) `---- --' | * g | \_ ___\ /_ _/ | g o | / | | \ | o a | | / \ \ | a t | / / | | \ |t s | / / \__/\___/ | |s e | / / | | | |e x | | | | | |x * g o a t s e x * g o a t s e x * g o a t e x *