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 / install-imapsync
Last active November 15, 2024 16:12
Install IMAPSYNC Ubuntu
#!/bin/bash
#
## https://github.com/imapsync/imapsync/tree/master/INSTALL.d
## https://github.com/imapsync/imapsync/blob/master/INSTALL.d/Dockerfile
## https://raw.githubusercontent.com/imapsync/imapsync/master/imapsync
## https://www.managedserver.eu/how-to-migrate-emails-from-one-server-to-another-using-imapsync/
apt update
apt install -y libauthen-ntlm-perl libcgi-pm-perl libcrypt-openssl-rsa-perl libdata-uniqid-perl libparse-recdescent-perl
apt install -y libencode-imaputf7-perl libfile-copy-recursive-perl libfile-tail-perl libio-compress-perl libio-socket-ssl-perl
@jniltinho
jniltinho / install-sogo
Last active November 14, 2024 10:43
Install Sogo Webmail
#!/bin/bash
## https://www.sogo.nu/download.html
## https://github.com/iigorr/sogo-puppet/blob/master/puppet/modules/sogo/files/sogo.nginx.conf
## https://linuxhostsupport.com/blog/how-to-install-sogo-on-ubuntu-20-04/
## https://github.com/cha87de/sogo-docker/blob/master/config/nginx.conf.tmpl
## https://github.com/mailcow/mailcow-dockerized/issues/5411
wget -O- "https://keys.openpgp.org/vks/v1/by-fingerprint/74FFC6D72B925A34B5D356BDF8A27B36A6E2EAE9" | gpg --dearmor >/etc/apt/trusted.gpg.d/sogo.gpg
apt update
apt install apt-transport-https
@jniltinho
jniltinho / install-powerdns.sh
Last active November 13, 2024 14:24
Install PowerDNS Ubuntu
#!/bin/bash
#
# https://www.howtoforge.com/how-to-install-powerdns-on-ubuntu-22-04/
# https://www.cloudwizard.nl/powerdns-part-1-master-server-installation-ubuntu/
# https://github.com/PowerDNS-Admin/PowerDNS-Admin/blob/master/docker-compose.yml
# https://github.com/PowerDNS-Admin/PowerDNS-Admin
# https://sempreupdate.com.br/linux/tutoriais/como-instalar-o-powerdns-e-o-powerdns-admin-no-ubuntu/
# https://kifarunix.com/install-and-setup-powerdns-admin-on-ubuntu-22-04/
# https://www.reddit.com/r/dns/comments/yzxk12/independent_powerdns_authoritative_and_two/
# https://gist.github.com/maxivak/1daa03229493e22a7263c83dd52af76f (pdns-recursor)
@jniltinho
jniltinho / install-gitea.sh
Last active August 9, 2024 22:53
Install Gitea Ubuntu
#!/bin/bash
#
# https://docs.gitea.com/
# https://docs.gitea.com/usage/actions/act-runner
# https://dl.gitea.com/gitea/
# https://dl.gitea.com/act_runner/
# https://docs.gitea.com/administration/reverse-proxies
# https://www.rosehosting.com/blog/how-to-install-gitea-on-ubuntu-22-04/
# https://hostnextra.com/learn/tutorials/how-to-install-gitea-on-ubuntu
# https://gist.github.com/MitchRatquest/dadc9484e07a627fa73b1c7bbcf609f4
@jniltinho
jniltinho / idracclient.py
Created June 13, 2024 21:46 — forked from TheJJ/idracclient.py
Dell iDRAC linux/mac/windows client launcher
#!/usr/bin/env python3
"""
Dell iDRAC client launcher for Linux, macOS and Windows.
probably works with Dell iDRAC 6/7/8
Downloads needed Java files and sets up port forwarding via SSH.
example usage: ./idracclient.py -J jumphost.lol.domain srv42-serviceprocessor.lol.domain
for more info, see ./idracclient.py --help
@jniltinho
jniltinho / xcp-ng-link.txt
Created June 10, 2024 19:43
XCP-ng Links
@jniltinho
jniltinho / resize-ext4-linux .sh
Last active May 29, 2024 14:54
Resize an ext4 partition from the command line.
#!/bin/bash
## Links
## Ubuntu|Debian
## https://unix.stackexchange.com/questions/137482/how-to-to-resize-an-ext4-partition-from-the-command-line
## https://stackoverflow.com/questions/23519797/how-to-export-import-existing-user-with-its-privileges
## mysqldump -uroot --extended-insert=FALSE --no-create-info mysql --tables user > users-db.sql
## mysqldump mysql --tables global_priv db > users-db.sql
## mysqldump --system=users > create-users.sql
## sed -i -r '/(root|debian|SET|LOCK|400|--)/d' users-db.sql
@jniltinho
jniltinho / build-php-5.3-ubuntu.sh
Last active April 25, 2024 23:23 — forked from rfay/gist:8cd633f3d0b7722da3bea044c69085d1
Build php 5.3 on recent Ubuntu
#!/bin/bash
## Install Debian/Ubuntu
## From https://pastebin.com/wEvpW0rg
## https://github.com/RedScourge
## https://github.com/drud/ddev/issues/1714#issuecomment-532015204
## https://github.com/shivammathur/php5-ubuntu
## https://launchpad.net/~sergey-dryabzhinsky/+archive/ubuntu/php53
## https://github.com/zener05/debian-stretch-php-5-3
## https://github.com/phpbrew/phpbrew
@jniltinho
jniltinho / install-multi-php-debian.sh
Last active October 27, 2024 20:39
Install Multi PHP Debian 12
#!/bin/bash
## Install Debian/Ubuntu
## https://think.unblog.ch/en/multiple-php-fpm-versions-with-apache-on-debian-12/
## https://tecadmin.net/how-to-install-php-on-debian-11/
## https://shape.host/resources/how-to-install-multiple-versions-of-php-on-debian-with-ispconfig
apt install -y lsb-release apt-transport-https ca-certificates wget gnupg
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
@jniltinho
jniltinho / install-mysql-5.sh
Last active June 18, 2024 21:26
Install Mysql 5
#!/bin/bash
## Install Mysql 5.5.62 Debian 12
## https://downloads.mysql.com/archives/community/
## https://downloads.mysql.com/archives/get/p/23/file/mysql-5.5.62-linux-glibc2.12-x86_64.tar.gz
## https://www.hukot.net/community/en/tutorials/how-to-install-mysql-server-5-5-62-on-debian-ubuntu
## This tutorial also works on other versions of MySQL server in branch 5.5.x.
## Uninstall any existing version of MySQL; It's not mandatory
## rm /var/lib/mysql/ -R