Skip to content

Instantly share code, notes, and snippets.

View jeffersonsouza's full-sized avatar

Jefferson Souza jeffersonsouza

View GitHub Profile
@jeffersonsouza
jeffersonsouza / create project
Last active July 10, 2018 01:51
Symfony 4 Database Auth
composer create-project "symfony/skeleton:^4.0" SymfonyLogin
wget -O - https://gist.githubusercontent.com/jeffersonsouza/14e1ac073673f7c643df0355672d8d0a/raw/d88b292ff6d922b46f231d31f1cf038f0a24b2be/install-docker-ce-ubuntu.sh | bash
sudo rm -fr /var/cache/apt/*
sudo rm -fr /var/lib/apt/*
sudo rm -fr /home/curso/.vscode/*
#!/bin/bash
rm -fR ~/ionic/EventsApp
cd ~/ionic
git clone https://github.com/cursodeionic/events-app.git
cd events-app
npm install

HAProxy behind AWS ELB: how to force HTTPS?

What are you trying to solve

You have some nodes in AWS that you want to load balance.

You want to use the magical scaling properties of ELB.

You want to do some things that ELB doesn't do, like force HTTPS (or add headers, or something else).

Para conectar no servidor:
ssh -i cursorancher.pem ubuntu@ipdoservidor
No servidor:
wget -O - https://gist.githubusercontent.com/jeffersonsouza/14e1ac073673f7c643df0355672d8d0a/raw/62801d2726dcf2b1a5120a33d503f0e750bbc7e8/install-docker-ce-ubuntu.sh | bash
Documentação Rancher 2.0
http://rancher.com/docs/rancher/v2.0/en/quick-start-guide
@jeffersonsouza
jeffersonsouza / docker-proxy.md
Created October 6, 2017 20:13 — forked from owainlewis/docker-proxy.md
Set docker proxy on Ubuntu 16.04

How to setup docker behing a HTTP proxy

mkdir /etc/systemd/system/docker.service.d

sudo touch /etc/systemd/system/docker.service.d/http-proxy.conf

Add proxy info

node('nodejs') {
stage('Clean'){
echo 'Estou limpando...'
deleteDir()
}
stage('Checkout'){
echo 'Estou Checando...'
git 'https://github.com/jeffersonsouza/example-todo-api.git'
}
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@jeffersonsouza
jeffersonsouza / install-docker-elementary-loki.sh
Created August 25, 2017 01:54 — forked from cristofersousa/install-docker-elementary-loki.sh
Installs Docker on Elementary OS 0.4 (Loki)
#!/bin/bash
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo rm -f /etc/apt/sources.list.d/docker.list
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt-get install docker-engine