Skip to content

Instantly share code, notes, and snippets.

View obsti8383's full-sized avatar

obsti8383 obsti8383

View GitHub Profile
@obsti8383
obsti8383 / download_pdfs.js
Last active January 23, 2023 17:06 — forked from vdsabev/download.js
Bookmarklet - download all PDFs in links on a page
javascript:(() => {
const items = document.querySelectorAll('a');
let delay = 0;
for (let index = 0; index < items.length; index++) {
const item = items[index];
if (item.getAttribute('href') != null && item.getAttribute('href').endsWith('.pdf')){
/* only write last part of link to download element (filename) */
var downloadUri = item.getAttribute('href');
var n = downloadUri.lastIndexOf('/');
var result = downloadUri.substring(n + 1);
@obsti8383
obsti8383 / Get-AdGroupMembershipChange.ps1
Last active February 10, 2017 18:43 — forked from anonymous/Get-AdGroupMembershipChange.ps1
Detect Changes to AD Group Members and Notify on Change
#requires -Module ActiveDirectory
<#
.SYNOPSIS
This script queries multiple Active Directory groups for new members in a domain. It records group membership
in a CSV file in the same location as the script is located. On the script's initial run it will simply record
all members of all groups into this CSV file. On subsequent runs it will query each group's member list and compare
that list to what's in the CSV file. If any differences are found (added or removed) the script will update the
CSV file to reflect current memberships and notify an administrator of which members were either added or removed.
.NOTES