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 / 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 / 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
{
"timestamp": 1461277820031,
"webhookEvent": "jira:issue_updated",
"user": {
"self": "http://jira.server.my/rest/api/2/user?username=paul",
"name": "paul",
"key": "paul",
"emailAddress": "paul@server.my",
"avatarUrls": {
"48x48": "http://www.gravatar.com/avatar/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa?d=mm&s=48",
@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
@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 / 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 / perfect-desktop-debian-9.txt
Created March 31, 2018 05:09 — forked from wxguy/perfect-desktop-debian-9.txt
My perfect desktop - Debian 9 (Streach)
My perfect desktop - Debian 9 (Streach)
#######################################
Installation image:
-------------------
Download non-free version of debian ISO file from below link. Don't download version 9.0.0 as it contain bug which won't allow you to install on a disk. I choose to download LXDE desktop as it consumens less memory, responsive and perfectly OK for me.
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/
Enable sudo and root user account and password:
-----------------------------------------------
@richardsonlima
richardsonlima / mail.php
Created January 9, 2018 23:35 — forked from rantastic/mail.php
PHP: Send email using amazon SES
<?php
//class docs: http://www.orderingdisorder.com/aws/ses/
require_once('ses.php');
//get credentials at http://aws.amazon.com My Account / Console > Security Credentials
$ses = new SimpleEmailService('ACCESSkeyID', 'SECRETaccessKEY');
$m = new SimpleEmailServiceMessage();
@richardsonlima
richardsonlima / gist:6863af48eb031017031af7c893fcd9ff
Created December 8, 2017 19:22 — forked from zelig/gist:85cc18ce1e373d0ee7ab
GPU mining on MacOS. Tried on MacBook Pro Retina with NVIDIA GeForce GT750M. Only reaches a max of 700-900 KH/s which is only 0-15% better than CPU on 8 cores
wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.29_mac.pkg
sudo installer -pkg cuda_7.0.29_mac.pkg -target /
// once cpp-ethereum 0.9.23 is released on homebrew you do not need to build from source
brew update
brew tap ethereum/ethereum
brew reinstall cpp-ethereum --with-gpu-mining --devel --build-from-source
// or build from source:
// cd cpp-ethereum
// cmake -DETHASHCL=1 -DGUI=0
// make -j8