Skip to content

Instantly share code, notes, and snippets.

<link rel="import" href="../paper-toast/paper-toast.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/iconsets/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="my-element">
<template>
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
require 'inifile'
module Helper
def obter_porta_instalada(nome)
ini = IniFile.load("c:\\Monde\\Servidor-#{nome}\\bin\\MondeServer.ini")
if ini.has_section? 'porta'
return ini['porta']
end
end
end
@RobertoSchneiders
RobertoSchneiders / elsaticbeanstalk_docker_poxa_with_ssl.md
Last active September 15, 2015 12:59
How to configure a Poxa server with SSL in ElasticBeastalk.

This documentation has been moved to the this wiki page.

With HTTP

If you don't need SSL/HTTPS all you have to do is create two files and upload a zip to AWS Elastic Beanstalk configured for Docker platform, pretty straightforward.

Create the configuration files

Add a config file poxa.conf and configure the HTTP Port and credentials.

@RobertoSchneiders
RobertoSchneiders / gist:6699342
Created September 25, 2013 13:09
retorno de AquisicaoClientesSysmoService
[
{
"id": 1,
"bloqueado": 0,
"codigo": "1234",
"nome": "Conta Oeste Ltda",
"bases": [
{
"id": 1,
"nome": "Primeira Base"
@RobertoSchneiders
RobertoSchneiders / gist:6979062
Created October 14, 2013 17:29
PersistenciaParceiroSysmoService JSON
{
"id": null,
"bloqueado": 0,
"codigo": "666666",
"nome": "Escritorio Contabil 6",
"email": "escritorio6@sysmo.com.br",
"bases": null,
"modulosSistema": [
{
"id": 1,
@RobertoSchneiders
RobertoSchneiders / install_ex.sh
Created May 21, 2016 17:33 — forked from jimsynz/install_ex.sh
I use this to install Elixir on Codeship.
#!/bin/sh
# I use this to install Elixir on our codeship instances for testing. YMMV.
# curl -O https://gist.githubusercontent.com/jamesotron/44f8962cddef781ab830/raw/e75599e95587cbca26e707505fd40dd0f26eb0f5/install_ex.sh
# . ~/install_ex.sh
# You can override your Elixir and Erlang versions from your shell when you call ./install_ex.sh.
ERLANG_VERSION=${ERLANG_VERSION:-18.0.3}
ELIXIR_VERSION=${ELIXIR_VERSION:-1.0.5}
@RobertoSchneiders
RobertoSchneiders / README.md
Created May 22, 2016 02:29 — forked from joakimk/README.md
CircleCI elixir build example

This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.

We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.

It should be generic enough to work on any elixir app using mix.

If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!

@RobertoSchneiders
RobertoSchneiders / stop_all.bat
Created May 23, 2016 19:26
Para todos os serviços do windows com um determinado nome
wmic service where "name like 'MondeServer%'" call stopservice
@RobertoSchneiders
RobertoSchneiders / rubycritic.sh
Last active June 15, 2018 22:26
RubyCritic CI Script
#!/bin/sh
# Ruby Critic Threshold
threshold=99
# Run rubycritic analysis with json format
result="$(rubycritic app lib config -f json)"
exit_code=$?
if [ "$exit_code" != "0" ]; then