Skip to content

Instantly share code, notes, and snippets.

View saltybeagle's full-sized avatar

Brett Bieber saltybeagle

View GitHub Profile
@saltybeagle
saltybeagle / attribute-resolver-snippet.xml
Last active June 12, 2022 10:38
Sample Shibboleth attribute resolver for REFEDS RAF IAP and eduPersonAssurance via Grouper group membership
<!-- Custom attribute assertion values for REFEDS IAP eduPersonAssurance -->
<AttributeDefinition xsi:type="Mapped" id="eduPersonAssurance">
<InputDataConnector ref="myLDAP" attributeNames="memberOf" />
<InputDataConnector ref="grouper_db_idp" attributeNames="grouper_idp_groups" />
<AttributeEncoder xsi:type="SAML2String" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.11" friendlyName="eduPersonAssurance"/>
<ValueMap>
<ReturnValue>https://refeds.org/assurance/IAP/high</ReturnValue>
<SourceValue>ref:assurance:nu:IAP:high</SourceValue>
</ValueMap>
<ValueMap>
@saltybeagle
saltybeagle / SIRTFI Compliance Template
Created July 25, 2017 20:52
Template to send to InCommon
To participate in the SIRTFI pilot program within InCommon, your InCommon Exec contact should send the following to admin@incommon.org
—— snip ——
[ENTITY NAME] wishes to participate in the SIRFTI proof of concept and as such
agrees to the following terms.
1. [ENTITY NAME] affirms that we support the SIRTFI Framework requirements and will continue to support the framework as it evolves. InCommon has not verified that our deployments adhere to the specification.
2. [ENTITY NAME] takes full responsibility for the use of this tag in our production and pilot deployments.
3. [ENTITY NAME] acknowledges that InCommon is not supporting the SIRTFI tag from a policy and process point of view and will not be providing change management communications other than required metadata changes. InCommon will fully support SIRTFI according to the specifications once the complete document set is finalized, InCommon has the resources and time to do so, and the community finds enough Value.
Entity ids that we wish to be tagged a
@saltybeagle
saltybeagle / IdM_User_Insight.xml
Created July 13, 2016 13:02
UNL's Splunk IdM User Insight dashboard
<form>
<label>IdM User Insight</label>
<description>look into the details for an individual user</description>
<fieldset autoRun="false">
<input type="text" token="username">
<label>My.UNL Username</label>
<default>bbieber2</default>
</input>
<input type="time">
<default>Last 7 days</default>
<?php
// file containing the nmap report
$file = file(__DIR__ . '/freak_443.txt');
$current_ip_number = false;
$weak_ips = array();
foreach ($file as $line) {
if (preg_match('/Nmap scan report for (.*)/', $line, $matches)) {
@saltybeagle
saltybeagle / arpsearch.js
Last active August 29, 2015 14:13
Tampermonkey script to link up the UNL Arp Search tool
// ==UserScript==
// @name UNL ARP Search Lookup tool improver
// @namespace http://its-bieber.unl.edu/
// @version 0.2
// @description Convert MAC address to a link to lookup the vendor
// @author Brett Bieber
// @match http://scrapy.unl.edu/cgi-bin/arpsearch.cgi*
// @grant unsafeWindow
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// ==/UserScript==
@saltybeagle
saltybeagle / keybase.md
Created October 24, 2014 21:25
keybase

Keybase proof

I hereby claim:

  • I am saltybeagle on github.
  • I am saltybeagle (https://keybase.io/saltybeagle) on keybase.
  • I have a public key whose fingerprint is 9F68 9B04 1FF9 8233 209A 1F26 FB91 75DF 5B59 097D

To claim this, I am signing this object:

@saltybeagle
saltybeagle / UGB_savvy_turbo.patch
Created August 20, 2014 19:01
Undergrad Bulletin Savvy Turbo
### Eclipse Workspace Patch 1.0
#P UNL_UndergraduateBulletin
Index: includes/tests/phpsavant.com/Savvy/escape/Foo.tpl.php
===================================================================
--- includes/tests/phpsavant.com/Savvy/escape/Foo.tpl.php (revision 0)
+++ includes/tests/phpsavant.com/Savvy/escape/Foo.tpl.php (revision 0)
@@ -0,0 +1,3 @@
+<?php
+echo $context->var1;
+?>
@saltybeagle
saltybeagle / gist:a9e0b554cbb6605699f6
Created July 17, 2014 19:02
Savvy versioning ideas
Versioning for savvy templated projects, so template files fallback to previous versions if no newer version exists
Template directories on filesystem:
templates/jsonv1
templates/jsonv2
templates/jsonv3
$_SERVER['REQUEST_URI'] = 'v2/blah.json';
while ($version > 0) {
@saltybeagle
saltybeagle / bingo.php
Created June 30, 2014 15:24
2008 Debate Bingo
<?php
$original_items = array(
'Alaska',
'Tax Relief',
'Maritime Border',
'Track',
'Sexism',
'Maverick',
'Bridge to Nowhere',
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.