Skip to content

Instantly share code, notes, and snippets.

View alexanderkjeldaas's full-sized avatar

Alexander Kjeldaas alexanderkjeldaas

  • Founder of a startup
  • Scandinavia
View GitHub Profile
@alexanderkjeldaas
alexanderkjeldaas / combine.sh
Last active December 20, 2015 00:48
Proof of concept:Combine _info symbols split by ghc back into larger object files.
#!/bin/bash
# Find which object split includes a given definition
findobj () {
for a in ${1}_p_o_split.new/*.p_o; do
if nm $a | grep --color=auto -q " T $2"; then
echo $a;
break;
fi;
done
@alexanderkjeldaas
alexanderkjeldaas / peace.sh
Last active December 19, 2015 23:59
Safer cabal --upgrade-dependencies. Easy detection of non-optimal upper bounds. Unregister broken packages with ghc. Reset ghc pkg db.
# unregister broken GHC packages. Run this a few times to resolve
# dependency rot in installed packages. ghc-pkg-clean -f
# cabal/dev/packages*.conf also works.
function ghc-pkg-clean() {
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'`
do
echo unregistering $p; ghc-pkg $* unregister $p
done
}

Keybase proof

I hereby claim:

  • I am alexanderkjeldaas on github.
  • I am kjeldaas (https://keybase.io/kjeldaas) on keybase.
  • I have a public key whose fingerprint is DEA0 8830 91E1 EF19 89FF F56D E016 A1B3 DCC6 4FB6

To claim this, I am signing this object:

@alexanderkjeldaas
alexanderkjeldaas / gist:10525071
Last active August 29, 2015 13:59
Current list of impure packages for the system_tarball_pc
Current list of impure packages, for the system_tarball_pc
cpufrequtils-008
font-bh-100dpi-1.0.3
font-bh-lucidatypewriter-100dpi-1.0.3
font-bh-lucidatypewriter-75dpi-1.0.3
font-cursor-misc-1.0.3
font-misc-misc-1.1.2
gcc-4.8.2
icu4c-52.1
initrd
@alexanderkjeldaas
alexanderkjeldaas / impurities.txt
Last active August 29, 2015 13:58
Impurities in the minimal NixOS system
Binary files orphans-20140410-2356/64ccjfzi0siczqgcp4mnvr0z5rvv6x6n-groff-1.22.2/share/doc/groff-1.22.2/examples/mom/letter.pdf and orphans-20140411-0044/64ccjfzi0siczqgcp4mnvr0z5rvv6x6n-groff-1.22.2/share/doc/groff-1.22.2/examples/mom/letter.pdf differ
Binary files orphans-20140410-2356/64ccjfzi0siczqgcp4mnvr0z5rvv6x6n-groff-1.22.2/share/doc/groff-1.22.2/examples/mom/mom-pdf.pdf and orphans-20140411-0044/64ccjfzi0siczqgcp4mnvr0z5rvv6x6n-groff-1.22.2/share/doc/groff-1.22.2/examples/mom/mom-pdf.pdf differ
Binary files orphans-20140410-2356/64ccjfzi0siczqgcp4mnvr0z5rvv6x6n-groff-1.22.2/share/doc/groff-1.22.2/examples/mom/sample_docs.pdf and orphans-20140411-0044/64ccjfzi0siczqgcp4mnvr0z5rvv6x6n-groff-1.22.2/share/doc/groff-1.22.2/examples/mom/sample_docs.pdf differ
Binary files orphans-20140410-2356/64ccjfzi0siczqgcp4mnvr0z5rvv6x6n-groff-1.22.2/share/doc/groff-1.22.2/examples/mom/typesetting.pdf and orphans-20140411-0044/64ccjfzi0siczqgcp4mnvr0z5rvv6x6n-groff-1.22.2/share/doc/groff-1.22.2/examples/mom/typesetti