Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View iwascraig's full-sized avatar
💭
Holey Moley

Craig Hamilton iwascraig

💭
Holey Moley
View GitHub Profile
@iwascraig
iwascraig / backup_mysql_db.sh
Created July 12, 2021 03:24
Mysql db backup cycle
#!/bin/bash
# based on the original by @bendavis78 (https://gist.github.com/bendavis78/4414489)
# for use with cron, eg:
# 0 3 * * * bash /var/db/backup_mysql_db.sh foo_db
if [[ -z "$1" ]]; then
echo "Usage: $0 <db_name> [mysqldump args]"
exit 1
@iwascraig
iwascraig / attribute-map.xml
Last active February 23, 2018 02:34
Attribute mapping for mod_shib2 in AAF
<Attributes xmlns="urn:mace:shibboleth:2.0:attribute-map" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- First Core elements -->
<Attribute name="urn:oid:1.3.6.1.4.1.27856.1.2.5" 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 (https://keybase.io/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: