Skip to content

Instantly share code, notes, and snippets.

View rubens-fidelis's full-sized avatar

Rubens Fidelis rubens-fidelis

View GitHub Profile
@rubens-fidelis
rubens-fidelis / docker.local.php-apache.sh
Last active March 26, 2021 13:22
Docker localhost PHP 7.4 + Apache running on port 8000
docker run -dit --cpus="1.0" --memory="1g" --memory-reservation="512m" -p 8000:80 --name apache_server -v ~/php-apache:/var/www/html php:7.4-apache && docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' apache_server
@rubens-fidelis
rubens-fidelis / prettier.config.js
Last active March 26, 2021 13:18
Prettier standard code format configuration
module.exports = {
semi: false,
singleQuote: true,
arrowParens: 'avoid',
trailingComma: 'none',
endOfLine: 'auto'
}
@rubens-fidelis
rubens-fidelis / docker.local.pgsql.sh
Last active March 26, 2021 13:25
Docker localhost postgresql
docker run -dit --cpus="1.0" --memory="1g" --memory-reservation="512m" --name postgres_server -e POSTGRES_PASSWORD=postgres -v ~/postgres-data/:/var/lib/postgresql/data -p 5432:5432 postgres && docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' postgres_server
@rubens-fidelis
rubens-fidelis / lavaLamp.js
Last active March 25, 2021 03:10
Plugin de interação visual com navegação - Um bloco segue a navegação em hover e voltar para a ativa no 'mouseout'
/*!
* jQuery Lava Lamp Plugin v0.3 (30/09/2014)
* https://gist.github.com/r2fidelis/bffa711bed0f3021f140
*
* Copyright 2013, Rubens Fidelis
* Plugin de interação visual com navegação - Um bloco segue a navegação em hover e volta para a ativa no 'mouseout'
*
* @dependency jQuery 1.8+ && Bootstrap 2.3+
* @author Rubens Fidelis [www.r2fidelis.com]
* @since 0.1 (24/06/2013)
@rubens-fidelis
rubens-fidelis / r2Validate.js
Last active March 25, 2021 03:10
Plugin de validação de formulários utilizando recursos do Bootstrap
/*!
* jQuery r2Validate Plugin v0.2
* https://gist.github.com/r2fidelis/bffa711bed0f3021f140
*
* Copyright 2013, Rubens Fidelis
* Plugin de validação de formulários utilizando recursos do Bootstrap
*
* @dependency jQuery 1.8+ && Bootstrap 2.3+
* @author Rubens Fidelis [www.rubensfidelis.com]
* @since 0.1 (19/06/2013)
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<title>Mapa</title>
<!-- jQuery -->
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<!-- Bootstrap -->
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">