Skip to content

Instantly share code, notes, and snippets.

Roberto Schneiders RobertoSchneiders

Block or report user

Report or block RobertoSchneiders

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
@RobertoSchneiders
RobertoSchneiders / gist:6699342
Created Sep 25, 2013
retorno de AquisicaoClientesSysmoService
View gist:6699342
[
{
"id": 1,
"bloqueado": 0,
"codigo": "1234",
"nome": "Conta Oeste Ltda",
"bases": [
{
"id": 1,
"nome": "Primeira Base"
@RobertoSchneiders
RobertoSchneiders / gist:6979062
Created Oct 14, 2013
PersistenciaParceiroSysmoService JSON
View gist:6979062
{
"id": null,
"bloqueado": 0,
"codigo": "666666",
"nome": "Escritorio Contabil 6",
"email": "escritorio6@sysmo.com.br",
"bases": null,
"modulosSistema": [
{
"id": 1,
View designer.html
<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>
View designer.html
<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">
View helper.rb
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 / elasticbeanstalk_deploy_iam_policy.md
Last active Oct 1, 2019
IAM Policy for deploy on Elastic Beanstalk
View elasticbeanstalk_deploy_iam_policy.md

I am deploying with this IAM using Codeship and Circle CI to Elastic Beanstalk. I had a lot of trouble with this config. I talked to the aws support for about 6 hours until this worked properly, so, I guess it is worth to share.

UPDATE: In the end, I have to use the AWSElasticBeanstalkFullAccess policy. My custom policy keep breaking every week with some new added permission or some EB internal change. Anyway, the IAM I was using is below.

This works for me with CircleCI and EB Cli.

{
    "Version": "2012-10-17",
    "Statement": [
        {
@RobertoSchneiders
RobertoSchneiders / deploy_with_ebcli3_on_circleci.md
Last active Nov 13, 2019
Settings to deploy to AWS Elastic Beanstalk on CircleCi (EB Cli 3)
View deploy_with_ebcli3_on_circleci.md

This is how I configured the deploy of my rails apps to AWS Elastic Beanstalk through CircleCI 1.0.

If you are using the Circle CI 2.0, take a look at this article from ryansimms

Configure Environments Variables

On Project Settings > Environment Variables add this keys:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
    The aws user must have the right permissions. This can be hard, maybe, this can help you.
@RobertoSchneiders
RobertoSchneiders / elsaticbeanstalk_docker_poxa_with_ssl.md
Last active Sep 15, 2015
How to configure a Poxa server with SSL in ElasticBeastalk.
View elsaticbeanstalk_docker_poxa_with_ssl.md

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 / sidekiq.config
Created Oct 9, 2015 — forked from hiattp/sidekiq.config
Sidekiq Config for Elastic Beanstalk
View sidekiq.config
# Sidekiq interaction and startup script
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh":
mode: "000755"
content: |
#!/bin/bash
. /opt/elasticbeanstalk/hooks/common.sh
. /opt/elasticbeanstalk/support/envvars
@RobertoSchneiders
RobertoSchneiders / rubycritic.sh
Last active Jun 15, 2018
RubyCritic CI Script
View rubycritic.sh
#!/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
You can’t perform that action at this time.