title | author | date | source | notoc |
---|---|---|---|---|
LDAP Search Filter Cheatsheet |
Jon LaBelle |
January 4, 2021 |
true |
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
{ | |
"Abroha": "A blend of \"Aloha\" and \"bro.\"", | |
"Ambrodextrous": "A bro that does the shaka sign with both hands.", | |
"Brah": "The Hawaiian version of bro.", | |
"Bro-hug": "A hug between two friends or bros.", | |
"Bro Jackson": "A bro that is good at everything.", | |
"Bro-am": "An amateur surf or skateboarding contest for bros only.", | |
"Bro-b-q": "A barbecue for bros only.", | |
"Bro-brah": "An irritating, stoned surfer, skateboarder, or snowboarder.", | |
"Bro-bro": "A special friend or super close bro.", |
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
#cloud-config | |
# | |
## Install additional packages on first boot | |
## | |
## Default: none | |
## | |
## if packages are specified, this apt_update will be set to true | |
## | |
## packages may be supplied as a single package name or as a list | |
## with the format [<package>, <version>] wherein the specifc |
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
jobs: | |
example_matrix: | |
strategy: | |
matrix: | |
version: [18] | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.version }} |
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 | |
input="/tmp/realImages.txt" | |
while IFS= read -r line | |
do | |
bob=$(basename $line) | |
find . -type f -exec sed -i '' -e "s,$line,/images/old/$bob,g" {} \; | |
done < "$input" | |
#while read line | |
#find . -type f -exec sed -e "s/$line/2010/g" {} \;;done < /tmp/realImages.txt |
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
#should get all uri's (including url's) for things like s3, postgres, ftp, etc. | |
kubectl get pods --all-namespaces -o=jsonpath='{range .items[*]}{.spec.containers[*].env[*].value}{"\n"}{end}' |grep -io "[[:alnum:]]*://[^ ]*" |sort |uniq |
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
https://graph.microsoft.com/v1.0/groups?$search="displayName:YourMom"&$select=id,displayName | |
#need to add a request header ConsistencyLevel:eventual |
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
#See https://gist.github.com/bfrancom/6ebebbf899912cd3c76c7f2978be0961 for deploying this docker container on ECS Fargate | |
FROM openjdk:8-jdk-slim as builder | |
#WORKDIR build | |
EXPOSE 8080 | |
RUN mkdir target | |
ARG JAR_FILE=./target/*.jar | |
COPY ${JAR_FILE} target/app.jar | |
#You probably don't want to do this in production, and should tune memory, gc, etc. | |
ENTRYPOINT ["java","-jar","/target/app.jar"] |
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
#See https://gist.github.com/bfrancom/d2ca0f7c767092a924c99545298b557d for Dockerfile used | |
#Author: Ben Francom | |
name: Build | |
#on: workflow_dispatch | |
on: | |
push: | |
branches: | |
- "main" |
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
#Get users under a manager using MS graph query. Uses select filter for displayName and email address | |
#Use this query in https://developer.microsoft.com/en-us/graph/graph-explorer | |
https://graph.microsoft.com/v1.0/me/directReports?$select=displayName,mail |
NewerOlder