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
tell application "Calendar" | |
-- Execute this script first manually via osascript Exchange_Sync.applescript to allow all security pop-ups. Make sure you use empty destination calendar because it will be wiped each run! | |
-- Don't forget to grant full calendar rights from System settings > Privacy & Security > Calendars > App > Options > Full calendar access | |
-- Schedule it via crontab -e and paste: "0 9,14 * * * osascript /Users/user.name/macOS_Cronjobs/Exchange_Sync.applescript > /Users/user.name/macOS_Cronjobs/cronjob.log" | |
-- Get the current date and time | |
set currentDate to current date | |
-- Set the start date range to 7 days ago | |
set startDateRange to currentDate - (7 * days) | |
-- Set the end date range to 30 days in the future | |
set endDateRange to currentDate + (30 * days) |
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
# Documentation: https://github.com/simple-login/app/blob/master/docs/api.md#post-apiv3aliascustomnew | |
# This script facilitates the bulk creation of email aliases on SimpleLogin.io by automating the API calls needed for each alias. It ensures compliance with rate limits and handles the retrieval of domain-specific signed_suffixes for each alias creation request. | |
# Author: https://github.com/MyKEms | |
#!/bin/bash | |
# Adjust variables | |
api_key="API_TOKEN" | |
domain="contoso.com" |
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
brew install putty | |
puttygen id_rsa -O private-openssh -o id_rsa.pem |
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
# SHA256: | |
ssh-keygen -lf ~/.ssh/id_rsa.pub | |
# MD5: | |
ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub | |
# Calculate from known_hosts/authorized_keys: | |
find /etc/ssh /home/*/.ssh /Users/*/.ssh -name '*.pub' -o -name 'authorized_keys' -o -name 'known_hosts' |
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
# This script will keep defined number of max unique tags, exclude specific tags and remove the rest. | |
# Compatible with PowerShell Core 6+ | |
# Author: https://github.com/MyKEms | |
#Settings | |
[string]$userName = "ArtifactoryUsername" | |
[string]$userPassword = "ArtifactoryUserPassword/Token" | |
$max_unique_tags = 17 | |
$exclude_tags = "latest|mater" | |
$repository = "docker-repository" |
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
# If you use bash, this technique isn't really zsh specific. Adapt as needed. | |
source ~/keychain-environment-variables.sh | |
# AWS configuration example, after doing: | |
# $ set-keychain-environment-variable AWS_ACCESS_KEY_ID | |
# provide: "AKIAYOURACCESSKEY" | |
# $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY | |
# provide: "j1/yoursupersecret/password" | |
export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID); | |
export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY); |
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
function Get-DDBScan ($table) { | |
$Items = aws dynamodb scan --table-name $table | ConvertFrom-Json | |
$Items.items | |
} | |
#Usage | |
Get-DDBScan -table Music | |
#Depends on - https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html | |
#Recommended to read - https://aws-cli-eq-pwsh.shibata.tech/dynamodb/ |