This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mydomain = saitam.int | |
myhostname = mailserver.$mydomain | |
myorigin = /etc/mailname | |
mydestination = $myhostname, $mydomain, localhost.saitam.int, localhost | |
mynetworks = 127.0.0.0/8, 192.168.1.0/24, 192.168.10.0/24, 192.168.20.0/24 | |
home_mailbox = /home/$USER/Maildir/ | |
# SASL parameters | |
smtpd_sasl_auth_enable = yes | |
smtpd_sasl_type = dovecot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##/etc/dovecot/conf.d/10-auth.conf | |
## Authentication processes | |
## | |
# Disable LOGIN command and all other plaintext authentications unless | |
# SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP | |
# matches the local IP (ie. you're connecting from the same computer), the | |
# connection is considered secure and plaintext authentication is allowed. | |
# See also ssl=required setting. | |
disable_plaintext_auth = no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/amavis/conf.d/15-content_filter_mode | |
use strict; | |
# You can modify this file to re-enable SPAM checking through spamassassin | |
# and to re-enable antivirus checking. | |
# | |
# Default antivirus checking mode | |
# Please note, that anti-virus checking is DISABLED by | |
# default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Duncan Findlay | |
# WARNING: please read README.spamd before using. | |
# There may be security risks. | |
# If you're using systemd (default for jessie), the ENABLED setting is | |
# not used. Instead, enable spamd by issuing: | |
# systemctl enable spamassassin.service | |
# Change to "1" to enable spamd on systems using sysvinit: | |
ENABLED=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT dayname(now()) as dia_semana, | |
perm_acesso_seg, hinicio_manha_seg, hfim_manha_seg, hinicio_tarde_seg, hfim_tarde_seg, | |
perm_acesso_ter, hinicio_manha_ter, hfim_manha_ter, hinicio_tarde_ter, hfim_tarde_ter, | |
perm_acesso_qua, hinicio_manha_qua, hfim_manha_qua, hinicio_tarde_qua, hfim_tarde_qua, | |
perm_acesso_qui, hinicio_manha_qui, hfim_manha_qui, hinicio_tarde_qui, hfim_tarde_qui, | |
perm_acesso_sex, hinicio_manha_sex, hfim_manha_sex, hinicio_tarde_sex, hfim_tarde_sex, | |
perm_acesso_sab, hinicio_manha_sab, hfim_manha_sab, hinicio_tarde_sab, hfim_tarde_sab, | |
perm_acesso_dom, hinicio_manha_dom, hfim_manha_dom, hinicio_tarde_dom, hfim_tarde_dom, | |
CASE dayname(NOW()) | |
WHEN 'Monday' THEN perm_acesso_seg=1 AND (TIME(NOW()) BETWEEN hinicio_manha_seg AND hfim_manha_seg) OR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "32\" Full HD Flat Smart TV H5103 Series 3", | |
"description": "Com o Modo futebol, é como se você estivesse realmente no jogo. Ele exibe, de forma precisa e viva, a grama verde do campo e todas as outras cores do estádio. Um poderoso efeito de som multi-surround também permite que você ouça toda a empolgação. Você pode até mesmo ampliar áreas selecionadas da tela para uma melhor visualização. Com apenas o toque de um botão, você pode aproveitar ao máximo o seu esporte favorito com todos os seus amigos.", | |
"photo": "https://simplest-meuspedidos-arquivos.s3.amazonaws.com/media/imagem_produto/133421/fda44b12-48f7-11e6-996c-0aad52ea90db.jpeg", | |
"price": 1466.10, | |
"category_id": 1 | |
}, | |
{ | |
"name": "40\" Full HD Flat Smart TV H5103 Series 5", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 1, | |
"name": "Televisores" | |
}, | |
{ | |
"id": 2, | |
"name": "Celulares" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# | |
# Este script limpa o Cache da Memória RAM sempre que a memória livre estiver abaixo de $MEM_MIN | |
# No caso deixei pra limpar o cache sempre que a memória livre estiver abaixo de 1GB, adaptar às suas necessidades | |
# Eu deixo este script no cron do root para executar a cada hora, e ele só vai limpar o cache quando for necessário | |
# crontab -e | |
# LIMPA CACHE MEMÓRIA RAM APENAS SE ESTIVER COM MEMÓRIA LIVRE INFERIOR A 1GB | |
#48 * * * * /opt/limpacache.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
V_DIR_SQL="/home/sysadmin/data" | |
V_DIR_BACKUP="/home/sysadmin/backup" | |
V_HOST="localhost" | |
V_DATABASE="database" | |
V_USER="root" | |
V_PASSWORD="root" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Search through all databases, tables, and columns in a MySQL db. | |
# From http://kedar.nitty-witty.com/blog/search-through-all-databases-tables-columns-in-mysql | |
## Table for storing resultant output | |
CREATE TABLE `temp_details` ( | |
`t_schema` varchar(45) NOT NULL, | |
`t_table` varchar(45) NOT NULL, | |
`t_field` varchar(45) NOT NULL | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
OlderNewer