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 / .htaccess
Created November 2, 2014 12:02
Laravel .htaccess for WEDOS
# htaccess rules for subdomains and aliases
# to create new subdomain, create a folder www/subdom/(subdomain name)
# to create web for alias, create a folder www/domains/(whole domain name)
# htaccess pravidla pro subdomeny a samostatne weby aliasu
# pro vytvoreni subdomeny vytvorte adresar www/subdom/(nazev subdomeny)
# pro vytvoreni webu pro alias vytvorte adresar www/domains/(cely domenovy nazev)
# dalsi info a priklady: http://kb.wedos.com/r/32/webhosting-htaccess.html
#Options -MultiViews
@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 / 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 / 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 / win-gems.sh
Last active November 20, 2018 18:13
win-gems.sh
# RMAGICK
https://medium.com/ruby-on-rails-web-application-development/install-rmagick-gem-on-windows-7-8-10-imagemagick-6-9-4-q16-hdri-5492c3fef202
gem install rmagick --platform=ruby -- --with-opt-lib="C:/Host/opt/ImageMagick/6.9.9-Q16-HDRI/lib" --with-opt-include="C:/Host/opt/ImageMagick/6.9.9-Q16-HDRI/include"
gem install rmagick --platform=ruby -- --with-opt-lib="C:/Host/opt/ImageMagick-6.9.10-Q16-HDRI/lib" --with-opt-include="C:/Host/opt/ImageMagick-6.9.10-Q16-HDRI/include"
# CURB
gem install curb --version 0.7.18 --platform=ruby -- -- --with-curl-lib="C:/Host/opt/curl/bin" --with-curl-include=" C:/Host/opt/curl/include"