Skip to content

Instantly share code, notes, and snippets.

View scottisloud's full-sized avatar

Scott Lougheed scottisloud

View GitHub Profile
@scottisloud
scottisloud / vivaldi-1pass.sh
Created June 20, 2025 14:06 — forked from kiwimato/vivaldi-1pass.sh
Adds Vivaldi as allowed browsers for 1Password linux app
sudo mkdir /etc/1password
echo vivaldi-bin | sudo tee /etc/1password/custom_allowed_browsers
sudo chown root:root /etc/1password/custom_allowed_browsers
sudo chmod 755 /etc/1password/custom_allowed_browsers
@scottisloud
scottisloud / vault-user-group-access-report.py
Last active October 9, 2023 19:41
A script that generates a csv containing a list of vaults, the users that can access that vault, and how those users are assigned.
# A script that provides a list of users who have access to each vault in
# a 1Password account, and whether that assignment is a direct assignment or
# granted by group membership
#
# This script must be run by a member of the Owners group of a 1Password Business account
import os
import subprocess
import csv
import json
from dataclasses import dataclass
@scottisloud
scottisloud / replace-http-with-https.sh
Last active August 29, 2023 23:59
replace http with https for 1Password items
#!/usr/bin/env bash
#########################################################
# REPLACE HTTP WITH HTTPS
#########################################################
# This script replaces or adds the value of the website field for all items in a specified vault
# Provide a vault UUID or vault name
vaultUUID=""
# convert http to https for each login item in specified vault
@scottisloud
scottisloud / pub
Created August 10, 2023 02:57
pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCwoiMJ2fCn+cMdiKtWM3+yR2g0y2liyhOiHxIwlU50iC1JCnNtky8Qt6aNPLmRNwNNfAEQ0jUovepIIwtrZAb0tsxib6fpUxBHZVGXdgIyLdnIdv5p3uW/GUGhEtQAqwznx3dd6/Yb94T9B4NgTetWmt7zIZxQdRfupqg1wFWb8zBwFtt2KttgSjXpZTilI+ENnfEOl/ClWmgrLHjwzJaw7cju30ICTr+diAEna3J6Vgm5/SLWsk+Z/JL3MdsP+Sciht+HNi9IxZKyftwlHw70IcXJW1V6NE91z7SZcA6naIlSu16XuJ1W0FLVxPmOB5AvOqDjrlQfUAG4g2bJLOp3iDInCCl+EfzYMMfhXyxG97f7+6YMJ5z0fvGXZkiHBM2xjGlOT1LWrGi4U7ArAQgLfZmRIWQBFHlGNWRjROpAMf9mS0HHKmRTi68LMWBNwtS/tPJo43K0i6lA8spIMrWXTNlFKVQZ42C4ymX5sq4JPNBY6/XhHSc5A7dLg6MZxWE=
@scottisloud
scottisloud / create-cluster.sh
Created June 29, 2023 21:46
AKS command to create new cluster
az aks create --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME \
--node-count 2 \
--node-vm-size Standard_B2s \
--location $REGION \
--vnet-subnet-id "$SUBNET_ID" \
--generate-ssh-keys
@scottisloud
scottisloud / op-connect-deployment.yaml
Last active June 27, 2023 17:12
yaml modified for provided TLS cert
apiVersion: apps/v1
kind: Deployment
metadata:
name: op-connect
spec:
selector:
matchLabels:
app: op-connect
template:
metadata:
# Dockerfile to build an image with op installed and token set for Service Accounts
FROM alpine
ENV OP_CLI_VERSION v2.18.0
ENV ARCH amd64
ENV OP_SERVICE_ACCOUNT_TOKEN="{YOUR TOKEN HERE}"
RUN apk add curl unzip
RUN curl -sSfo op.zip https://cache.agilebits.com/dist/1P/op2/pkg/${OP_CLI_VERSION}/op_linux_${ARCH}_${OP_CLI_VERSION}.zip \
&& unzip -od /usr/local/bin/ op.zip \
az aks create -n op-scim \
--node-count 1 \
--node-vm-size Standard_B2s \
--load-balancer-sku basic \
--node-osdisk-size 32 \
--location <REGION> \
--subscription <YOUR SUBSCRIPTION>
--resource-group <YOUR RESOURCE GROUP>
--generate-ssh-keys #this may or may not be required.
#!/usr/bin/env zsh
# read bearerToken\?"What is your Calendly bearer token? "
bearerToken=${1}
# Get your OwnerURI
rawData=$(curl -s --request GET \
--url https://api.calendly.com/users/me \
--header "Authorization: Bearer $bearerToken" \
--header 'Content-Type: application/json')
@scottisloud
scottisloud / ckaexamprep.md
Created March 11, 2023 06:59 — forked from gabrielfsousa/ckaexamprep.md
CKA exam preparation

Preparation for CKA with Kubernetes version 1.17.1 on REDHAT 8

What i need to know for the exam ? 🏁

% Domain
08% Application Lifecycle Management
12% Installation, Configuration & Validation
19% Core Concepts
11% Networking