Skip to content

Instantly share code, notes, and snippets.

Alan Orth alanorth

Block or report user

Report or block alanorth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alanorth
alanorth / check-clear-version.sh
Last active Nov 20, 2019
Script to help with updating the Arch Linux PKGBUILDs for Clear Linux
View check-clear-version.sh
#!/usr/bin/env bash
#
# check-clear-version.sh v2019-11-19.0
#
# Script to check for the latest Clear Linux version, download the native and
# dev manifests, extract the kernel version and config hash, etc to make it
# easier to update the various PKGBUILD variables for linux-clear-bin and
# linux-clear-headers-bin.
#
# Based on the logic first implemented by yw662 on the Arch Linux AUR packages
@alanorth
alanorth / iso_3166-1.md
Last active Oct 1, 2019
ISO 3166-1 country names
View iso_3166-1.md

ISO 3166-1 Country Names

In search of a controlled vocabulary for country names. The ISO 3166-1 standard list countries with several different representations of each country's name:

  • Official name: the long and complicated legal name of the country
  • Name
  • Common name

Examples

A few examples to illustrate the difficulty of using a single controlled vocabulary:

@alanorth
alanorth / hpc-openssl-benchmarks.md
Created Jun 10, 2019
Benchmarking HPC's fastest node (compute03) against the new AMD EPYC processor in compute05 using OpenSSL (2019-06).
View hpc-openssl-benchmarks.md

OpenSSL Benchmarks

Versions of software used:

  • CentOS Linux release 7.6.1810 (Core)
  • openssl-1.0.2k-16.el7_6.1.x86_64
  • glibc-2.17-260.el7_6.5.x86_64
  • Linux 3.10.0-957.12.2.el7.x86_64

compute03

Intel(R) Xeon(R) CPU E5-2609 v2 @ 2.50GHz:

@alanorth
alanorth / PKGBUILD
Created Apr 24, 2019
Arch PKGBUILD for Alacritty v0.3.2
View PKGBUILD
# Maintainer: Christian Rebischke <chris.rebischke@archlinux.org>
# Maintainer: Jiachen YANG <farseerfc@archlinux.org>
# Contributor: kpcyrd <git@rxv.cc>
# Contributor: quininer <quininer@live.com>
pkgbase='alacritty'
pkgname=('alacritty' 'alacritty-terminfo')
pkgdesc="A cross-platform, GPU-accelerated terminal emulator"
_pkgver=0.3.2
pkgver=$_pkgver
pkgrel=1
@alanorth
alanorth / cgcore-xsl-replacements.sed
Last active Nov 17, 2019
Possible changes to CGSpace metadata fields to align more with DC, QDC, and DCTERMS as well as CG Core v2.
View cgcore-xsl-replacements.sed
# Replacements
# dcterms.title (disabled on 2019-10-28)
#s/"dim:field\[@element='title'\]/"dim:field[@mdschema='dcterms' and @element='title']/g
#s/(dim:field\[@element='title'\]/(dim:field[@mdschema='dcterms' and @element='title']/g
#s/::dim:field\[@element='title'\]/::dim:field[@mdschema='dcterms' and @element='title']/g
#s/':dc.title'/':dcterms.title'/g
#s/dim:field\[@element='title'\]/dim:field[@mdschema='dcterms' and @element='title']/g
# dcterms.bibliographicCitation
s/dim:field\[@element='identifier' and @qualifier='citation'\]/dim:field[@mdschema='dcterms' and @element='bibliographicCitation']/g
@alanorth
alanorth / PKGBUILD
Created Jan 20, 2019
Arch Linux PKGBUILD for tuned 2.10.0 using Python 2.
View PKGBUILD
# Maintainer: Manuel Hüsers <manuel.huesers@uni-ol.de>
# Contributor: Iwan Timmer <irtimmer@gmail.com>
# Contributor: Timothée Ravier <tim at siosm dot fr>
# Contributor: Tom <reztho at archlinux dot org>
pkgname=tuned
pkgver=2.10.0
pkgrel=1
pkgdesc='Daemon that performs monitoring and adaptive configuration of devices in the system'
arch=('any')
@alanorth
alanorth / add-dc-rights.py
Last active Nov 5, 2018
Add usage rights (dc.rights) to items from CSV.
View add-dc-rights.py
#!/usr/bin/env python
#
# add-dc-rights.py 1.1.1
#
# Copyright 2018 Alan Orth.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@alanorth
alanorth / PKGBUILD
Created Nov 2, 2018
Updated PKGBUILD for python36 version 3.6.7
View PKGBUILD
pkgname=python36
pkgver=3.6.7
pkgrel=1
_pybasever=3.6
_pymajver=3
pkgdesc="Major release 3.6 of the Python high-level programming language"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.python.org/"
depends=('expat' 'bzip2' 'gdbm' 'openssl' 'libffi' 'zlib')
@alanorth
alanorth / web01.sh
Created Oct 18, 2018
Script to launch QEMU in user mode
View web01.sh
#!/usr/bin/env bash
#
# See: https://drewdevault.com/2018/09/10/Getting-started-with-qemu.html
# See: https://wiki.archlinux.org/index.php/QEMU
#
# Host preparation (as root):
#
# ip link add br0 type bridge
# ip addr add 172.20.0.1/16 dev br0
# ip link set br0 up
@alanorth
alanorth / PKGBUILD
Created Oct 15, 2018
A test PKGBUILD for dput 1.0.2
View PKGBUILD
# Maintainer: Jan Dolinar <dolik.rce@gmail.com>
# Contributor: Andre Klitzing <andre () incubo () de>
pkgname=dput
pkgver=1.0.2
pkgrel=1
pkgdesc="Debian package upload tool"
arch=('any')
url="http://packages.qa.debian.org/dput"
license=('GPL')
depends=('gnupg')
You can’t perform that action at this time.