Start container
docker run --name redis --restart always -p 6379 -v /home/ubuntu/workspace/docker/redis:/data -d redis redis-server --appendonly yes
Connect to it using redis-cli container
mkdir -p ~/scripts/git | |
echo 'git branch --merged | grep -v "\*\|master" | xargs -n 1 git branch -d' > ~/scripts/git/git-bomb | |
echo 'git remote prune origin' >> ~/scripts/git/git-bomb | |
chmod +x ~/scripts/git/git-bomb | |
sudo ln -s ~/scripts/git/git-bomb /usr/bin/git-bomb |
import smtplib | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEText import MIMEText | |
from email.MIMEBase import MIMEBase | |
from email import encoders | |
fromaddr = "YOUR EMAIL" | |
toaddr = "EMAIL ADDRESS YOU SEND TO" | |
msg = MIMEMultipart() |
Quick notes on setting up a lightweight SVN server that is accessible via http (WebDav) and the svn custom protocol (svn://).
credits to :
You can execute the query using the following curl command
curl --request POST \
--url https://api.github.com/graphql \
--header 'authorization: Bearer <GITHUB_TOKEN>' \
--header 'content-type: application/json' \
--data '{"query":"query SearchPullRequestFromCommitSha {\n search (\n first: 100, type: ISSUE,\n query: \"type:pr repo:octokit/octokit.rb cd410f734e090e49d0f6e1ccff7ad3403259bd4d\"\n ) {\n nodes {\n ... on PullRequest {\n id, number, title, headRefName\n }\n }\n }\n}","operationName":"SearchPullRequestFromCommitSha"}'