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 | |
#Variaveis | |
server="mysql.dominio.com.br" #Servidor mysql | |
login="nome_do_usuario_do_mysql" #login da base | |
pw="senha" #senha | |
nome_temp="all" #nome do arquivo temporário mysql | |
bk="$HOME/backup_mysql/" #Diretório para salvar arquivos de backup | |
nw=$(date "+%Y%m%d") #Buscar pela data | |
nb=3 #número de cópias do banco de dados |
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
FROM nginx | |
COPY default.conf /etc/nginx/conf.d/default.conf |
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
FROM php:7 | |
ENV LAST_UPDATE 20161003 | |
RUN curl https://getcomposer.org/installer | php | |
RUN mv composer.phar /usr/bin/composer | |
RUN apt-get update | |
RUN apt-get install -y libmcrypt-dev \ | |
git \ | |
zlib1g-dev \ | |
wget \ | |
alien \ |
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
# elastic search | |
cd ~/elasticsearch | |
sudo docker run -d -v "$PWD/esdata":/usr/share/elasticsearch/data -p 9200:9200 -p 9300:9300 --name tsuru_elasticsearch elasticsearch | |
# logstash | |
sudo docker run -d -p 1984:1984/udp --name tsuru_logstash logstash -e "$(curl -s https://gist.githubusercontent.com/gwmoura/d28f6c34822a9c15a1a2b33f8eb3aa58/raw/de593ac506e3c8c3acb243d29add1a5256827a74/logstash.conf)" |
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
input { | |
udp { | |
port => 1984 | |
} | |
} | |
filter { | |
json { | |
source => "message" | |
} |
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
module Plan | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
module ClassMethods | |
def components_methods(components) | |
components.each do |key, value| | |
attr_accessor(key) | |
end | |
end |
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
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.html"> |