This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
# Name: Person Grouper (person_grouper.rb) | |
# Description: A tool to identify rows in a CSV file that may represent | |
# the same person, based on one or more provided matching types | |
# Limitations: Algorithm is forward-facing only (no retrospecting merging) | |
# Author: Zoë Kelly ([email protected]) | |
# License: MIT | |
# Created: 2025-02-16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name: Tic-Tac-Toe (tic_tac_toe.rb) | |
# Description: An interactive CLI game of Tic-Tac-Toe written in Ruby | |
# Author: Zoë Kelly ([email protected]) | |
# License: MIT | |
# Created: 2025-02-04 | |
# | |
# Usage: 1. Open an interactive Ruby shell (e.g. irb) | |
# 2. require_relative "tic_tac_toe.rb" | |
# 3. game = TicTacToe::Game.new | |
# 4. game.play |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# typed: false | |
# frozen_string_literal: true | |
# usage: ruby ./slack_conversations_export_genericized.rb | |
require "slack-ruby-client" | |
require "nokogiri" | |
require "yaml" | |
require "json" | |
require "csv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Name: Install GAMADV-XTD3 alongside GAM | |
# Usage: ./install_GAMADV-XTD3_alongside_GAM.sh | |
# Description: Installs latest version of GAMADV-XTD3 alongside GAM, and creates 'gam3' alias for it | |
# Author: Zoë Kelly ([email protected]) | |
# License: MIT | |
# Created: 2021-12 | |
# Updated: | |
## Note: For macOS only, and assumes original GAM was installed in the regular way |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gets a list of all authorized users IDs of a Slack app in your org (max 1001 users) | |
// In your browser, go to the app's page (slack.com/apps -> Manage -> click on the app), then run this in the browser console: | |
JSON.parse($("div[data-automount-component|='AppDirectoryAuthorizations']")[0].attributes["data-automount-props"].value).authorizations.map(this_auth => this_auth.encodedUserLink).toString() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Name: Slack Profile Field Migrate | |
# Usage: slack-profile-field-migrate.sh | |
# Description: Migrate profile fields for one or all members of a Slack workspace | |
# Author: Zoë Kelly ([email protected]) | |
# License: MIT | |
# Created: 2021-06 | |
# Updated: 2021-06-28 | |
## Note: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <ESP8266mDNS.h> | |
#include <ArduinoOTA.h> | |
#include <WiFiUdp.h> | |
#include <PubSubClient.h> | |
#include <NTPClient.h> | |
#include <ArduinoJson.h> | |
#include <string> | |
#include <DHT.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Name: gam-batch-archive.sh | |
# Usage: cat archive_user_list.txt | gam-batch-archive.sh mail|drive|both | |
# Description: This scripts allows the batch archival of G Suite accounts, via the accompanying gam-archive.sh script | |
# Author: Zoë Kelly ([email protected]) | |
# License: MIT | |
# Created: 2020 | |
# Updated: | |
## Note: The gam-archive.sh script should be in the same folder or else added to $PATH. The input file should have a list of G Suite users to be archived, each on a newline. The email prefix should be used, i.e. jsmith. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Name: gam-archive.sh | |
# Usage: gam-archive.sh email_prefix [mail|drive|both] | |
# Example: gam-archive.sh jsmith mail | |
# Description: This script will archive a G Suite account's email (as .mbox) and/or Google Drive files to a specified IT Google Drive folder. | |
# Author: Zoë Kelly ([email protected]) | |
# License: MIT | |
# Created: 2020 | |
# Updated: 2020 | |
## Note: Depending on the export size and your upload speed, it could take 10 minutes or longer for each archival. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Name: CHP | |
# Usage: . chp | |
# . chp [1|2|3] | |
# Description: Quickly change the AWS_PROFILE environment variable | |
# Author: Zoë Kelly ([email protected]) | |
# License: MIT | |
# Created: 2020 | |
# Updated: 2020 | |
## Note: |