This file contains 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
#!/bin/bash | |
# | |
# This script should be run from Linux and uses basic tools like grep, awk, date and openssl. | |
# You need to populate the client_id and client_secret variables below | |
# with your own GCP project values. Sample command lines: | |
# | |
# Use 3-legged IMAP OAuth (default): | |
# bash popimap.sh --email myaccount@example.com --protocol imap | |
# | |
# Use a service account and domain-wide delegation: |
This file contains 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
#Please refer to the Microsoft Docs website to get your PAT (Personal Access Tokens) | |
#https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops | |
param | |
( | |
[Parameter(Mandatory = $true)] | |
[string]$pat, | |
[Parameter(Mandatory = $true)] | |
[string]$instance, |
This file contains 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
#Step 1: Import the libraries we need | |
import pygame.mixer | |
import RPi.GPIO as GPIO | |
import glob | |
import random | |
import time | |
#Step 2: Fire up the sound mixer | |
pygame.mixer.init() |