This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net" | |
"os" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Install and Configure Quokka + Gunicorn | |
## Link: http://www.onurguzel.com/how-to-run-flask-applications-with-nginx-using-gunicorn/ | |
## Link: http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ | |
quokka_folder="/home/quokka/quokka-env" | |
$quokka_folder/bin/pip install gunicorn | |
$quokka_folder/bin/gunicorn -u quokka -g quokka --chdir $quokka_folder/quokka --bind 0.0.0.0 wsgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Nilton OS www.linuxpro.com.br | |
echo 'setup-web2py-nginx-uwsgi-opensuse.sh' | |
echo 'Requires OpenSUSE 12.X, 13.X 32/64Bits and installs Nginx + uWSGI + Web2py' | |
# Check if user has root privileges | |
if [[ $EUID -ne 0 ]]; then | |
echo "You must run the script as root or using sudo" | |
exit 1 |
OlderNewer