Skip to content

Instantly share code, notes, and snippets.

@Vitre
Vitre / lvresize
Created August 8, 2022 18:29
lvresize
lvresize --extents +100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv
@Vitre
Vitre / wsl.sh
Created September 22, 2021 08:15
wsl
Restart-Service LxssManager
@Vitre
Vitre / dev.sh
Last active April 30, 2021 08:08
dev
service nginx start
service docker start
service redis-server start
service postgresql start
service mysql start
service php8.0-fpm start
docker run --rm -it -d -p 4000:80 -p 2525:25 rnwood/smtp4dev
@Vitre
Vitre / ghost.sh
Last active June 21, 2019 12:51
#ghost
find ./ ! -path "./versions/*" -type f -exec chmod 664 {} \;
find ./ -type d -exec chmod 00775 {} \;
pm2 start pm2.config.js --env development --watch
pm2 stop pm2.config.js --env development --watch
[HOST]/ghost/signup/[TOKEN]/
@Vitre
Vitre / npm-globals-install.sh
Last active February 7, 2019 11:06
#npm #globals
npm i -g yarn webpack gulp-cli gulp grunt-cli grunt npm-check
@Vitre
Vitre / certbot.sh
Created February 6, 2019 20:57
#certbot #renew
service nginx stop && certbot renew ; service nginx start
@Vitre
Vitre / certbot.sh
Last active December 10, 2018 13:42
#certbot
certbot register --update-registration --email your@mail.com
@Vitre
Vitre / netdata-force-update.sh
Last active February 14, 2019 13:28
netdata force update #sh #ssh
cd /usr/src/netdata.git && git fetch --all && git reset --hard origin/master && git pull && ./netdata-updater.sh -f
sudo sh -c 'cd /usr/src/netdata.git && git fetch --all && git reset --hard origin/master && ./netdata-updater.sh -f'
@Vitre
Vitre / optimg.sh
Created October 4, 2018 16:01
optimg
find -type f -name "*.png" -exec optipng {} \;
find -type f -name "*.gif" -exec optipng {} \;
find -type f -name "*.jpg" -exec jpegoptim --strip-all {} \;
postsuper -d ALL