View svn-pristine-find.sh
#!/bin/bash
# for an "svn pristine text not present" error like this:
# svn: E155010: Pristine text 'd6612ee6af5d9fb4459cbe7e2e8e18f7fb4201f8' not present
# you can delete the file and retrieve it with svn up
# (if you have local modifications, make up your own plan)
# -
# Run this script from the root of the working copy.
# It retrieves the file that's causing the error from wc.db
# usage example : ./svn-pristine-find.sh d6612ee6af5d9fb4459cbe7e2e8e18f7fb4201f8
View Install-liquorix-kernel-ubuntu.sh
#!/bin/bash
sudo apt update && sudo apt install apt-transport-https
echo -e 'deb http://liquorix.net/debian sid main\ndeb-src http://liquorix.net/debian sid main\n\n# Mirrors:\n#\n# Unit193 - France\n# deb http://mirror.unit193.net/liquorix sid main\n# deb-src http://mirror.unit193.net/liquorix sid main' | sudo tee /etc/apt/sources.list.d/liquorix.list
curl https://liquorix.net/linux-liquorix.pub | sudo apt-key add -
sudo apt update
sudo add-apt-repository ppa:damentz/liquorix && sudo apt update
sudo apt install linux-image-liquorix-amd64 linux-headers-liquorix-amd64 # firmware-linux-free
View rails.logrotate
#
# File: /etc/logrotate.d/rails
# Test: logrotate -f /etc/logrotate.d/rails
#
/var/www/*/log/*.log {
daily
dateext
notifempty
missingok
rotate 30
View Lubuntu-Work-Update-2018-08-15.txt
wellington@wellington-Inspiron-3647:~$ apt list --upgradable
Listing... Pronto
code-insiders/unknown 1.27.0-1534232790 amd64 [upgradable from: 1.26.0-1533883753]
ctdb/bionic-updates,bionic-security 2:4.7.6+dfsg~ubuntu-0ubuntu2.2 amd64 [upgradable from: 2:4.7.6+dfsg~ubuntu-0ubuntu2]
grub-common/bionic-proposed 2.02-2ubuntu8.3 amd64 [upgradable from: 2.02-2ubuntu8.2]
grub-efi-amd64/bionic-proposed 2.02-2ubuntu8.3 amd64 [upgradable from: 2.02-2ubuntu8.2]
grub-efi-amd64-bin/bionic-proposed 2.02-2ubuntu8.3 amd64 [upgradable from: 2.02-2ubuntu8.2]
grub-efi-amd64-signed/bionic-proposed 1.93.4+2.02-2ubuntu8.3 amd64 [upgradable from: 1.93.3+2.02-2ubuntu8.2]
grub-pc-bin/bionic-proposed 2.02-2ubuntu8.3 amd64 [upgradable from: 2.02-2ubuntu8.2]
grub2-common/bionic-proposed 2.02-2ubuntu8.3 amd64 [upgradable from: 2.02-2ubuntu8.2]
View logrotate-rails.conf
#
# File: /etc/logrotate.d/rails
# Test: logrotate -f /etc/logrotate.d/rails
#
/path/to/railsapp/log/production.log
/path/to/railsapp/log/development.log
/path/to/railsapp/log/unicorn.stderr.log
/path/to/railsapp/log/unicorn.stdout.log {
daily
dateext
View Cur- Rails-Nginx-transfer-closed-wittanding-read-data-remaining.conf
# Nginix Conf
# "proxy_buffering off;" is the secret :-)
location / {
proxy_buffering off; # This line solved the problem
proxy_pass http://127.0.0.1:3010;
}
View Virtualbox-USB-Redirection-Not-working.sh
sudo groupadd vboxusers
sudo usermod -a -G vboxusers $USER
View smb-mount.sh
sudo mount -t cifs //192.168.1.250/PASSPORT2TB /home/pi/mntPassport -o username=root,password=********,vers=1.0,rw,nobrl
View Rbenv-Ruby-ar-u-modifier-ignored-since-D-is-the-default-see-U.sh
# benv install 2.3.7
#CC=/usr/bin/gcc-6 rbenv install 2.3.7
CC=/usr/bin/gcc-6 PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig rbenv install 2.3.7
View agora-eu-entendi.txt
"Ah! Agora eu entendi. Agora eu saquei. Agora todas as peças se encaixaram. Eu estou entendendo tudo agora. Eu vou ficar de olhos abertos. Outro caso encerrado meu caro Watson. Eu estava cego, mas agora estou enxergando. Agora tudo vai mudar."