Skip to content

Instantly share code, notes, and snippets.

Bruno Paulino brunojppb

Block or report user

Report or block brunojppb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@brunojppb
brunojppb / docker_sbt_with_node.md
Last active May 22, 2020
Building a docker image with SBT and Node for Play Framework projects
View docker_sbt_with_node.md

Create a Dockerfile for your SBT image with the following content (installing SBT 1.3.10)

FROM openjdk:8-alpine
LABEL maintainer="contact@bpaulino.com"

RUN apk update
RUN apk add postgresql-client

# Optional: Install Scala
# ENV SCALA_VERSION=2.12.8 \
@brunojppb
brunojppb / Floating.css
Created Feb 19, 2020
Floating CSS animation
View Floating.css
img {
animation: floating infinite 3s ease-in-out;
}
@keyframes flaoting {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(-5px);
@brunojppb
brunojppb / docker_sbt_scala.md
Last active Jan 9, 2020
Docker image with Java 8 and SBT 1.3.5
View docker_sbt_scala.md

Docker image with Scala and SBT

This image is based on on alpine linux with Java 8 and includes SBT 1.3.5. You can optionally install Scala and make it available directly.

This is image is available here: brunojppb/scala-sbt:1.3.5

The Dockerfile.yml:

FROM openjdk:8-alpine
LABEL maintainer="contact@bpaulino.com"
@brunojppb
brunojppb / Readme.md
Last active Nov 14, 2019 — forked from PierreThiollent/Readme.md
iTerm2 and Oh-my-zsh config
View Readme.md

Setup iTerm2 and oh-my-zsh

Enjoy ! 😄

Install iTerm 2

Download iTerm2 here.

@brunojppb
brunojppb / setup_redmine_4_ubuntu.md
Last active Dec 3, 2019
How to setup Redmine 4 on Ubuntu 18.04
View setup_redmine_4_ubuntu.md

How to setup Redmine 4 on Ubuntu 18.04

Prerequisites:

Full SSH root access or a user with sudo privileges.

Step 1: Connect to your Server

To connect to your server via SSH as the root user, use the following command:

@brunojppb
brunojppb / helpscout_webhook_play_framework.scala
Created Oct 11, 2019
Handling HelpScout webhooks in Play Framework and Scala
View helpscout_webhook_play_framework.scala
/**
* How to handle HelpScout webhooks using Play Framework & Scala (Without using the HelpScout library)
* See original docs: https://developer.helpscout.com/webhooks/
*/
/** On your controller.
* Map this function to a valid route
* and register your webhook using the HelpScout API
*/
View odoo_python_dependency.md

To install pycurl on Mac:

brew cask install wkhtmltopdf
brew reinstall openssl
pip install pycurl==7.43.0.1 --install-option=--with-openssl --install-option=--openssl-dir=/usr/local/opt/openssl
pip install phonenumbers
@brunojppb
brunojppb / postgres-brew.md
Created Aug 15, 2019 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)
View postgres-brew.md

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@brunojppb
brunojppb / backup_redmine.sh
Last active Apr 3, 2019
Backup Redmine script
View backup_redmine.sh
# Backup redmine script
# see https://www.redmine.org/projects/redmine/wiki/RedmineBackupRestore
# Check redmine path
ps fax | grep redmine
# Dump mysql data
/usr/bin/mysqldump -u <USERNAME> -p<PASSWORD> -h <HOSTNAME> <DATABASE> > /var/data/redmine/backups/redmine-db-"`date +"%Y-%m-%d"`".sql
# TODO: Dump binary data (attachments)
You can’t perform that action at this time.