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
sudo find /var/log/postgresql -name '*.log' | |
sudo find /var/log/postgresql -name '*.log' -exec rm {} \; |
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
SSH_HOSTNAME:=ubuntu@github42 | |
NAME:=github42 | |
VERSION:=12 | |
all: | |
make sync | |
make restart | |
make status | |
sync: |
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
sudo docker exec -it "$(sudo docker ps -qf name=NAME)" sh |
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
sudo docker login --username username | |
# Dockerfile required | |
sudo docker build -t username/python:3.8-alpine-psycopg2 . | |
sudo docker push username/python:3.8-alpine-psycopg2 | |
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
django.middleware.security.SecurityMiddleware | |
django.contrib.sessions.middleware.SessionMiddleware | |
django.middleware.common.CommonMiddleware | |
django.middleware.csrf.CsrfViewMiddleware | |
django.contrib.auth.middleware.AuthenticationMiddleware | |
django.contrib.messages.middleware.MessageMiddleware | |
django.middleware.clickjacking.XFrameOptionsMiddleware |
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
SSH_HOSTNAME:=aws | |
all: | |
ssh $(SSH_HOSTNAME) < ./e2-mount-volume.sh |
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
#!/usr/bin/env bash | |
# pip install github-homepage github-repos | |
# export GITHUB_TOKEN=<GITHUB_TOKEN> | |
login="$(git config user.name)" || exit | |
# url="https://github42.com/$login/" | |
url='' | |
repos="$(python -m github_repos)" || exit |
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
#!/usr/bin/env bash | |
# pip install github-description github-repos | |
# export GITHUB_TOKEN=<GITHUB_TOKEN> | |
repos="$(python -m github_repos)" || exit | |
[[ -n "$repos" ]] && while IFS= read full_name; do | |
path=~/git/"$full_name"/.config/description.txt | |
[ -e "$path" ] && { |
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
#!/usr/bin/env bash | |
# pip install github-repos | |
# export GITHUB_TOKEN=<GITHUB_TOKEN> | |
repos="$(python -m github_repos)" || exit | |
[[ -n "$repos" ]] && while IFS= read full_name; do | |
path=~/git/"$full_name" | |
! [ -e "$path" ] && echo "$path" |
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
#!/usr/bin/env bash | |
# pip install github-delete github-repos | |
# export GITHUB_TOKEN=<GITHUB_TOKEN> | |
repos="$(python -m github_repos)" || exit | |
[[ -n "$repos" ]] && while IFS= read full_name; do | |
path=~/git/"$full_name" | |
! [ -e "$path" ] && { ( set -x; github-delete "$full_name" ) || exit; } |