Update
parent
0ea738f524
commit
181057e0e3
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Adds mirror remotes to a git repot, expects one parameter: the repo name.
|
||||
|
||||
echo $1
|
||||
|
||||
git remote | xargs -n1 git remote remove # delete all remotes
|
||||
|
||||
git remote add origin https://git.coom.tech/drummyfish/less_retarded_wiki.git/$1.git
|
||||
|
||||
git remote set-url --add --push origin https://git.coom.tech/drummyfish/$1.git
|
||||
git remote set-url --add --push origin ssh://tastyfish@192.168.0.106:/home/tastyfish/git/$1
|
||||
git remote set-url --add --push origin https://git.thisisjoes.site/drummyfish/$1.git
|
||||
|
||||
git remote -v
|
||||
|
||||
git push --set-upstream origin master
|
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat ./*.md | sed -n 's/.*\[.*\](\([^\)\(]*\)).*/\1/p' | sort | uniq -c | sort -nr | sed -n "s/.* \([^ ]\)/\1/p" > tmp.txt
|
||||
|
||||
rm tmp2.txt
|
||||
touch tmp2.txt
|
||||
|
||||
while read -r line; do
|
||||
if ! [ -f $line ]; then
|
||||
echo "$line" >> tmp2.txt
|
||||
fi
|
||||
done < tmp.txt
|
||||
|
||||
cat tmp2.txt | head -n 20
|
Loading…
Reference in New Issue