Skip to content

Instantly share code, notes, and snippets.

View canximan's full-sized avatar

Canximan canximan

View GitHub Profile
#!/bin/bash
while true; do
sleep 1
echo "Pressing..."
# xdotool key alt+quoteleft
sleep 2
xdotool key ctrl+Tab
sleep 1
xdotool key Return
@canximan
canximan / popcorn-crawl.sh
Last active October 28, 2019 13:11
popcorn-crawl.sh
sudo service docker stop
rm -rf ~/popcorn-crawl
git clone https://gitlab.com/popcorn-vn/popcorn-crawl.git
cd ~/popcorn-crawl
git submodule update --init --recursive
cd ~/popcorn-crawl/src/models
git checkout master && git pull
cd ~/popcorn-crawl
npm cache clear --force
npm i -g pm2
sudo service docker stop
rm -rf ~/popcorn-health
git clone https://gitlab.com/popcorn-vn/popcorn-health.git
cd ~/popcorn-health
git submodule update --init --recursive
cd ~/popcorn-health/src/models
git checkout master && git pull
cd ~/popcorn-health
mkdir storage
npm i