Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Nilton Oliveira jniltinho

🏠
Working from home
Block or report user

Report or block jniltinho

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
@jniltinho
jniltinho / queue.pl
Last active Aug 29, 2015
List QUEUE Postfix
View queue.pl
#!/usr/bin/env perl
## O original esta neste Link
## www.arschkrebs.de/postfix/scripts/mailqfmt.pl
## http://www.arschkrebs.de/postfix/scripts/
# Postfix mailq file reformatter, (C) 2003 by Matthias Andree
# This file is licensed to you under the conditions of the
# GNU General Public License v2.
## Install perl-HTTP-Date, perl-JSON
View ipv4_go_rev01.go
package main
/*
Autor: Gustavo Freitas <gst.freitas@gmail.com>
URL: http://firebitsbr.wordpress.com/2014/03/22/golang-obter-ipv4-e-ipv6-localmente-com-cdir/
*/
import "fmt"
import "net"
@jniltinho
jniltinho / backup_vms.py
Created Jan 21, 2015
Backup VMs XenServer/XCP
View backup_vms.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
## Versao 0.3
### Colocar no Crontab
## Script para Backup do Citrix
## 15 03 * * * /usr/local/bin/backup_vms.py --backup --sendmail --clean=3
import os, sys, optparse, socket
View spfbl.go
package main
/*
Author: Nilton OS<jniltinho@gmail.com>
Version: 0.06
Update: 2015/10/02
https://github.com/leonamp/SPFBL/blob/master/spfbl.sh
Port for Golang
# Atenção! Para utilizar este serviço, solicite a liberação das consultas
@jniltinho
jniltinho / ssh_client.go
Created Oct 30, 2015 — forked from svett/ssh_client.go
SSH client in GO
View ssh_client.go
package main
import (
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
View fibonacci_sequence.py
# -*- coding: utf-8 -*-
'''
Autor: Luiz Felipe na Lista Python Brasil 31-10-2015
A série de Fibonacci é formada pela seqüência 1,1,2,3,5,8,13,21,34,55,...
Faça um programa capaz de gerar a série até o n−ésimo termo.
'''
#Fn = F(n-1) + F(n-2)
@jniltinho
jniltinho / send_mail.py
Last active Nov 23, 2015
Send Mail plugin for Nagios
View send_mail.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Script Send Mail Nagios (send_mail.py)
Copyrighted by Nilton OS <jniltinho at gmail.com>
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Version: 0.1
Put this script in Nagios plugins folder
View install-gitlab-opensuse.sh
#!/bin/bash
## Install Gitlab 5.2 on OpenSUSE 12.3 32Bits
## Project http://gitlab.org/
## Base https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md
## Autor: Nilton OS -- Version 0.9 14-06-2013 -- http://wwww.linuxpro.com.br/blog
## Change Vars !!!
SERVER_IP="10.0.2.15"
SERVER_FQDN="gitlab.linuxpro.com.br"
DOMIAN="linuxpro.com.br"
@jniltinho
jniltinho / auth_samba4.py
Created May 19, 2013
Auth Samba4 for Flask Framework
View auth_samba4.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## Versao 0.1
import os, sys
import argparse
lib_samba = ['/opt/samba4/lib/python2.7/site-packages', '/usr/local/samba/lib/python2.7/site-packages']
for i in lib_samba:
@jniltinho
jniltinho / install_otrs_nginx.sh
Created Oct 3, 2013
Install OTRS + Nginx + ISPConfig3 OpenSUSE 12.2
View install_otrs_nginx.sh
## Install ISPCOnfig3 + Nginx + OTRS + OpenSUSE 12.2
## Howto instal ISPConfig3
## http://www.howtoforge.com/perfect-server-opensuse-12.2-x86_64-nginx-dovecot-ispconfig-3
## Install Nginx 1.5
wget http://download.opensuse.org/repositories/home:/microchip8:/branches:/server:/http/openSUSE_12.2/x86_64/nginx-1.5.6-55.1.x86_64.rpm
zypper in nginx-1.5.6-55.1.x86_64.rpm
usermod -A www nginx
You can’t perform that action at this time.