Skip to content

Instantly share code, notes, and snippets.

@jperkin
jperkin / albumart.md
Last active December 10, 2015 13:58
Album Art Scanning Preferences

Goal

To come up with optimal settings for album art.

Scan Settings

Here we want to produce the best image from the scanner, and save the resulting file as an archive copy.

Scanner: Canon MG5250 Multifunction, TIFF images cropped to largest square

@jperkin
jperkin / gist:4445992
Created January 3, 2013 18:59
grep -r '^ld:' upstream-trunk32/20130102.1102
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to pop3p
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to socks
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to ftppr
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to udppm
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to tcppm
9base-20100604nb2/build.log:ld: fatal: library -lm: not found
9base-20100604nb2/build.log:ld: fatal: library -lc: not found
9base-20100604nb2/build.log:ld: fatal: file processing errors. No output written to yacc
FSViewer-0.2.5nb10/build.log:ld: fatal: symbol referencing errors. No output written to FSViewer
Gauche-0.9.3.3/build.log:ld: fatal: unrecognized option '--'
@jperkin
jperkin / gist:4446033
Created January 3, 2013 19:01
grep -r '^ld:' upstream-trunk64/20121230.2310
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to pop3p
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to ftppr
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to socks
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to tcppm
3proxy-0.5.3.11nb1/build.log:ld: fatal: symbol referencing errors. No output written to udppm
9base-20100604nb2/build.log:ld: fatal: library -lm: not found
9base-20100604nb2/build.log:ld: fatal: library -lc: not found
9base-20100604nb2/build.log:ld: fatal: file processing errors. No output written to yacc
FSViewer-0.2.5nb10/build.log:ld: fatal: symbol referencing errors. No output written to FSViewer
Gauche-0.9.3.3/build.log:ld: fatal: unrecognized option '--'
--- a/pkgtools/pbulk/files/pbulk/pbuild/pbuild.c
+++ b/pkgtools/pbulk/files/pbulk/pbuild/pbuild.c
@@ -174,6 +174,7 @@ main(int argc, char **argv)
int
build_package(const char *build_info, size_t len)
{
+ struct sigaction sa;
int input[2];
pid_t child;

Not 'make -j' safe

# bmake
===> Building for libcouchbase-2.0.2
dtrace -C -h -s src/probes.d -o src/probes.h
/opt/local/bin/gmake  all-am
gmake[1]: Entering directory `/home/pbulk/build/2012Q4-multiarch/wip/libcouchbase/work/libcouchbase-2.0.2'
dtrace  -C -G \
              -o src/.libs/libcouchb\ase_la-probes.o \
              -s ./src/probes.d \
@jperkin
jperkin / gist:4569345
Created January 18, 2013 22:45
pbulk breakage
[root@pkgsrc-pbulk-master ~]# grep 'No match' /shared/bulklog/upstream-trunk32/meta/presolve-err.log
pbulk-resolve: No match found for dependency kdebase3-[0-9]* of package bulk-large-20130113
pbulk-resolve: No match found for dependency kdelibs3-[0-9]* of package bulk-large-20130113
pbulk-resolve: No match found for dependency konversation-kde3-[0-9]* of package bulk-large-20130113
pbulk-resolve: No match found for dependency mysql51-client-[0-9]* of package bulk-large-20130113
pbulk-resolve: No match found for dependency mysql51-server-[0-9]* of package bulk-large-20130113
pbulk-resolve: No match found for dependency mysql55-client-[0-9]* of package bulk-large-20130113
pbulk-resolve: No match found for dependency mysql55-server-[0-9]* of package bulk-large-20130113
pbulk-resolve: No match found for dependency ruby-rails3-[0-9]* of package bulk-large-20130113
pbulk-resolve: No match found for dependency ruby-rails31-[0-9]* of package bulk-large-20130113
@jperkin
jperkin / sngl.sh
Last active December 11, 2015 11:38
sngl script
#
# Post-chroot setup
#
# - crle
#
mkdir -p /var/ld/64
touch /var/ld/ld.config /var/ld/64/ld.config
crle -l /lib:/system/usr/lib:/system/usr/ccs/lib -s /lib/secure:/system/usr/lib/secure
crle -64 -l /lib/64:/system/usr/lib/64:/system/usr/ccs/lib/amd64 -s /lib/secure/64:/system/usr/lib/secure/64
#
@jperkin
jperkin / DESCR
Created March 13, 2013 16:35
vowpal_wabbit package
Add a description here :)
@jperkin
jperkin / README.md
Last active September 11, 2018 15:09
Creating a NetBSD VM on SmartOS

Instructions for building a NetBSD VM

Install

vmadm create < netbsd-install.json
vmadm list
zoneuuid=...
cp NetBSD-6.0-amd64.iso /zones/$zoneuuid/root/netbsd.iso

vmadm boot $zoneuuid order=cd,once=d cdrom=/netbsd.iso,ide

-> bmake -f modts mod-ts
LIST="one two three four five six"
LIST:ts,="one,two,three,four,five,six"
LIST:ts/:tu="ONE/TWO/THREE/FOUR/FIVE/SIX"
LIST:ts::tu="ONE:TWO:THREE:FOUR:FIVE:SIX"
LIST:ts:tu="ONETWOTHREEFOURFIVESIX"
LIST:tu:ts/="ONE/TWO/THREE/FOUR/FIVE/SIX"
LIST:ts:="one:two:three:four:five:six"
LIST:ts="onetwothreefourfivesix"
LIST:ts:S/two/2/="one2threefourfivesix"