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 / create-rpm-samba4.sh
Last active Mar 1, 2020
FPM CentOS 7 Samba 4.11.5 RPM
View create-rpm-samba4.sh
#!/bin/bash
## Create RPM package Samba4 4.11.5 (CentOS 7)
## http://sig9.hatenablog.com/entry/2017/12/04/000000
## Run as root (sudo su)
VERSION=4.11.5
yum -y install epel-release
yum update -y
yum -y install gcc python3-devel curl rpm-build ruby ruby-devel rubygems ruby-libs make
@jniltinho
jniltinho / install-rancher-ubuntu.md
Last active Aug 19, 2019
Install Rancher 1.6 on Ubuntu 16.04
View install-rancher-ubuntu.md

Instalando Rancher no Ubuntu 16.04 64Bits

O ambiente foi criado na nuvem do Google

Preparando ambiente Manager

1 Agent Server: 2 CPUs, 7.5GB de RAM, 30GB de HD.

Para ambiente de Homologação (HOMO)

@jniltinho
jniltinho / install-wine-centos7.sh
Last active Apr 17, 2019
Install wine 3.0 32/64 Bits for CentOS 7 64Bits
View install-wine-centos7.sh
#!/bin/bash
# Download, build and install wine 32-bit on CentOS 7
# For details of this script, please check
# https://www.systutorials.com/239913/install-32-bit-wine-1-8-centos-7/
# Author: Eric Zhiqiang Ma (zma@ericzma.com)
function compile_wine {
@jniltinho
jniltinho / install_tidb_on_ispconfig.sh
Last active Jan 23, 2018
Install TiDB on ISPConfig as MariaDB
View install_tidb_on_ispconfig.sh
#!/bin/bash
## Install and Setup TiDB on Linux
## https://github.com/pingcap/tidb
## https://github.com/pingcap/docs/blob/master/sql/privilege.md
## https://pingcap.com/blog/2016-10-17-how-we-build-tidb/
## https://github.com/pingcap/tidb/blob/master/config/config.toml.example
## Remove MariaDB/Mysql
systemctl stop mysql mysqld
@jniltinho
jniltinho / install_setup_tidb.sh
Last active Apr 11, 2020
Install and Setup TiDB on Linux
View install_setup_tidb.sh
#!/bin/bash
## Install and Setup TiDB on Linux
## https://github.com/pingcap/tidb
## https://github.com/pingcap/docs/blob/master/sql/privilege.md
## https://pingcap.com/blog/2016-10-17-how-we-build-tidb/
useradd tidb -d /var/lib/tidb -m
usermod -a -G tidb tidb
cd /var/lib/tidb
View get_linux_dist.go
package main
import (
"log"
"os/exec"
"strings"
)
func main() {
@jniltinho
jniltinho / gowget.go
Last active Dec 12, 2017
Download HTTP using Golang
View gowget.go
package main
/*
Usage of ./gowget [URL] for download
URL: https://github.com/thbar/golang-playground/blob/master/download-files.go
URL: https://stackoverflow.com/questions/11692860/how-can-i-efficiently-download-a-large-file-using-go
*/
@jniltinho
jniltinho / install_pagespeed_nginx.sh
Last active Nov 18, 2019
How to Install Nginx and Google PageSpeed on Debian/Ubuntu
View install_pagespeed_nginx.sh
#!/bin/bash
## Install PageSpeed on Debian 8/9 and Ubuntu 16.04 64Bits
## https://www.howtoforge.com/tutorial/how-to-install-nginx-and-google-pagespeed-on-ubuntu-16-04/
## http://nginx.org/en/linux_packages.html
## https://www.modpagespeed.com/doc/build_ngx_pagespeed_from_source
## https://developers.google.com/speed/pagespeed/module/
## Debian ISO: https://cdimage.debian.org/cdimage/archive/8.9.0/amd64/iso-cd/
## No Link abaixo tem o pacote do Nginx para o Debian 8 64Bits
## https://github.com/jniltinho/ispconfig/tree/master/packages/debian/jessie
## Run as root (sudo su)
@jniltinho
jniltinho / install_otrs_ubuntu.sh
Last active Mar 5, 2019
Install OTRS 5.0.23 on Ubuntu 16.04
View install_otrs_ubuntu.sh
#!/bin/bash
## Install OTRS 5.0.23 on Ubuntu 16.04
## https://www.howtoforge.com/tutorial/how-to-install-otrs-opensource-trouble-ticket-system-on-ubuntu-16-04/
## http://www.geoffstratton.com/otrs-installation-5011-ubuntu-1604
## https://complemento.net.br/2015/11/13/instalando-o-otrs-5-0-no-centos-7-com-banco-de-dados-mariadb-fork-do-mysql/
## https://www.unixmen.com/install-otrs-ubuntu-16-04-apache/
## Run as root (sudo su)
useradd -r -d /opt/otrs -c 'OTRS User' otrs
usermod -a -G www-data otrs
@jniltinho
jniltinho / install_sqlserver_ubuntu.sh
Created Sep 18, 2017
Install SQL Server on Ubuntu 16.04
View install_sqlserver_ubuntu.sh
#!/bin/bash
## Install SQL Server on Ubuntu 16.04
## https://docs.microsoft.com/pt-br/sql/linux/quickstart-install-connect-ubuntu
## Run as root (sudo su)
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list)"
add-apt-repository "$(curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list)"
You can’t perform that action at this time.