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 | |
| function walk() { | |
| for secret in $(vault list $1 | tail -n +3) | |
| do | |
| if [[ ${secret} == *"/" ]] ; then | |
| walk "${1}${secret}" | |
| else | |
| echo "${1}${secret}" | |
| fi |
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
| #!/bin/bash | |
| echo "Restarting bluetooth service..." | |
| blueutil -p 0 && sleep 1 && blueutil -p 1 | |
| echo "Waiting bluetooth service to be restored..." | |
| until blueutil -p | grep "1" >/dev/null; do sleep 1; done | |
| echo "Searching for devices not connected..." | |
| devices=($(blueutil --paired | grep "not connected" | awk -F '[ ,]' '{print $2}')) |
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
| FROM debian:10-slim | |
| RUN apt-get update -y && \ | |
| apt-get install -y awscli curl gnupg && \ | |
| apt-key adv --fetch-keys "https://nginx.org/keys/nginx_signing.key" && \ | |
| echo "deb http://nginx.org/packages/debian buster nginx" > /etc/apt/sources.list.d/nginx.list | |
| RUN curl --silent --show-error --location --output /tmp/amazon-ssm-agent.deb "https://s3.us-east-1.amazonaws.com/amazon-ssm-us-east-1/latest/debian_amd64/amazon-ssm-agent.deb" && \ | |
| dpkg -i /tmp/amazon-ssm-agent.deb |
OlderNewer