Update
parent
dba7dfe7d0
commit
950ac93987
@ -1,19 +0,0 @@
|
||||
#!/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/$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 set-url --add --push origin https://basedwa.re/drummfish/$1.git
|
||||
git remote set-url --add --push origin https://gitea.slowb.ro/drummyfish/$1.git
|
||||
|
||||
git remote -v
|
||||
|
||||
git push --set-upstream origin master
|
@ -1,20 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Outputs a list of most wanted pages. Takes a while to finish.
|
||||
|
||||
cat ./*.md | sed -n 's/.*\[.*\](\([^\)\(]*\)).*/\1/p' | sort | uniq -c | sort -nr > tmp.txt
|
||||
|
||||
rm tmp2.txt
|
||||
touch tmp2.txt
|
||||
|
||||
while read -r line; do
|
||||
fname=`echo "$line" | grep -o "[^ ]*\.md" -`
|
||||
|
||||
if ! [ -f $fname ]; then
|
||||
printf -- "- [" >> tmp2.txt
|
||||
printf $fname | sed "s/^\([^ ]*\)\.md/\1](${fname}) (/g" >> tmp2.txt
|
||||
echo $line | sed "s/^ *\([0-9]*\).*$/\1)/g" >> tmp2.txt
|
||||
fi
|
||||
done < tmp.txt
|
||||
|
||||
cat tmp2.txt | head -n 20
|
||||
rm tmp.txt tmp2.txt
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
||||
# Trollplay
|
||||
|
||||
TODO
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue