Skip to content

Instantly share code, notes, and snippets.

<template>
</template>
<script>
export default {
data () {
return {}
}
}
@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"
@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 / windows-build-tools.sh
Last active November 7, 2017 14:37
windows-build-tools.sh
npm install --global --production windows-build-tools
@Vitre
Vitre / mattermost-upgrade.sh
Created October 27, 2017 08:51
Mattermost upgrade
ln -s /home/mattermost/config/ /home/mattermost/mattermost/ && ln -s /home/mattermost/data/ /home/mattermost/mattermost/ && ln -s /ho me/mattermost/logs/ /home/mattermost/mattermost/
sudo chown -R mattermost:mattermost ./mattermost
@Vitre
Vitre / bcrypt-ruby-fix.sh
Last active November 21, 2017 14:53
bcrypt-ruby fix
bundle install && gem uninstall bcrypt-ruby --force && gem uninstall bcrypt --force && gem install bcrypt --platform=ruby
@Vitre
Vitre / apt-upgrade.sh
Last active February 21, 2018 15:34
apt upgrade
echo '#upgrade' && sudo apt-get autoremove -y && sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get autoremove -y && read -p "Reboot (y/n)?" CONT && [ "$CONT" = "y" ] && sudo reboot
@Vitre
Vitre / gist:e41f9c80f77102736d3674ec18a4b3bb
Last active November 19, 2018 15:28
Apache Windows Service
"c:\Host\opt\Apache\2.4\bin\httpd" -k uninstall -n "Apache 2.4 - PHP X"
"c:\Host\opt\Apache\2.4\bin\httpd" -k install -n "Apache 2.4 - PHP 7.2.12" -f "C:\Host\etc\apache\httpd-2.4-php-7.2.12.conf"
@Vitre
Vitre / Ubuntu-Helpers.sh
Last active December 12, 2015 15:42
Ubuntu helpers
# Root clear
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")
# Unity Lens DISABLE
gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"
# Spotify FIX
@Vitre
Vitre / SSH-KEYGEN linux
Last active August 29, 2015 14:19
SSH-KEYGEN linux
ssh-keygen -t rsa -C "your_email@example.com"
sudo apt-get install xclip
xclip -sel clip < ~/.ssh/id_rsa.pub
clip < ~/.ssh/id_rsa.pub