Note: You are viewing an old version of this page. View the current version.

Differences between version 34 and predecessor to the previous major change of CyberLeo.

Other diffs: Previous Revision, Previous Author

Newer page: version 34 Last edited on Saturday, 10 July 2010 21:15:34 by CyberLeo Revert
Older page: version 25 Last edited on Monday, 14 June 2010 1:53:38 by CyberLeo Revert
@@ -20,84 +20,25 @@
  
 !! Notes 
 * [Verify alba's raid|CyberLeo/alba] 
  
-!! Scrapbin 
+!! [ Scrapbin|CyberLeo/Scraps]  
 * [clone.sh|KnowledgeBase/Scripts/clone.sh] 
 * [/sbin/installkernel] 
+* [Creating a Mix CD|CyberLeo/Scraps/MixCD]  
+* Track link quality using ping and a bit of shellscripting: [PingyThing|CyberLeo/Scraps/PingyThing]  
+* Interface with Google's Charts service: [GoogleCharts|CyberLeo/Scraps/GoogleCharts]  
+* [Redacting passwords|CyberLeo/Scraps/ProtoPasswdScrub] from ~ProtoMUCK's logfiles is annoyingly convoluted.  
  
 !! Copy dependent libraries into a chroot jail: 
 <verbatim> 
 /bin/sh -c 'fifo="/tmp/ldd-$$"; mkfifo -m 600 ${fifo}; ldd /usr/sbin/sshd | cut -f2 | cut -d" " -f3 | tee ${fifo} | tail -n $(( $( cat ${fifo} | wc -l ) - 1 )); rm -f ${fifo}' | cpio --pass-through --make-directories /root/chroot/sshd/ 
 </verbatim> 
  
 Console Progress Bar for FreeBSD is in misc/clpbar 
  
-<code brush="bash">  
-# Extract waveform data  
-for I in *.mp3; do lame --decode "${I}" "wav/$(basename "${I}" .mp3).wav"; done  
-for I in *.flv; do mplayer -vo null -ao pcm:fast:file="wav/$(basename "${I}" .flv).wav" "${I}"; done  
-  
-# Strip off leading and trailing silence  
-bash  
-for I in *.wav  
-do  
- echo -n "==> ${I} : "  
- echo -n "copy "; cp "${I}" 00.wav || kill $$  
- echo -n "silence "; sox 00.wav 01.wav silence 1 0.1 0.1 || kill $$  
- echo -n "reverse "; sox 01.wav 02.wav reverse || kill $$  
- echo -n "silence "; sox 02.wav 01.wav silence 1 0.1 0.1 || kill $$  
- echo -n "reverse "; sox 01.wav 00.wav reverse || kill $$  
- echo "move"; mv 00.wav "${I}" || kill $$  
-done  
-  
-# Normalize all tracks  
-normalize -m *.wav  
-</code>  
-  
-Generate a toc with this:  
- [generate_toc.sh |KnowledgeBase /Scripts /generate_toc .sh ]  
-  
-Then edit the TOC to add CD Text information:  
- <code >  
-CD_DA  
-  
-CD_TEXT {  
- LANGUAGE_MAP {  
- 0 : EN  
- }  
-  
- LANGUAGE 0 {  
- TITLE "Mix CD"  
- PERFORMER "Various Artists"  
- }  
-}  
-  
-TRACK AUDIO  
-CD_TEXT {  
- LANGUAGE 0 {  
- TITLE "She Got It"  
- PERFORMER "2 Pistols"  
- }  
-}  
-AUDIOFILE "2 Pistols - She Got It.wav" 0  
-  
-TRACK AUDIO  
-CD_TEXT {  
- LANGUAGE 0 {  
- TITLE "How's It Going To Be"  
- PERFORMER "3rd Eye Blind"  
- }  
-}  
-AUDIOFILE "3rd Eye Blind - How's It Going To Be.wav" 0  
-</code>  
-  
-And burn using the raw driver, to ensure the CD-TEXT gets written:  
-<code brush="bash">  
-sudo cdrdao write --speed 1 --device /dev/sr0 --driver generic-mmc-raw -v 2 -n --eject cd.toc  
-</code>  
-  
-I've forgotten this three times already : [DVDisaster |http://dvdisaster .net
+I've forgotten this three times already : [DVDisaster |http: //dvdisaster .net ]<br >  
+This looks interesting : [Tarsnap |http://www .tarsnap.com
  
 <code brush="bash"> 
 # Convert sha1(1)-compatible into cfv's sha1sum-format 
 sed -e 's#^SHA1 (\./\(.*\)) = \(.*\)$#\2 *\1#g' shas 
@@ -108,5 +49,22 @@
  
 FreeBSD misdetects the amount of installed memory on a K7S5A Pro board with 1GB PC3200. Force it: 
 <code brush="plain"> 
 hw.physmem="1073741824" 
+</code>  
+  
+Commonly used mkisofs options  
+<code brush="plain">  
+mkisofs # Command  
+ -v # Verbose  
+ -gui # Format output messages for use by GUI tools  
+ -iso-level 4 # ISO-9660:1999  
+ -D # No deep directory relocation for ISO-9660:1999  
+ -J # Generate Joliet records for Win32 systems  
+ -R # Generate SUSP/RR records, using the Rock Ridge protocol, for Unix systems  
+ -r # As -R, but normalizes certain values (uid/gid are 0, all entries are ugo+r-w, etc)  
+ -no-pad # Do not pad ISO to 150 sectors (useful for DVDisaster or uzip images)  
+ -p CyberLeo # Specify string for 'Preparer' volume header field  
+ -V FS-Label # Specify string for 'Volid' (label) volume header field  
+ -o <file>.iso # Name of file to hold resultant image  
+ <sourcedir> ... # One or more directories whose contents will be shoved into the image root  
 </code> 

version 34

http://friends.cyberleo.net/cyberleo/pub-ssh.txt

Teams

Copyright

Tasks

  • PleskAPI - 90% - Awaiting feedback
  • Billing
  • Accounts Infrastructure
  • Support Ticket System

Notes

Scrapbin

Copy dependent libraries into a chroot jail:

/bin/sh -c 'fifo="/tmp/ldd-$$"; mkfifo -m 600 ${fifo}; ldd /usr/sbin/sshd | cut -f2 | cut -d" " -f3 | tee ${fifo} | tail -n $(( $( cat ${fifo} | wc -l ) - 1 )); rm -f ${fifo}' | cpio --pass-through --make-directories /root/chroot/sshd/

Console Progress Bar for FreeBSD is in misc/clpbar

I've forgotten this three times already: DVDisaster
This looks interesting: Tarsnap

# Convert sha1(1)-compatible into cfv's sha1sum-format
sed -e 's#^SHA1 (\./\(.*\)) = \(.*\)$#\2 *\1#g' shas

# Convert cfv's sha1sum-format into sha1(1)-compatible
sed -e 's#^\([0-9A-Fa-f]\{40\}\) [* ]\(.*\)$#SHA1 (./\2) = \1#g' stuff.sha1

FreeBSD misdetects the amount of installed memory on a K7S5A Pro board with 1GB PC3200. Force it:

hw.physmem="1073741824"

Commonly used mkisofs options

mkisofs            # Command
 -v                # Verbose
 -gui              # Format output messages for use by GUI tools
 -iso-level 4      # ISO-9660:1999
 -D                # No deep directory relocation for ISO-9660:1999
 -J                # Generate Joliet records for Win32 systems
 -R                # Generate SUSP/RR records, using the Rock Ridge protocol, for Unix systems
 -r                # As -R, but normalizes certain values (uid/gid are 0, all entries are ugo+r-w, etc)
 -no-pad           # Do not pad ISO to 150 sectors (useful for DVDisaster or uzip images)
 -p CyberLeo       # Specify string for 'Preparer' volume header field
 -V FS-Label       # Specify string for 'Volid' (label) volume header field
 -o <file>.iso     # Name of file to hold resultant image
 <sourcedir> ...   # One or more directories whose contents will be shoved into the image root