Skip to content

Instantly share code, notes, and snippets.

View richardsonlima's full-sized avatar
:octocat:
Focusing

Richardson Lima richardsonlima

:octocat:
Focusing
View GitHub Profile
@richardsonlima
richardsonlima / install_k8s.sh
Last active March 4, 2019 06:07
install_k8s.sh
#! /bin/bash
# -----------------------
# please change this value :
hostIP="__PUBLIC_OR_PRIVATE_IPV4__"
# -----------------------
k8sVersion="v1.8.1"
etcdVersion="v3.2.9"
dockerVersion="17.05.0-ce"
cniVersion="v0.6.0"
calicoCNIVersion="v1.11.0"
@richardsonlima
richardsonlima / docker-compose-jenkins-nexus-sonar-docker-compose.md
Last active January 6, 2024 15:34
docker-compose-jenkins-nexus-sonar

Docker Compose file to create containers for Jenkins, SonarQube and Nexus

##Setup an AWS EC2 instance.

sudo yum update -y
sudo yum install -y docker
sudo yum install -y git
sudo service docker start
sudo usermod -a -G docker ec2-user
https://github.com/kubernetes/kubernetes/blob/master/test/e2e/network/dns_common.go
https://github.com/kubernetes/kubernetes/blob/master/test/e2e/apimachinery/namespace.go
https://github.com/kubernetes/client-go/blob/master/examples/create-update-delete-deployment/main.go
https://github.com/fatih/color
@richardsonlima
richardsonlima / deploy_docker.go
Created February 22, 2019 21:21 — forked from cescoferraro/deploy_docker.go
docker & kubernetes client example golang
package cmd
import (
"bitbucket.org/cescoferraro/api/util"
"github.com/fatih/color"
"github.com/spf13/cobra"
)
var (
logger = util.Block{
@richardsonlima
richardsonlima / english-music-ebooks-podcast.md
Last active May 21, 2019 14:32
Native English resources for Learning English

EMEBP - (English-Music-Ebooks-Books-Podcast)

Podcasts

  • This American Life - This American Life is a weekly public radio program and podcast. Each week we choose a theme and put together different kinds of stories on that theme.
Episode audio audio transcript
This American Life - The Long Fuse [ok] [ok]
This American Life - a [ok] [ok]
@richardsonlima
richardsonlima / letsencrypt_2018.md
Created February 20, 2019 14:26 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./code:/code
- ./site.conf:/etc/nginx/conf.d/site.conf
links:
- php
php:
---
# Copyright 2018 widdix GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: monitoring-influxdb
namespace: kube-system
spec:
replicas: 1
template:
metadata:
labels:
http://www.thetimezoneconverter.com/