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
package main
import (
"fmt"
"net"
"os"
"strings"
)
/*
#!/bin/bash
## Install ISPConfig 3.x on OpenSUSE 42.2 64Bits
## ISPConfig3 3.x + Apache2 + openSUSE Leap 42.2 64Bits
## VM HD 50GB, swap 2GB, / 19GB, /srv/www all | Filesystem EXT4
## Run as root
SUSE_VERSION=$(cat /etc/issue | awk '{ print $4 }' | head -n1)
zypper ar http://download.opensuse.org/repositories/home:/munix9/openSUSE_Leap_42.2/ hhvm
zypper ar http://download.opensuse.org/repositories/server:/http/openSUSE_Leap_42.2/ server_http
@jniltinho
jniltinho / install_ffmpeg-nvenc_obs.sh
Last active May 5, 2020 01:56
Install FFMPEG GIT + NVENC SDK 8 + OBS GIT
#!/bin/bash
## Install FFMPEG GIT Ubuntu 16.04 64Bits
## http://www.linuxpro.com.br/2017/04/compile-ffmpeg-nvenc-ubuntu/
## Pacote Compilado no GITHUB: https://github.com/jniltinho/oficinadotux
## Run as root (sudo su)
## Links
## http://ftp.eq.uc.pt/software/Linux/deb-multimedia/pool/main/v/vid.stab/
## https://gist.github.com/Brainiarc7/4b49f463a08377530df6cecb8171306a
## https://developer.nvidia.com/ffmpeg
@jniltinho
jniltinho / extract-video.sh
Last active May 5, 2019 00:41
Extract and Merger Video/Audio using FFMPEG
#!/bin/bash
### Author: Nilton OS <jniltinho dot gmail.com>
### Version 0.5
fullfile=${2}
filename=$(basename "$fullfile")
extension="${filename##*.}"
filename="${filename%.*}"
FFMPEG="/usr/bin/ffmpeg"
#!/bin/bash
### Install Docker 1.12.3 on Ubuntu 16.04 64Bits
# Check if user has root privileges
if [[ $EUID -ne 0 ]]; then
echo "You must run the script as root or using sudo"
exit 1
fi
#!/bin/bash
### Install PHP 5.6.29 on Ubuntu 16.04 64Bits
### https://www.howtoforge.com/tutorial/how-to-install-php-5-6-on-ubuntu-16-04/
apt-get -y install build-essential libxml2-dev libxslt1-dev
apt-get -y install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libxml2-dev
apt-get -y install libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev
apt-get -y install libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev
apt-get -y install libfreetype6-dev libkrb5-dev libpq-dev libicu-dev
@jniltinho
jniltinho / install_php71_opensuse.sh
Last active July 30, 2021 08:10
Install PHP 7.1 on OpenSUSE
#!/bin/bash
### Install PHP 7.1 on OPenSUSE 42.2 64Bits
### https://build.opensuse.org/package/view_file/devel:languages:php/php7/php7.spec?expand=1
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/
### http://www.shaunfreeman.name/compiling-php-7-on-centos/
zypper in openssl-devel
zypper in gcc gcc-c++ libxml2-devel pkgconfig libbz2-devel curl-devel libwebp-devel
#!/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 / install_php71_debian.sh
Last active October 22, 2017 03:37
Install PHP 7.1 on Debian 8.6 64Bits
#!/bin/bash
### Install PHP 7.1 on Debian 8.6 64Bits
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/
### http://www.shaunfreeman.name/compiling-php-7-on-centos/
apt-get install build-essential nano autoconf
apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-turbo-dbg libmcrypt-dev
@jniltinho
jniltinho / install_php71_centos.sh
Last active May 1, 2020 03:48
Install PHP 7.1 on CentOS 7.3
#!/bin/bash
### Install PHP 7.1 on CentOS 7.3 64Bits
### http://www.shaunfreeman.name/compiling-php-7-on-centos/
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/
yum -y install git gcc gcc-c++ libxml2-devel pkgconfig openssl-devel bzip2-devel curl-devel libpng-devel libjpeg-devel
yum -y install libXpm-devel freetype-devel gmp-devel libmcrypt-devel mariadb-devel aspell-devel recode-devel libpqxx-devel
yum -y install autoconf bison re2c libicu-devel libwebp-devel wget unzip net-tools libc-client-devel libpng12-devel
yum -y install libxslt-devel