Skip to content

Instantly share code, notes, and snippets.

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

Fagner Silva fagnersilva

🏠
Working from home
  • Trix Systems
  • Campinas | São Paulo | Brasil
  • 23:24 (UTC -03:00)
View GitHub Profile
@fagnersilva
fagnersilva / storage local proxmox
Created March 13, 2017 17:47
storage local proxmox
storage local proxmox
cd /var/lib/vz/template/iso/
wget http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1611.iso
@fagnersilva
fagnersilva / Lista de Estudo
Created February 26, 2017 00:06
Lista de Estudo
--------
01 - Iniciando JavaScript
02 - JavaScript Básico
03 - JavaScript Avançado
04 - Orientação a Objetos com JavaScript
05 - ES6
06 - Typescript
--------
01 - Gulp
02 - Grunt
@fagnersilva
fagnersilva / configurando rede estatica
Last active January 24, 2017 22:41
configurando rede estatica
vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.23
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
# dns-* options are implemented by the resolvconf package, if installed
@fagnersilva
fagnersilva / install pgsql
Last active April 14, 2017 00:40
install pgsql
apt-get install postgresql-9.6 postgresql-contrib-9.6 postgresql-client-9.6 libpq-dev
@fagnersilva
fagnersilva / soucelist_ubuntu14.04
Created December 13, 2016 16:59
soucelist_ubuntu14.04
### See http://help.ubuntu.com/community/UpgradeNotes.
### Default Repos.
deb http://br.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
### Security Updates.
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
### Major bug fix updates.
@fagnersilva
fagnersilva / Integrando Laravel 5.3 + AdminLTE 3.0
Created October 23, 2016 22:16
Integrando Laravel 5.3 + AdminLTE 3.0
1 - Instalando globalmente com Composer
$ composer global require "acacha/adminlte-laravel-installer=~3.0"
2 - Crie o projeto
$ laravel new laravel-with-admin-lte
$ cd laravel-with-admin-lte
3 - Crie o banco de dados e configure o .env
Aug 29 09:53:44 zbx snmptrapd[1190]: 2016-08-29 09:53:44 192.168.24.183(via UDP: [192.168.24.183]:36182->[192.168.24.188]) TRAP, SNMP v1, community public#012#011.1.3.6.1.4.1.22060.3.1 Enterprise Specific Trap (1007) Uptime: 1:57:22.31#012#011.1.3.6.1.4.1.22060.3.1.1 = Gauge32: 7#011.1.3.6.1.4.1.22060.3.1.2 = Gauge32: 8#011.1.3.6.1.4.1.22060.3.1.3 = Hex-STRING: 07 E0 08 1D 09 35 2C 00 15 #011.1.3.6.1.4.1.22060.3.1.4 = INTEGER: 4#011.1.3.6.1.4.1.22060.3.1.5 = STRING: "Retorno de Sinal - RCL"#011.1.3.6.1.4.1.22060.3.1.6 = STRING: " Enlace: 4"
Aug 29 09:53:44 zbx snmptt[8040]: .1.3.6.1.4.1.22060.3.1.0.1007 Normal "RCL" 192.168.24.183 - ZBXTRAP 192.168.24.183 192.168.24.183
______________________________
snmptt.conf
EVENT LABCOM .* "RCL" Normal
FORMAT ZBXTRAP $aA $ar
______________________________
snmptrapd.conf
traphandle default snmptt
ngrep -W byline -d eth1 port 5060
ngrep -W byline -d eth1 port 5060 -O captura.pcap
ngrep -W byline -d eth1 INVITE
http://opensips.com.br/wiki/index.php?title=OpenSIPs_e_Asterisk
https://www.powerpbx.org/content/kamailio-supernode-siremis-gui-install-guide-v1
https://www.sipwise.com/products/sipwise-c5/
https://www.voztovoice.org/?q=node/582
http://www.asipto.com/pub/kamailio-devel-guide/
Install pjproject
Next you will download and install the pjproject sip library directly from pjsip.org. But first we’ll change directories to work in the /usr/src directory.
# cd /usr/src
# wget http://www.pjsip.org/release/2.3/pjproject-2.3.tar.bz2
# tar -jxvf pjproject-2.3.tar.bz2
This will create the pjproject-2.3 directory. Change to this directory and run the following set of commands to build and install the pjproject sip library.
# cd pjproject-2.3