View pos-installation-linux-mint.md

add other apt repositories

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
View reverse-proxy.go
package main
import (
"fmt"
"net/http"
"net/http/httputil"
"net/url"
)
func main() {
View postgres-quick-start.md

postgres

server

run server using docker

docker run -d --name postgres -e POSTGRES_DB=third_party_subscription_manager -e POSTGRES_USER=root -e POSTGRES_PASSWORD=root -p 5432:5432 postgres:9-alpine
View vanillajs-ajax.js
var client = new XMLHttpRequest();
client.open('POST', 'http://url/v1/optout/123', true);
client.setRequestHeader('Content-type', 'application/json');
var payload = {
"productId": 1319,
"largeAccount": 8080,
"url": "https://dominio:porta/{roleId}",
"countryId": 55,
"transactionUUID": "edaf587b-91e1-11e7-a2de-005056b152d8",
"tags": [],
View pre-sharedkey-aes.py
import sys
import base64
from Crypto.Cipher import AES
class AESCipher(object):
def __init__(self, key):
self.bs = 16
self.cipher = AES.new(key, AES.MODE_ECB)
View txt2pdf.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Installing dependencies:
pip install argparse
pip install reportlab
"""
View warsaw-itau-linux.md

Instalação

Ubuntu

wget https://guardiao.itau.com.br/warsaw/warsaw_setup_64.deb
sudo dpkg -i warsaw_setup_64.deb

ArchLinux

View install-pyenv-linux-macosx.sh
# Linux
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc # ou ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc # ou ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc # ou ~/.zshrc
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc # ou ~/.zshrc
source ~/.bashrc # ou ~/.zshrc
pyenv install 3.6.1
pyenv shell 3.6.1
View documento-projeto.md

Documento

Este documento descreve o processo de trabalho a ser seguido no primeiro mês de projeto.

Produto e Processo

Fases

Após a fase de pré-venda se inicia a fase de Preparação, que visa identificar os riscos mais importantes e definir soluções para mitigá-los na fase de Execução.

View linux-crypt-partiton
GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=SDB2_UUID_GOES_HERE:cryptVG root=/dev/mapper/cryptVG-root"
cryptsetup -y -v luksFormat /dev/sda6
cryptsetup open /dev/sda6 cryptroot
mkfs.ext4 /dev/mapper/cryptroot
mkdir /itau
mount /dev/mapper/cryptroot /itau
# Check the mapping works as intended:
umount /itau
cryptsetup close cryptroot