Add dotfiles and scripts
This commit is contained in:
3
scripts/delete_index.sh
Executable file
3
scripts/delete_index.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
curl -XDELETE "http://127.0.0.1:9200/$1"
|
||||
3
scripts/get_indices.sh
Executable file
3
scripts/get_indices.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
curl -XGET "http://127.0.0.1:9200/_cat/indices"
|
||||
18
scripts/update
Executable file
18
scripts/update
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
cd data/awesome-awesomeness
|
||||
git stash && git pull
|
||||
|
||||
~/update_fscrawler.sh
|
||||
|
||||
rm -rf /var/www/awesm/html /var/www/awesm/terminal
|
||||
mv html terminal /var/www/awesm/
|
||||
|
||||
cd /var/www/awesm
|
||||
chown -R :www-data html terminal
|
||||
|
||||
date -ur html > stats/updated.txt
|
||||
ls html | wc -l > stats/sites.txt
|
||||
|
||||
chmod -R o-rwx ./*
|
||||
3
scripts/update_fscrawler.sh
Executable file
3
scripts/update_fscrawler.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
~/data/fscrawler-distribution-2.10-SNAPSHOT/bin/fscrawler --loop 1 --trace awesm
|
||||
Reference in New Issue
Block a user