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 | |
# Prompt the user if they want to run poetry install | |
read -p "Do you want to run poetry install --sync? (y/n) " -n 1 -r < /dev/tty | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
poetry install --sync | |
fi |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: workload-identity-test | |
namespace: default | |
spec: | |
containers: | |
- image: google/cloud-sdk:slim | |
name: workload-identity-test | |
command: ["sleep","infinity"] |
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
FROM ubuntu:focal | |
RUN : \ | |
&& apt-get update \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
gnupg2 \ | |
python3-pip \ | |
software-properties-common \ | |
&& add-apt-repository ppa:deadsnakes \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ |
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
sed -E 's/(([^0-9][0-9]{0,9})*)(\b[0-9]{10}\b)(([0-9]{0,9}[^0-9])*)/printf "%s%s%s" "\1" "$(date -ud @\3)" "\4"/ge' ~/.zsh_history | less |
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
alias mv2fork="UPSTREAM=`git config --get remote.origin.url` && | |
git remote rename origin upstream && | |
git remote add origin ${UPSTREAM/:*\//:$GITHUB_USER/} && | |
git fetch origin" |