Skip to content

Instantly share code, notes, and snippets.

View wyoung's full-sized avatar

Warren Young wyoung

View GitHub Profile
Running: chroot /.updateStage pkg-static unlock -ay
pkg-static: warning: database version 34 is newer than libpkg(3) version 33, but
still compatible
pkg-static: sqlite error while executing INSERT OR ROLLBACK INTO pkg_search(id,
name, origin) VALUES (?1, ?2 || '-' || ?3, ?4); in file pkgdb.c:1544: no such ta
ble: pkg_search
Destroyed successfully
Error 74: chroot /.updateStage pkg-static unlock -ay
ERROR: Error 74: chroot /.updateStage pkg-static unlock -ay
Running: pkg-static upgrade -U -y
@wyoung
wyoung / parens.md
Created March 13, 2017 18:00
Markdown paren test
@wyoung
wyoung / gist:a8cce0dcc4bb5fe19f55dbf7f657b2a6
Created October 17, 2016 22:11
TrueOS 12.0 upgrade loop log
pc-updatemanager: Mon Oct 17 13:57:34 MDT 2016
Checking for updates to ports-mgmt/pkg..
Updating the package repo database...
Cleaning old pkg upgrade cache...
Verifying / fetching packages for ports-mgmt/pkg - pkg-1.8.7_3.txz
Verifying / fetching packages for misc/trueos-desktop - trueos-desktop-201610141
...etc, etc...
Verifying / fetching packages for x11/qterminal - qterminal-0.6.0.txz
-----------------------------------------------
Your update is ready to install. Please shutdown to finish the update process.
@wyoung
wyoung / centos-7-minimal-packages.txt
Created May 9, 2016 18:01
Packages included in a CentOS 7 Minimal installation
acl-2.2.51-12.el7.x86_64
aic94xx-firmware-30-6.el7.noarch
alsa-firmware-1.0.28-2.el7.noarch
alsa-lib-1.0.28-2.el7.x86_64
alsa-tools-firmware-1.0.28-2.el7.x86_64
audit-2.4.1-5.el7.x86_64
audit-libs-2.4.1-5.el7.x86_64
authconfig-6.2.8-10.el7.x86_64
avahi-autoipd-0.6.31-15.el7_2.1.x86_64
avahi-libs-0.6.31-15.el7_2.1.x86_64
@wyoung
wyoung / fsckrelprimes.fs
Created April 23, 2015 06:45
Parallel F# version of fsckrelprimes; verbose mode and progress reporting removed, since parallel status output gets confusing
(***********************************************************************
fsckrelprime.fs - A simulator for fsck frequency on ext[234] sytems
which shows that using relatively-prime max-mount-count values
gives a lower chance of multi-volume checks on reboot. See the
usage message for more details.
***********************************************************************)
open System
//// usage ///////////////////////////////////////////////////////////
@wyoung
wyoung / fsckrelprimes.cpp
Last active August 29, 2015 14:19
C++ version of faskrelprimes.pl
/***********************************************************************
fsckrelprime.cpp - A simulator for fsck frequency on ext[234] sytems
which shows that using relatively-prime max-mount-count values
gives a lower chance of multi-volume checks on reboot. See the
usage message for more details.
***********************************************************************/
#include <cstring>
#include <cstdlib>
#include <ctime>
@wyoung
wyoung / fsckrelprimes.pl
Last active August 29, 2015 14:19
Calculator for fsck combinations, giving the chance of two or more volumes needing to be checked at the same time
#!/usr/bin/perl
use strict;
use warnings FATAL => qw(all);
use Getopt::Std;
sub commafy { # from perlfaq5, since Number::Format is non-core
local $_ = shift;
1 while s/^([-+]?\d+)(\d{3})/$1,$2/;
return $_;