Skip to content

Instantly share code, notes, and snippets.

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

Nilton Oliveira jniltinho

🏠
Working from home
View GitHub Profile
@jniltinho
jniltinho / error-modoboa.txt
Created October 26, 2013 13:05
Error Modoboa OpenSUSE 12.3 32Bits
Error Modoboa OpenSUSE 12.3 32Bits
Validating models...
0 errors found
October 26, 2013 - 07:48:11
Django version 1.5.5, using settings 'webmail.settings'
Development server is running at http://192.168.56.100:8000/
Quit the server with CONTROL-C.
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
@jniltinho
jniltinho / setup-quokka-nginx-uwsgi-ubuntu.sh
Last active June 16, 2016 06:50
Install CMS Quokka + Nginx + uWSGI Ubuntu
#!/bin/bash
# Author: Nilton OS -- www.linuxpro.com.br
# Version: 0.5
echo 'setup-quokka-nginx-uwsgi-ubuntu.sh'
echo 'Support Ubuntu/Debian'
echo 'Installs Nginx + uWSGI + Quokka'
echo 'Requires ubuntu 12.04+ and installs nginx + uwsgi'
# Check if user has root privileges
#!/bin/bash
# Autor: Nilton OS -- www.linuxpro.com.br
echo 'setup-web2py-nginx-uwsgi-centos64.sh'
echo 'Support CentOS 6.4'
echo 'Installs Nginx 1.4.1 + uWSGI + Web2py'
# Get Web2py Admin Password
echo -e "Web2py Admin Password: \c "
read PW
#!/bin/bash
### Install SPFBL and JRE8 on Ubuntu 16.04 64Bits
### Project -> https://github.com/leonamp/SPFBL
## First install wget, unzip
## Primeiro instale o wget e unzip
# Check if user has root privileges
@jniltinho
jniltinho / test_port.py
Created July 8, 2017 09:34
Test Port Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#===============================================================
# Script para iniciar um server com bind IP e Porta
# Uso: Executar o script passando como parametro IP local valido, porta inicial e porta final do range, nesta ordem.
# Codigo do script, em sua maioria, foi adaptacao do script de TestPort.py;
#===============================================================
import socket, sys
@jniltinho
jniltinho / create_app_django.sh
Last active October 14, 2017 17:39
Create App Django
#!/bin/bash
### Create Django Skeleton APP on Debian|Ubuntu
## First install:
## apt-get -y install python-django
## Usando uWSGI na app Django
## apt-get -y install python-dev python-pip
## pip install uwsgi
## chown -R www-data:www-data /var/www/projeto
@jniltinho
jniltinho / create_django_skeleton.sh
Last active October 14, 2017 17:40
Create Django Skeleton
#!/bin/bash
### Create Django Skeleton APP on Debian|Ubuntu
## First install:
## apt-get -y install python-django
## Default folder
mkdir /var/www
cd /var/www
@jniltinho
jniltinho / django_index_html
Created April 17, 2017 00:16
django_index_html
<!DOCTYPE html>
<html>
<head>
<title>Django Project</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAACSVBMVEURMijx8/L///+ImZTV29mPn5ri5uWXpqFSamNccms7Vk4gPzU9WFBacWp0h4GElZCJmpWeq6eZp6OQn5t+kItofXZJYlslQzoePTRXbme7xMHs7+7m6eiyvLn5+vorSUAvTEMqSD91iIK/yMUTNCpTa2S2wL39/f0VNStrf3nc4eBVbWba392uubbp7OuAkowUNCuhrqqrt7Ojr6z+/v4nRTzr7u2zvrtYb2jc4N/4+fiKm5Zhd3FEXlYwTUQtSkExTUVFX1dgdnC+x8TK0c9kenMcPDIYOC/z9fTf5OJWbWaWpKASMykhQDb6+/uqtrLd4uEaOjBOZl/j5+YsSUBZcGmHl5Kms69sgXvHz8w/WVHg5OMdPDPu8fD09fX29/fn6un7/Pzo6+rY3dy5w8CImJObqaXN1NF8jolQaWGTop33+PcoRj3S2NeyvbqYp6JPZ2Dq7eyFlpHL0tBDXVb4+fnBysfJ0M5bcmtNZV5LZFxme3WaqKT8/fwWNiwzT0aVo58iQDfh5eRKY1t/kYt6jYd6jIZtgntnfHaWpaFwhH7Z3tyvurYyTkbv8fG4wr9QaGDk6OcfPjWfrKjb4N5jeXI5VUzGzszM09Hw8vLCy8iksa1pfnfAycens7AuS0J5i4ZIYVo2UkoZOTBfdm80UEeRoJzDzMkjQTicqqZBW1M8V0+Lm5YpRz7FzctedG28xcK3wb41UUmMnJd4ioXt8O+9xsOCk45ieHE4VEuksKySoZzy9PPQ19U6VU0XNy1sgHp2iYM0UUj
@jniltinho
jniltinho / install_redmine.sh
Last active October 14, 2017 17:41
Install Redmine 3.3.2 on Debian 8.7 64Bits ISPConfig Server
#!/bin/bash
## Install Redmine 3.3.2 Integrated with ISPConfig
## On Debian 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Version: 0.1
### Tested on Debian 8.7 64Bits
apt-get install -y ruby ruby-dev libmysqlclient-dev libmagickwand-dev
gem install unicorn
gem install bundler
@jniltinho
jniltinho / install_gogs_debian.sh
Last active October 14, 2017 17:44
Install Gogs Debian Apache2 Webserver
#!/bin/bash
## Install Gogs v0.9.113 + Apache2 Webserver + Mysql
## On Debian 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Version: 0.1
### Tested on Debian 8.7 64Bits
echo 'Support Debian'
echo 'Installs Gogs 0.9.113'