Skip to content

Instantly share code, notes, and snippets.

Name: pam_yubico
Version: 2.26
Release: 1%{?dist}
Summary: A Pluggable Authentication Module for yubikeys
Group: System Environment/Base
License: BSD
URL: http://opensource.yubico.com/yubico-pam/
Source0: https://developers.yubico.com/yubico-pam/Releases/pam_yubico-%{version}.tar.gz
#Patch0: pam_yubico-pamuid_t.patch
@zarmstrong
zarmstrong / renamer.sh
Last active January 2, 2016 05:20 — forked from anonymous/renamer.sh
#!/usr/bin/env bash
# This is a script to rename movies files
# from: Edge of Tomorrow [2014 BluRay].mp4
# to: Edge of Tomorrow [2014 720p].mp4
##############
# EDIT THESE #
##############
@zarmstrong
zarmstrong / ec2tags.rb
Last active July 4, 2016 19:03 — forked from drohr/ec2tags.rb
replaces spaces with pipes to take into account non-word (\w) characters in key or value.
require 'facter'
if Facter.value("ec2_instance_id") != nil
instance_id = Facter.value("ec2_instance_id")
region = Facter.value("ec2_placement_availability_zone")[0..-2]
tags = Facter::Util::Resolution.exec("ec2dtag --filter \"resource-id=#{instance_id}\" --region #{region} | cut -f 4-|awk 'BEGIN{FS=\" \";OFS=\"|\"} {$1=$1; print $0}'")
tags.scan(/(.*)\|+(.*)/) do |key, value|
fact = "ec2_tag_#{key}"
Facter.add(fact) { setcode { value } }
end