Skip to content

Instantly share code, notes, and snippets.

@AaronRM
AaronRM / oms_common.rb
Last active January 14, 2020 21:03
oms_common.rb (1.12.15 patch to use Resolv)
# frozen_string_literal: true
module OMS
class RetryRequestException < Exception
# Throw this exception to tell the fluentd engine to retry and
# inform the output plugin that it is indeed retryable
end
class Common

Keybase proof

I hereby claim:

  • I am aaronrm on github.
  • I am aaronmarten (https://keybase.io/aaronmarten) on keybase.
  • I have a public key ASDKTKibakVmXYrAqkBEf4inEv1jSDu6X0wT5vZnzkko6Ao

To claim this, I am signing this object:

@AaronRM
AaronRM / facebook-mass-delete-group-members.js
Last active March 23, 2018 14:51 — forked from michaelv/facebook-mass-delete-group-members.js
This javascript removes all users from a facebook group. It works with the new facebook layout. Paste this in the javascript console. Script tested in Firefox. Known issues: 1. when facebook responds slowly, the script might experience hickups.. 2. occasionially, the error 'this user is not a member of the group' pops up.. IMPORTANT: add your ow…
var deleteAllGroupMembers = (function () {
var deleteAllGroupMembers = {};
// the facebook ids of the users that will not be removed.
// IMPORTANT: add your own facebook id here so that the script will not remove yourself!
var excludedFbIds = ['1234','11223344']; // make sure each id is a string!
var usersToDeleteQueue = [];
var scriptEnabled = false;
var processing = false;
deleteAllGroupMembers.start = function() {
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Enable-RemoteDesktop
Enable-MicrosoftUpdate
cinst 7zip.install
cinst git.install
cinst visualstudiocode
cinst GoogleChrome
cinst nodejs.install