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
# verificar qual o arquivo de log de saída do conteiner | |
docker inspect --format='{{.LogPath}}' container |
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
var async = require("async"); | |
var AWS = require("aws-sdk"); | |
var gm = require("gm").subClass({imageMagick: true}); | |
var fs = require("fs"); | |
var mktemp = require("mktemp"); | |
var PAGE_WIDTH = 1300, | |
PAGE_HEIGHT = 1300; | |
var utils = { |
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/sh | |
bucket="multiplat-resources-homolog/"; | |
prefix="content/"; | |
while read -r line || [[ -n $line ]]; do | |
echo "downloading file $line"; | |
pdfname=$(echo "$line" | sed 's/-original//'); | |
aws s3 cp s3://$bucket$prefix$line $pdfname.pdf; | |
mkdir $pdfname; |
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
// list all subdirectories of the current directory showing the total of files | |
find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n | |
// total of files on the current directory | |
find . -type f | wc -l |
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
# download jetty | |
sudo wget http://download.eclipse.org/jetty/stable-9/dist/jetty-distribution-9.2.9.v20150224.tar.gz | |
# unpack it | |
sudo tar zxvf jetty-distribution-9.2.9.v20150224.tar.gz | |
# create a simbolic link | |
ln -s jetty-distribution-9.2.9.v20150224/ jetty | |
# it make the command 'service jetty start' possible |
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
# get the latest jdk version | |
wget -c --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u31-b13/jdk-8u31-linux-x64.rpm" | |
# install it | |
sudo rpm -i jdk-8u31-linux-x64.rpm | |
# create the alternative | |
sudo alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 | |
# configure the alternative |