Skip to content

Instantly share code, notes, and snippets.

View spinolacastro's full-sized avatar

Diego Castro (dscastro) spinolacastro

  • Buenos Aires - Argentina
View GitHub Profile
from flask import Flask, url_for, redirect, request, session
from config import Config
from authlib.integrations.flask_client import OAuth
CLIENT_ID = 'ASLAKSJD'
CLIENT_SECRET = 'ASLDKJALSKDJA'
API_BASE_URL = 'https://api.contaazul.com'
REDIRECT_URI = 'https://091e727c.ngrok.io/callback'
AUTHORIZE_URL = API_BASE_URL + '/auth/authorize'
ACCESS_TOKEN_URL = API_BASE_URL + '/oauth2/token'
SERIALIZER
class CuentaSerializer(serializers.ModelSerializer):
tipo = serializers.StringRelatedField()
class Meta:
model = Cuenta
read_only_fields = ('id', 'saldo',)
exclude = ('data', 'activa', 'usuario', 'bind_ref')
.zZ.....HTTP/1.1 500 Internal Server Error
Server: nginx
Date: Thu, 04 May 2017 19:31:35 GMT
Content-Type: text/xml; charset=UTF-8
Content-Length: 689
Connection: keep-alive
X-Powered-By: PHP/5.2.17
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
[Thu May 04 19:25:54.951265 2017] [:error] [pid 5570] [client 181.169.86.11:61293] PHP Notice: Undefined variable: csssimulaprint in /var/www/html/library/Triata/View/Helper/Abstract.php on line 78
[Thu May 04 19:25:59.014781 2017] [:error] [pid 5571] [client 181.169.86.11:61292] PHP Notice: Undefined variable: csssimulaprint in /var/www/html/library/Triata/View/Helper/Abstract.php on line 78, referer: http://aceite.seg.com.ar/triata
[Thu May 04 19:25:59.198011 2017] [:error] [pid 5570] [client 181.169.86.11:61293] PHP Notice: Undefined variable: csssimulaprint in /var/www/html/library/Triata/View/Helper/Abstract.php on line 78, referer: http://aceite.seg.com.ar/triata
[Thu May 04 19:26:03.133642 2017] [:error] [pid 5569] [client 181.169.86.11:61295] PHP Notice: Undefined variable: csssimulaprint in /var/www/html/library/Triata/View/Helper/Abstract.php on line 78, referer: http://aceite.seg.com.ar/triata/pt/login
[Thu May 04 19:26:22.101457 2017] [:error] [pid 5585] [client 181.169.86.11:61305] PHP Notice
Dec 09 21:09:19 n-13-0 kernel: BUG: unable to handle kernel NULL pointer dereference at 0000000000000050
Dec 09 21:09:19 n-13-0 kernel: IP: [<ffffffffa04df27a>] rbd_dev_refresh+0xfa/0x180 [rbd]
Dec 09 21:09:19 n-13-0 kernel: PGD 62afb4067 PUD 599ee1067 PMD 0
Dec 09 21:09:19 n-13-0 kernel: Oops: 0002 [#1] SMP
Dec 09 21:09:19 n-13-0 kernel: Modules linked in: ext4 mbcache jbd2 rbd libceph dns_resolver xt_statistic xt_nat xt_recent xt_mark veth xt_comment xt_multiport bridge stp llc vport_vxlan vxlan ip6_udp_tunnel udp_tunnel openvswitch ipt_REJECT xt_conntrack iptable_filter ipt_MASQUERADE nf_nat_masquerade_ipv4 xt_addrtype iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack dm_mirror dm_region_hash dm_log dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd sg hv_utils i2c_piix4 i2c_core pcspkr dm_mod nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c sd_mod crc_t10dif crct10dif_
* Ativação via painel de controle ou API
* Clusters dedicados e com Api gerenciada
* Alta disponibilidade
* Kubernetes:
* Deploy de aplicações rápida e sem surpresas
* Escalabilidade de aplicações "on the fly" (hpa)
* Fácil atualização de aplicações (rolling updates)
* Melhor utilização de hardware
* Integração com CI (source to image)
* Métricas e logs
FROM centos:centos7
# PostgreSQL image for OpenShift.
# Volumes:
# * /var/lib/psql/data - Database cluster for PostgreSQL
# Environment:
# * $POSTGRESQL_USER - Database user name
# * $POSTGRESQL_PASSWORD - User's password
# * $POSTGRESQL_DATABASE - Name of the database to create
# * $POSTGRESQL_ADMIN_PASSWORD (Optional) - Password for the 'postgres'
<Region Name="brazilsouth">
<IpRange Subnet="23.97.96.0/20" />
<IpRange Subnet="23.97.112.0/25" />
<IpRange Subnet="23.97.112.128/28" />
<IpRange Subnet="104.41.0.0/18" />
<IpRange Subnet="191.232.32.0/19" />
<IpRange Subnet="191.232.192.0/20" />
<IpRange Subnet="191.237.248.0/21" />
<IpRange Subnet="191.239.240.0/20" />
<IpRange Subnet="191.232.208.0/21" />
#!/bin/bash
export KESTREL_SERVER_URLS=${KESTREL_SERVER_URLS:-http://0.0.0.0:8080}
export APP_ROOT=/opt/app-root/src/src/RankMyAppSearchApi/
pushd $APP_ROOT
envsubst < /opt/app-root/config/hosting.json.template > hosting.json
dotnet run
#!/bin/bash
set -e
shopt -s dotglob
echo "---> Installing application source..."
mv /tmp/src/* ./
echo "---> Installing dependencies ..."
dotnet restore
echo "---> Building application from source ..."
dotnet build src/*/project.json
# Fix source directory permissions