Skip to content

Instantly share code, notes, and snippets.

View michaelradionov's full-sized avatar

Michael Radionov michaelradionov

View GitHub Profile
publish () {
issues=`git log --pretty=format:"%C(yellow)%h %Cred%ad %Cblue%an%C(auto)%d %Creset%s" --date=short --graph $1 | perl -ne '{ /([A-Z]{1,5})-(\d+)/ && print "$1-$2, " }' | sort | uniq |sed 's/.\{2\}$//'`;
open "https://jira.flagstudio.ru/issues/?jql=issuekey in ($issues) ";
}
alias jo='function _jo(){ open https://jira.flagstudio.ru/browse/$1; };_jo'
alias ji='function _ji(){ curl -s -u user:password https://jira.flagstudio.ru/browse/$1 | grep "<title>" | sed -E "s/(<title>|<\/title>)//g" ; };_ji'
function gl2() {
git log --pretty=format:"%C(yellow)%h %Cred%ad %C(white)%an%C(auto)%d %Creset%s" --color --date=short --graph $1 | \
while read -r i
@michaelradionov
michaelradionov / genpass.sh
Created July 8, 2018 14:54
Generate passwords in Unix/Bash (put this in your ~/.bashrc file)
alias passgen='openssl rand -base64 6' # generate 6 symbols random password
alias genpass='passgen' # yeah, i'm stupid
@michaelradionov
michaelradionov / Install-micro.sh
Last active August 31, 2018 11:50
Install Micro editor, then run it like "m file.txt"
cd ;\
curl https://getmic.ro | bash; \
echo 'alias m="~/micro"' >> .bashrc; \
source ~/.bashrc;
@michaelradionov
michaelradionov / fixup_committer_date.sh
Last active February 24, 2018 15:51 — forked from bfoz/fixup_committer_date.sh
Force GIT_COMMITTER_DATE = GIT_AUTHOR_DATE
git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"'
rm -fr "$(git rev-parse --git-dir)/refs/original/"
@michaelradionov
michaelradionov / WZ_ribbon
Created February 14, 2018 08:50
Полоска про Web Завтрак
<style>
.flagsoft_line {
font-family: "Trebuchet MS";
width: 100%;
position: fixed;
bottom: 0;
left: 0;
display: none;
background: rgb(61,31,176);
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod…IgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);