http://friends.cyberleo.net/cyberleo/pub-ssh.txt
Teams
- BOINCstats - http://www.boincstats.com/stats/boinc_team_graph.php?pr=bo&id=38709
- BOINCstats image - http://www.boincstats.com/signature/team_38709.gif
- SETI@Home - http://setiathome.berkeley.edu/team_display.php?teamid=121418
- Rosetta@Home - http://boinc.bakerlab.org/rosetta/team_display.php?teamid=982
Copyright
Orders
- DigiKey 2012-07-07
- DigiKey 2012-10-24
- Constructing external disk packs
- DigiKey 2014-06-01
- Machine Build 2014-09-01
Tasks
- PleskAPI - 90% - Awaiting feedback
- Billing
- Accounts Infrastructure
- Support Ticket System
- Bootstrap Gentoo
- FreeBSD+ZFS filesystem layout standard
- FreeBSD Jails filesystem handling ideas
- Web user privilege separation ideas
Bugs
Notes
Scrapbin
- clone.sh
- /sbin/installkernel
- Creating a Mix CD
- Track link quality using ping and a bit of shellscripting: PingyThing
- Interface with Google's Charts service: GoogleCharts
- Redacting passwords from ProtoMUCK's logfiles is annoyingly convoluted.
- Wake-on-Lan Magic Packet Generator in bourne shell (doesn't work)
- Dump display and Xinerama information
- Create background mosaics for Xinerama setups
- Suspend a build process during thermal overrun
- Custom Bash prompt with folding
- Cryptographically (in)secure port-knocking
- Patch to klcc from dev-libs/klibc to handle --param flags in CFLAGS
- Better disk usage analyzer
- Default Lighttpd configuration
- $lib/ajax
- FreeBSD init stuff
- shredname
Machines
- Intel SS4200 details
- BioStar Mini Daemon details
- Aopen Digital Engine DE2700 details
- Acer Aspire Easystore H340 details
- PogoPlug V3 POGO-P21 details
- OpenPandora details
- Raspberry Pi details
Projects
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
- Although misc/pv is probably better, now that I think about it
- I've forgotten this three times already: DVDisaster
- This looks interesting: Tarsnap
- TRIM ext4 on RAID1: http://www.kerneltrap.org/mailarchive/linux-raid/2010/5/25/6885148
- lzjb compression in javascript: Iuppiter
My own hashfile format: hashery.sh
Deduplicate file-level: dedupe.sh
# 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
# Convert a list of strings into a sed script to filter said strings from another file # Developed to filter a sha1 hashlist of all symlink-type files, which were computed separately sed -e 's/[][\.*^$/]/\\&/g; s/^/\//; s/$/\/d/'
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
Rubygems will no longer fall back to installing into ~/.gem if running as non-root. Provide --user-install on the gem command line to fix.
diskinfo(8)
Random
This'll work for zfs-fuse on linux. FreeBSD needs camcontrol or atacontrol instead of hdparm.
# Standby pool sudo zpool status data | sed -e '/disk\/by/!d; s/^\W*//; s/ .*$//; s/^/\/dev\//' | sudo xargs /sbin/hdparm -y # Check pool drive states sudo zpool status data | sed -e '/disk\/by/!d; s/^\W*//; s/ .*$//; s/^/\/dev\//' | sudo xargs /sbin/hdparm -C # Wake pool sudo zpool status data | sed -e '/disk\/by/!d; s/^\W*//; s/ .*$//; s/^/\/dev\//' | sudo sh -c 'while read dev; do dd iflag=direct if="${dev}" of=/dev/null bs=512 count=1 & done; wait'
This prints out temperatures
while sleep 5 do ( sensors -u | sed -e '/temp[0-9]*_input:/!d; s/^.*: //' nvidia-settings -tq [gpu:0]/GPUCoreTemp -q [fan:0]/GPUCurrentFanSpeed -q [gpu:1]/GPUCoreTemp -q [fan:1]/GPUCurrentFanSpeed 2>/dev/null ) | while read cpu0 do read nb0 read gpu0 read fan0 read gpu1 read fan1 printf "%s: CPU: %0.0fc NB: %0.0fc G0: %0.0fc %u%% G1: %0.0fc %u%%\n" "$(date +%H:%M:%S)" "${cpu0}" "${nb0}" "${gpu0}" "${fan0}" "${gpu1}" "${fan1}" done done
This seems useful
/usr/local/etc/portmaster.rc
# Log portmaster actions PM_LOG=/var/log/portmaster.log # Just keep going if the backup package operation failed (nvidia-driver likes to molest xorg-server) PM_IGNORE_FAILED_BACKUP_PACKAGE=pm_ignore_failed_backup_package # -D - Never delete distfiles; never ask in the middle of a build either DONT_SCRUB_DISTFILES=Dopt # -g - Always create a package of what was just built MAKE_PACKAGE=gopt # -w - Save old shared libraries during upgrade SAVE_SHARED=wopt
Display a graph of power-of-two sizes needed to hold files:
# FreeBSD find old -type f -exec stat -f %z {} + | awk 'function f(x){e=0;while(2^e<x){e++};return e};{print 2^f($1)}' | sort -n | uniq -c # Linux find old -type f -exec stat -c %s {} + | awk 'function f(x){e=0;while(2^e<x){e++};return e};{print 2^f($1)}' | sort -n | uniq -c
This page is getting a little too big. Here's a post-update git hook to force checkout when you push to the current branch. Beware that this will destroy uncommitted local changes!
#!/bin/sh export GIT_DIR="$(readlink -f "${GIT_DIR}")" export GIT_WORK_TREE="$(readlink -f "..")" # If the currently checked out branch has been updated, force-checkout branch=$(git branch | sed -e '/^\* /!d; s/^\* //') for ref in "${@}"; do [ "${branch}" = "${ref##*/}" ] && break; unset ref; done [ "${ref}" ] && ( echo "Current branch updated; forcing checkout" git checkout -f "${branch}" cd "${GIT_WORK_TREE}" && git clean -df ) exec git update-server-info
module Enumerable def each_with_progress(io = $stderr) return self.each unless block_given? count = self.count fmtlen = self.count.to_s.length fmt = "\r %u%% [%0#{fmtlen}u/%0#{fmtlen}u] \033[K" self.each_with_index do |item, index| io.printf(fmt, 100 * ( ( index + 0.0 ) / count ), index, count) yield item io.printf(fmt, 100 * ( ( index + 1.0 ) / count ), index + 1, count) end io.puts "" end end
TinyFugue
https://the-b.org/Tinyfugue_log_rotation# http://ingwar.eu.org/en/tf/download.php http://www.ingwar.eu.org/en/tf/instrukcja.php http://northstar-www.dartmouth.edu/doc/tf/topics/special_variables.html#time_format