Skip to content

Instantly share code, notes, and snippets.

Holey Moley

Craig Hamilton iwascraig

Holey Moley
View GitHub Profile
iwascraig /
Created Jul 12, 2021
Mysql db backup cycle
# based on the original by @bendavis78 (
# for use with cron, eg:
# 0 3 * * * bash /var/db/ foo_db
if [[ -z "$1" ]]; then
echo "Usage: $0 <db_name> [mysqldump args]"
exit 1
iwascraig / attribute-map.xml
Last active Feb 23, 2018
Attribute mapping for mod_shib2 in AAF
View attribute-map.xml
<Attributes xmlns="urn:mace:shibboleth:2.0:attribute-map" xmlns:xsi="">
<!-- First Core elements -->
<Attribute name="urn:oid:" id="auEduPersonSharedToken"/>
<Attribute name="urn:oid:2.16.840.1.113730.3.1.241" id="displayName"/>
<Attribute name="urn:mace:dir:attribute-def:eduPersonAffiliation" id="eduPersonAffiliation">
<AttributeDecoder xsi:type="StringAttributeDecoder" caseSensitive="false"/>

Keybase proof

I hereby claim:

  • I am iwascraig on github.
  • I am craigh ( on keybase.
  • I have a public key whose fingerprint is 8321 5923 63F1 81D6 A64C EF66 7E54 8CC8 25D2 D037

To claim this, I am signing this object: