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 / main.go
Created July 5, 2018 04:36 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@richardsonlima
richardsonlima / Installing Arch Linux
Created July 30, 2018 17:50 — forked from SalahAdDin/Installing Arch Linux
Custom arch linux installation
sudo pacman -Syyu
sudo pacman -S qt5-tools gnome-clocks vlc atom inkscape krita 0ad gedit-plugins gparted linux-headers 0ad-data nodejs npm opera nginx postgresql postgresql-docs postgresql-libs plank plank-theme-numix php-fpm phppgadmin pgadmin4 jre8-openjdk-headless jre8-openjdk jdk8-openjdk openjdk8-doc openjdk8-src mono clang dos2unix simplescreenrecorder guake shutter tlp elasticsearch sshfs dconf-editor variety screenfetch numix-themes ttf-opificio ttf-aboriginal-sans gtk-theme-arc xenlism-minimalism-theme xenlism-wildfire
sudo pacman -S icedtea-web wxpython openmp atom ttf-freefont firefox-i18n-es-mx firefox-i18n-es-ar firefox-i18n-tr lua-socket uniconvertor acpi_call tp_smapi tk sane
sudo pacman -S zsh opera-ffmpeg-codecs python-pip python-virtualenv peek curl gdk-pixbuf2 poppler-qt5 yarn virtualbox virtualbox-host-modules-arch
sudo pacman -S libreoffice-extension-writer2latex libreoffice-extension-texmaths libreoffice-fresh-ar libreoffice-fresh-eu libreoffice-fresh-tr
sudo pacman -S gitkraken docke
@richardsonlima
richardsonlima / Dockerfile.minikube
Created August 7, 2018 02:02 — forked from andrewjjenkins/Dockerfile.minikube
Istio-Minikube and Jenkins
# Portions Copyright 2016 The Kubernetes Authors All rights reserved.
# Portions Copyright 2018 AspenMesh
#
# 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
{
"timestamp": 1461277820031,
"webhookEvent": "jira:issue_updated",
"user": {
"self": "http://jira.server.my/rest/api/2/user?username=paul",
"name": "paul",
"key": "paul",
"emailAddress": "[email protected]",
"avatarUrls": {
"48x48": "http://www.gravatar.com/avatar/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa?d=mm&s=48",
@richardsonlima
richardsonlima / free-ebooks.sh
Created August 29, 2018 20:49 — forked from amielucha/free-ebooks.sh
Free O'Reilly ebooks
wget http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.epub
wget http://www.oreilly.com/programming/free/files/object-oriented-vs-functional-programming.epub
wget http://www.oreilly.com/programming/free/files/java-the-legend.epub
wget http://www.oreilly.com/programming/free/files/introducing-java-8.epub
wget http://www.oreilly.com/programming/free/files/a-whirlwind-tour-of-python.epub
wget http://www.oreilly.com/programming/free/files/20-python-libraries-you-arent-using-but-should.epub
wget http://www.oreilly.com/programming/free/files/hadoop-with-python.epub
wget http://www.oreilly.com/programming/free/files/how-to-make-mistakes-in-python.epub
wget http://www.oreilly.com/programming/free/files/functional-programming-python.epub
wget http://www.oreilly.com/programming/free/files/python-in-education.epub
@richardsonlima
richardsonlima / jira_letsencrypt.md
Created October 2, 2018 01:49 — forked from dborin/jira_letsencrypt.md
HOWTO Configure Atlassian Jira to use Letsencrypt certificate

HOWTO Configure Atlassian Jira to use Letsencrypt certificate with default Tomcat

This is a primer for installing a Letsencrypt certificate on a Jira server that is running the Jira provided, default Tomcat for serving webpages.

I found lots of information about how to do it using a free-standing Tomcat or nginx, but nothing about this particular combination. I hope it helps you!

Obviously, in all the examples, you need to replace jira.example.com with your own domain! And (duh) you need to use your own password, not 1234

You need to have installed Java (outside the scope of this document). Then in your user's shell RC file and probably root's RC file, add

@richardsonlima
richardsonlima / amazon.py
Created October 17, 2018 15:17
Python script to Start+Associate/Stop instances in AWS EC2
#!/usr/bin/env python2
# AWS Management
import optparse
import ConfigParser
import os, time
import boto.ec2
def start():
@richardsonlima
richardsonlima / create_eb_env.sh
Created January 26, 2019 02:53 — forked from wolfg1969/create_eb_env.sh
create a eb environment
#!/usr/bin/env bash
set -e
EB_CLI_HOME=$1
APP_NAME=$2
CONFIG_NAME=$3
export AWS_CREDENTIAL_FILE=/var/lib/jenkins/.elasticbeanstalk/aws_credential_file
export PATH=$PATH:$EB_CLI_HOME/api/bin/
@richardsonlima
richardsonlima / beanstalk deploy script
Created January 26, 2019 02:54 — forked from wgrisa/beanstalk deploy script
beanstalk deploy prepared (but not only) for gitlab ci
#!/bin/bash
# EB_APP_NAME = application name
# EB_APP_ENV = application environment
# S3_BUCKET = S3 bucket for ElasticBeanstalk
# S3_KEY = S3 folder to upload built app
# Zip up everything with the exception of node_modules (including dist), .git and zip files
ts=`date +%s`
fn="$EB_APP_NAME-$ts.zip"