Skip to content

Instantly share code, notes, and snippets.

View almacro's full-sized avatar

Al Thompson almacro

View GitHub Profile
@almacro
almacro / LINKS-Containers.txt
Last active February 1, 2022 23:02
Container Hacking Links
ORIG: https://bl831.als.lbl.gov/~gmeigs/scripting_help/printf_awk_notes.txt
echo 123.4567 | awk '{printf "%.3f\n", $1}'
123.457
echo 123.4567 | awk '{printf "%.1f\n", $1}'
123.5
echo 123.4567 | awk '{printf "%2.1f\n", $1}'
@almacro
almacro / gist:25e9687969ad4fc6eb2c7d7a9c226344
Last active October 9, 2020 16:20
Build a cross-compiler toolchain
@almacro
almacro / HOWTO_phoronix-test-suite.md
Last active February 14, 2019 02:05
Quick phoronix-test-suite HOWTO

This HOWTO describes how to get quickly started running the Phoronix Test Suite. It was done on MSI GS63VR laptop with Geforce GTX 1070 running Ubuntu Xenial Xaurus system (16.04.5 LTS).

Install PHP

sudo apt-get install -y php

Install Phoronix' PHP dependencies

@almacro
almacro / gist:aa0b74cd2207c1770dd2
Created January 3, 2015 13:02
vagrant_err20150103a
/opt/vagrant/embedded/gems/gems/vagrant-1.7.1/plugins/commands/package/command.rb:83:in `core#hash_merge_kwd': wrong argument type String (expected Symbol) (TypeError)
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/plugins/commands/package/command.rb:83:in `package_vm'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/plugins/commands/package/command.rb:66:in `package_base'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/plugins/commands/package/command.rb:42:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/cli.rb:42:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/environment.rb:301:in `cli'
from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.1/bin/vagrant:174:in `<main>'
@almacro
almacro / vagrant_debug.out
Created January 2, 2015 23:25
Vagrant debug output from 1.7.1 package fail
INFO global: Vagrant version: 1.7.1
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.1/bin/vagrant"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
@almacro
almacro / vagrant_err20141228a
Created December 27, 2014 19:47
vagrant package fails with undefined method 'join'
$ vagrant package --base vagrant_ubuntu32
==> vagrant_ubuntu32: Attempting graceful shutdown of VM...
vagrant_ubuntu32:
vagrant_ubuntu32: Vagrant insecure key detected. Vagrant will automatically replace
vagrant_ubuntu32: this with a newly generated keypair for better security.
vagrant_ubuntu32:
vagrant_ubuntu32: Inserting generated public key within guest...
/opt/vagrant/embedded/gems/gems/vagrant-1.7.1/plugins/communicators/ssh/communicator.rb:171:in `ready?': undefined method `join' for nil:NilClass (NoMethodError)
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/machine.rb:247:in `guest'
from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/action/builtin/graceful_halt.rb:50:in `call'