Skip to content

Instantly share code, notes, and snippets.

View shazaum's full-sized avatar
🏠
Working from home

Renato dos Santos shazaum

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am shazaum on github.
  • I am shazaum (https://keybase.io/shazaum) on keybase.
  • I have a public key whose fingerprint is 7A48 DF18 E947 CCB2 208F 8378 5FC3 6F62 007E 6D23

To claim this, I am signing this object:

#
# First Login on PostgreSQL 9.6.4
#
# configuration files on Ubuntu - /etc/postgresql/9.6/main
# configuration files on CentOS - ##
# pg_hba.conf file - add this lines for remote connection
host all all 0.0.0.0/0 md5
host all all ::/0 md5
#!/usr/bin/env python
import requests
import sys
from asterisk.agi import *
agi = AGI()
payload={'token':'8978-23-4-324-23-423-3',
'app': 'ura',
'cpfcnpj':sys.argv[1]}
@shazaum
shazaum / export.sh
Created May 9, 2017 12:07 — forked from ognjenm/export.sh
The following script will export all zimbra accounts to an import script
#!/bin/bash
# The following script will export all accounts to an import script.
# this script should be run as zimbra user
# target for ZCS 8, single server deployment
# last update 2014-04-04
# ognjen.miletic@gmail.com
# original at http://www.3open.org/d/zimbra/export_accounts
# customize these to your needs
@shazaum
shazaum / gist:a4afaf28f607653f34de
Last active April 14, 2019 02:03
regex custom
X = Regexp.new("[0-9]")
N = Regexp.new("[1-9]")
Z = Regexp.new("[2-9]")
match_number = "ZNX" # does not works, need convert to "#{Z}+#{N}+#{X}"
number = "210"
if (number =~ /#{match_number}/) # it works -> /#{Z}+#{N}+#{X}/
puts "match #{number}"