Skip to content

Instantly share code, notes, and snippets.

Patricio Bruna pbruna

Block or report user

Report or block pbruna

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
  • Bunny Hops: 30 seconds
  • Jumping Jacks: 30 seconds
  • Cherry Pickers: 30 seconds
  • Lunge to Twist: 30 seconds - alternate sides
  • Skater Plyos: 60 seconds - alternate sides
  • Air Squats: 60 seconds
  • Rest Period: 30 seconds
  • Alternating Supermans: 60 seconds - alternate arms and legs
  • Lateral Pushups: 60 seconds - alternate sides
  • Rest Period: 30 seconds
pbruna / FuckZimbraSignature.html
Last active Jan 31, 2017
Problema de tamaño de Zimbra
View FuckZimbraSignature.html
<!-- Este es el original enviado por CVega -->
<div style="color: #000000;
font-family: arial, helvetica, sans-serif;
font-size: 16px; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing: normal;
orphans: 2; text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: #ffffff;
word-wrap: break-word;">
pbruna / Vagrantfile.rb
Created Dec 2, 2016
Vagrantfile for Zimbra
View Vagrantfile.rb
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at = "bento/centos-7.2"
config.ssh.insert_key = false
# Compartir directorio de desarollo de Zimlets
View rotador.js
var exec = require('child_process').exec;
var hash = {
'A': {els: [1,2], result: 0},
'B': {els: [1,2,3,4,5], result: 0},
'C': {els: [1,2,3,4,5], result: 0},
'D': {els: [1,4,5], result: 0},
var COMANDOS = [
pbruna / build.log
Created Jul 13, 2016
log build openshift
View build.log
The value of ALLOWED_UIDS is [1-]
Using locally available image "ryanj/centos7-s2i-nodejs@sha256:dba7648405d14ff152e63c69b609f11900dab046194c168dd2194ff11418bd34"
Creating a new S2I builder with build config: "Builder Name:\t\t\tNode.js v6.2.2\nBuilder Image:\t\t\tryanj/centos7-s2i-nodejs@sha256:dba7648405d14ff152e63c69b609f11900dab046194c168dd2194ff11418bd34\nSource:\t\t\t\tfile:///tmp/s2i-build261500343/upload/src#109c53b8ad5fe7f012594f9e0ca91fd38fe68bc4\nOutput Image Tag:\t\tpassword-reset/parse-45:62f4a161\nEnvironment:\t\t\tOPENSHIFT_BUILD_NAME=parse-45,OPENSHIFT_BUILD_NAMESPACE=password-reset,,OPENSHIFT_BUILD_REFERENCE=feature/react-components,OPENSHIFT_BUILD_COMMIT=109c53b8ad5fe7f012594f9e0ca91fd38fe68bc4,PORT=8080,,,MAILER_PORT=587,,MAILER_PASSWORD=Zb0x.,2016..,MAILER_SSL=0,ZIM
View examplepdns.json
pbruna / oauth_zimbra_example.rb
Created Oct 8, 2015
View oauth_zimbra_example.rb
pbruna@pbrunamac ~ $ pry
[1] pry(main)>
[1] pry(main)> require 'oauth' => true
[2] pry(main)> "esta_es_la_key","este_es_el_secret", { site: '', request_token_path: '/service/extension/sampleoauth/req_token', authorize_path: '/service/extension/sampleoauth/authorization', access_token_path: '/service/extension/sampleoauth/access_token'})
=> #<OAuth::Consumer:0x007fc592b1e5e0
pbruna / mruby_nginx_mail_auth_router.rb
Last active Apr 4, 2018
A mruby-nginx example of how to do an Auth Router for a Mail Proxy
View mruby_nginx_mail_auth_router.rb
backend = ""
request =
auth_user = request.headers_in["Auth-User"]
domain = auth_user.split(/@/).last
backend_zimbra_open = "http://opmailbox1:7072/service/extension/nginx-lookup"
backend_zimbra_network = "http://nemailbox1:7072/service/extension/nginx-lookup"
auth_headers = {
"Auth-User" => request.headers_in["Auth-User"],
pbruna / saslauthd.conf
Last active Aug 29, 2015
openLDAP Proxy with Meta Backend
View saslauthd.conf
# /etc/saslauthd.conf
ldap_servers: ldap://
ldap_search_base: ou=%d,dc=local
ldap_timeout: 10
ldap_filter: (|(uid=%U)(SAMACCOUNTNAME=%U))
ldap_bind_dn: cn=Manager,dc=local
ldap_password: secret
ldap_deref: never
ldap_restart: yes
ldap_scope: sub
pbruna /
Last active May 18, 2017
Ejemplo de consultas y respuestas de API CarterDTE

1. Inicio de Sesion


El usuario debe ser validado contra Zimbra usando:

  • LDAP, o

Sólo usuarios con el atributo zimbraIsDelegatedAdminAccount == TRUE o zimbraIsAdmin == TRUE deben ingresar. Al validar correctamente se debe retorar un Carter_Auth_Token el cual se usará para todas las solicitudes siguientes.

You can’t perform that action at this time.