I hereby claim:
- I am vvkpd on github.
- I am vvkpd (https://keybase.io/vvkpd) on keybase.
- I have a public key ASDiwJOAdCwH4Z4HyyMkmIVAohWgpJWvCleBChsy4qU98go
To claim this, I am signing this object:
# to get the --no-merged branches right before 2 month (echo branch name) | |
for branch in $(git branch -r --no-merged | grep -v HEAD); do echo -e $(git show --format="%ci %cr %an" $branch | head -n 1) \\t$branch; done | sort -r | awk '{ if($1 <= "2020-07-23") { print $NF}}' | |
# to get the --no-merged branches right before 2 month | |
for branch in $(git branch -r --no-merged | grep -v HEAD); do echo -e $(git show --format="%ci %cr %an" $branch | head -n 1) \\t$branch; done | sort -r | awk '{ if($1 <= "2020-07-23") { print }}' | |
# to get the --no-merged branches right before 2 month without release branches (echo branch name) | |
for branch in $(git branch -r --no-merged | grep -v HEAD); do echo -e $(git show --format="%ci %cr %an" $branch | head -n 1) \\t$branch; done | sort -r | awk '{ if($1 <= "2020-07-23") { print $NF}}' | awk '!/release/' | |
# to get the --no-merged branches right before 2 month without release and master branches (echo branch name without origin keyword) |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# First line of the script is the shebang which tells the system how to execute | |
# the script: http://en.wikipedia.org/wiki/Shebang_(Unix) | |
# As you already figured, comments start with #. Shebang is also a comment. | |
# Simple hello world example: | |
echo Hello world! # => Hello world! | |
# Each command starts on a new line, or after a semicolon: |
url='https://guide.bash.academy/variables.html' | |
echo "Sample URL" | |
echo "-----------------$url-----------------"; | |
# Remove the shortest string that matches the pattern if it's at the start of the value. | |
echo "${url#*/}" | |
# Remove the longest string that matches the pattern if it's at the start of the value. | |
echo "${url%/*}" | |
# Remove the shortest string that matches the pattern if it's at the end of the value. | |
echo "${url##*/}" |
const { exec } = require('child_process'); | |
const cloneAllRepoOf = function(user,repo){ | |
exec(`curl https://api.github.com/users/${user}/repos`, (err,stdout) =>{ | |
const content = JSON.parse(stdout); | |
if(!Array.isArray(content)){ | |
console.log(stdout) | |
return ; | |
} | |
if(repo){ |
#!/usr/bin/env bash | |
# Ask for the administrator password upfront. | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until the script has finished. | |
while true; do sudo -nv true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
#Ask for name to use in oh my zsh | |
echo "\n\nEnter name to display in prompt" |
remove all containers forcefully:- | |
docker rm -f $(docker ps -a -q) | |
remove all docker images forcefully:- | |
docker rmi -f $(docker images -q) |