Bulk Tumblr Image Posting
Sunday, 03. 17. 2013 – Category: sw
I didn’t really get along with the current offerings of bulk image uploaders, so I wrote one: tumblr-tools
This post is search fodder, mostly.
If you’re using freebsd-update
to upgrade FreeBSD and you run a custom kernel and temporarily using the generic kernel isn’t an option and it’s been ages since you’ve done this, then welcome!
$ sudo freebsd-update upgrade -r 9.1-RELEASE
[ warnings about custom kernel ]
$ sudo freebsd-update install
[ this is when the new generic kernel is installed if we weren't running a custom kernel ]
$ cd /usr
$ mv src{,-8.2}
$ sudo svn co https://svn.freebsd.org/base/releng/9.1/
$ sudo cp src{-8.2,}/sys/i386/conf/PULP
$ cd src
$ sudo rsync -a /boot/kernel{,-8.2}/
$ sudo make kernel-toolchain
$ sudo make buildkernel KERNCONF=PULP
$ sudo make installkernel KERNCONF=PULP
$ sudo reboot
$ sudo freebsd-update install
$ sudo reboot
The kernel-toolchain
bit is the important one. In the Old Days ((not really, but binary updating is way nicer)) of buildworld
the new kernel is built with the new world’s compiler, linker etc instead of what’s currently installed. Going directly to buildkernel
during the freebsd-update
dance means the custom kernel builds with the toolchain that’s about to be replaced.
Trying to build the new kernel with the old toolchain results in
- warnings-as-errors in random modules
- old kernel linker unable to parse new kernel link data
and no kernel.
Extracting voicememo name and file location from iTunes
Saturday, 03. 2. 2013 – Category: sw
iTunes helpfully copies voicememos from the phone to a handy local directory, but the filenames are just timestamps, which isn’t so great if you’ve diligently named them. The voicememo’s title is visible in iTunes, but it’s coy about revealing which file it corresponds to. So into the iTunes database we go… with xmlstarlet.
Because every Saturday morning needs some XML, right?
Recent articles
- Docker, SELinux, Consul, Registrator
(Wednesday, 04. 29. 2015 – No Comments) - ZFS performance on FreeBSD
(Tuesday, 09. 16. 2014 – No Comments) - Controlling Exim SMTP behaviour from Dovecot password data
(Wednesday, 09. 3. 2014 – No Comments) - Heartbleed OpenSSL vulnerability
(Tuesday, 04. 8. 2014 – No Comments)
Archives
- April 2015
- September 2014
- April 2014
- September 2013
- August 2013
- March 2013
- April 2012
- March 2012
- September 2011
- June 2011
- February 2011
- January 2011
- October 2010
- September 2010
- February 2010
- September 2009
- August 2009
- January 2009
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- February 2008
- January 2008
- November 2007
- October 2007
- September 2007
- August 2007
- December 2006
- November 2006
- August 2006
- June 2006
- May 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005