View Extract-Number-from-string.rb
new_num = old_num.scan(/\d/).join('')
View nginx.conf
# ...
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
View Migracao-laudos-antigos-bash.sh
#!/bin/bash
cd /DATA/laudos
# sincroniza estrutura de pastas (somente pastas)
rsync -avP --include="*/" --exclude="*" /DATA/laudos/ /laudos-antigos/laudos
# para cada arquivo dentro do diretorio atual
# onde sua data de criacao for superior a 90 dias
# mova para o disco laudos-antigos e crie um link
View auto-mount-zfs.sh
systemctl enable zfs-mount.service
systemctl enable zfs-import-cache.service
systemctl enable zfs-import-scan.service
#And
#You need to edit the file /etc/default/zfs with your favourite editor, eg: nano, vim or something else, and change the lines
#ZFS_MOUNT='no'
#ZFS_UNMOUNT='no'
View crontab-syntax.txt
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
View find-multiple-exec-shell-linux.sh
find . -name file1.cpp -exec ls -l {} \; -exec cat {} \;
View 1-install-sparky-linux-gamer.log
3.1.12
for SparkyLinux 5 "Nibiru"
Copyright 2014-2017 Teo Mrnjavac <teo@kde.org>
Copyright 2017 Adriaan de Groot <groot@kde.org>
Agradecimentos: Anke Boersma, Aurélien Gâteau, Kevin Kofler, Lisa Vitolo, Philip Müller, Pier Luigi Fiorini, Rohan Garg and the Time de tradutores do Calamares.
Calamares o desenvolvimento é patrocinado por
Blue Systems - Liberating Software.
View update-lubuntu-work-2015-05-15.log
Os pacotes a seguir serão mantidos em suas versões atuais:
libkf5declarative-data libkf5declarative5 libkf5xmlgui-data libkf5xmlgui5 libqgsttools-p1 libqt5concurrent5 libqt5contacts5 libqt5core5a libqt5dbus5
libqt5designer5 libqt5gui5 libqt5location5 libqt5location5-plugins libqt5multimedia5 libqt5multimediaquick-p5 libqt5multimediawidgets5 libqt5network5
libqt5opengl5 libqt5opengl5-dev libqt5organizer5 libqt5positioning5 libqt5positioning5-plugins libqt5printsupport5 libqt5qml5 libqt5quick5
libqt5quickcontrols2-5 libqt5quickparticles5 libqt5quicktemplates2-5 libqt5quicktest5 libqt5quickwidgets5 libqt5script5 libqt5sensors5 libqt5sensors5-dev
libqt5sql5 libqt5sql5-sqlite libqt5svg5 libqt5test5 libqt5texttospeech5 libqt5versit5 libqt5versitorganizer5 libqt5waylandclient5 libqt5waylandcompositor5
libqt5webchannel5 libqt5webengine-data libqt5webenginecore5 libqt5webenginewidgets5 libqt5webkit5 libqt5widgets5 libqt5x11extras5 libqt5xml5 python3-pyqt5
python3-pyqt5.qtmultimedia python3-pyqt5.qtopengl