Skip to content

Instantly share code, notes, and snippets.

@Vitre
Vitre / windows-build-tools.sh
Last active November 7, 2017 14:37
windows-build-tools.sh
npm install --global --production windows-build-tools
@Vitre
Vitre / ruby-cygwin.sh
Last active November 7, 2017 13:31
ruby-cygwin.sh
# ruby
alias ruby='/cygdrive/c/Host/opt/Ruby/2.4/bin/ruby.exe'
alias gem='/cygdrive/c/Host/opt/Ruby/2.4/bin/gem.cmd'
alias bundle='/cygdrive/c/Host/opt/Ruby/2.4/bin/bundle.bat'
alias rails='/cygdrive/c/Host/opt/Ruby/2.4/bin/rails.bat'
# sys
alias la='ls -la'
@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"
<template>
</template>
<script>
export default {
data () {
return {}
}
}
postsuper -d ALL
@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 {} \;
@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 / certbot.sh
Last active December 10, 2018 13:42
#certbot
certbot register --update-registration --email your@mail.com
@Vitre
Vitre / certbot.sh
Created February 6, 2019 20:57
#certbot #renew
service nginx stop && certbot renew ; service nginx start
@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