Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nilton Oliveira jniltinho

🏠
Working from home
View GitHub Profile
@jniltinho
jniltinho / install-nginx-pagespeed.sh
Last active Jun 29, 2022
Install Pagespeed Nginx
View install-nginx-pagespeed.sh
#!/bin/bash
## Install PageSpeed Ubuntu 20.04
## Run as root (sudo su)
## https://www.howtoforge.com/how-to-install-nginx-with-google-pagespeed-on-ubuntu-20-04/
## https://www.linuxbabe.com/nginx/compile-the-latest-nginx-with-ngx_pagespeed-module-on-ubuntu
## https://www.techrepublic.com/article/how-to-install-the-latest-version-of-nginx-on-ubuntu-server-18-04/
## https://www.tecmint.com/install-ngx_pagespeed-to-optimize-nginx-performance-on-ubuntu/
## nginx -v
@jniltinho
jniltinho / install-gcli.sh
Last active Apr 25, 2022
Install Google Cloud Cli
View install-gcli.sh
#!/bin/bash
## Install Google Cloud Cli
## https://tecadmin.net/how-to-install-google-cloud-sdk-on-ubuntu-20-04/
## https://cloud.google.com/sdk/docs/install#deb
## gcloud init --console-only
## gcloud auth login --no-launch-browser
## gcloud auth activate-service-account --key-file key-file.json
## echo $GCLOUD_SERVICE_KEY | gcloud auth activate-service-account --key-file=-
KUBECTL_VERSION=1.23.5
@jniltinho
jniltinho / install-github-runner.sh
Last active Mar 29, 2022
Install GitHub Actions Runner
View install-github-runner.sh
#!/bin/bash
## Install GitHub Actions Runner
## https://docs.github.com/en/actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service
## Install as root
## Install Docker
apt-get update
apt-get upgrade
apt-get install -y apt-transport-https ca-certificates curl software-properties-common docker.io socat
systemctl start docker
View install-rabbitmq-centos-7.md

Install RabbitMQ on CentOS 7

sudo yum -y install epel-release
sudo yum -y update

Install Erlang

Download repository

@jniltinho
jniltinho / install-caddy-linux.sh
Last active Nov 3, 2020
Install Caddy Web Server on Linux
View install-caddy-linux.sh
#!/bin/bash
## Install Caddy 2 Web Server Linux
## https://temelkuran.ist/caddy-server-2-php-fpm-installation-on-ubuntu-server-19-10/
## https://caddy.community/t/fastcgi-using-unix-socket-with-caddy-2/6376
## https://caddy.community/t/v2-subfolder-proxy-to-upstream-root/7095/7
## https://caddyserver.com/
# https://github.com/caddyserver/caddy
wget https://github.com/caddyserver/caddy/releases/download/v2.0.0/caddy_2.0.0_linux_amd64.tar.gz
tar -xvf caddy_2.0.0_linux_amd64.tar.gz
@jniltinho
jniltinho / install-dotnet-core-linux.sh
Last active Feb 16, 2021
Install .Net 5 SDK on Linux
View install-dotnet-core-linux.sh
#!/bin/bash
## Install .NET 5.0 SDK on Linux 64Bits
## Author: Nilton OS www.linuxpro.com.br
## https://gist.github.com/richlander/467813274cea8abc624553ee72b28213
## https://dotnet.microsoft.com/download/dotnet/5.0
## https://github.com/dotnet/core/issues/2186
## dotnet publish -c Release -o v1.0.0 -r linux-x64 -p:PublishSingleFile=true
## Dependencies
## .NET Core has the following dependencies, on Ubuntu (other distros will vary):
View install-mt7612u-ubuntu.sh
#!/bin/bash
## Install USB WiFi adapter AC-1200 on Ubuntu 18.04
## Bus 002 Device 006: ID 0e8d:7612 MediaTek Inc.
## https://askubuntu.com/questions/1119004/usb-wifi-adapter-problem
## https://bbs.archlinux.org/viewtopic.php?id=250273
## http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=4&t=2830&view=next
## https://github.com/kaduke/Netgear-A6210
sudo apt install git dkms build-essential
git clone https://github.com/jeremyb31/mt7612u.git
@jniltinho
jniltinho / install_rtmp_ubuntu.sh
Last active Oct 21, 2020
Install RTMP Nginx on Ubuntu 18.04
View install_rtmp_ubuntu.sh
#!/bin/bash
### Author: Nilton OS <jniltinho dot gmail.com>
### Version 0.1
## https://opensource.com/article/19/1/basic-live-video-streaming-server
## https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50
## https://gist.github.com/tabvn/cb58cf621ddc346c19e44542ed5e800c
## https://docs.peer5.com/guides/setting-up-hls-live-streaming-server-using-nginx/
## https://illegalpornography.com/computers/2018/09/14/hls-streaming-with-nginx-that-works.html
## https://dev.to/samuyi/how-to-setup-nginx-for-hls-video-streaming-on-centos-7-3jb8
@jniltinho
jniltinho / install-gitlab-runner.sh
Last active Jul 18, 2021
Install GitLab Runner on Ubuntu 16.04
View install-gitlab-runner.sh
#!/bin/bash
## Install GitLab Runner on Ubuntu 16.04
## https://docs.gitlab.com/runner/install/linux-manually.html
## Config do Runner /etc/gitlab-runner/config.toml
## Para registrar e usar uma CA auto assinada
## gitlab-runner register --tls-ca-file="/home/gitlab-runner/data/certs/ca.crt"
## Install Docker
apt-get update
apt-get upgrade
@jniltinho
jniltinho / install-kubernetes-ubuntu.sh
Last active Dec 30, 2021
Install kubernetes on Ubuntu 18.04
View install-kubernetes-ubuntu.sh
#!/bin/bash
## Install Install kubernetes on Ubuntu 18.04 64Bits
## Author: Nilton Oliveira
## https://www.linuxtechi.com/install-configure-kubernetes-ubuntu-18-04-ubuntu-18-10/
## https://www.learnitguide.net/2018/08/install-and-configure-kubernetes-cluster.html
## https://www.ostechnix.com/how-to-configure-ip-address-in-ubuntu-18-04-lts/
## https://kubernetes.io/docs/setup/independent/install-kubeadm/
## https://www.howtoforge.com/tutorial/how-to-install-kubernetes-on-ubuntu/
## https://github.com/kubernetes/dashboard
## https://kubernetes.github.io/ingress-nginx/deploy/