Skip to content

Instantly share code, notes, and snippets.

@lcw
lcw / get_dod_certs.sh
Created June 9, 2021 20:53 — forked from jfeilbach/get_dod_certs.sh
get the DoD certs including root certs. download, verify, install, and revoke
#!/bin/bash
# DoD Root Certificate install 19 July 2019
# to do: add Firefix import
# set cert numbers as variables
# combine fingerprint functions
# check all root CA fingerprints
# compare against CRL
SECONDS='0'
NC='\e[0m'
@lcw
lcw / ruby array
Created January 12, 2010 16:21 — forked from anonymous/ruby array
@destinations=Array.new
@harvest.people.find(:all).each do |p|
unless p.is_contractor
unless p.is_active==false
unless ["AM","Sales","Management","Executive","OPS","Marketing"].include? p.department
entries = p.entries :from => @beginning_date, :to => @ending_date
unless (entries and entries.length > 0)
@destinations << p.email
end