Skip to content

Instantly share code, notes, and snippets.

jonatasrenan

Block or report user

Report or block jonatasrenan

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
View wp.sh
#!/bin/bash -e
clear
echo "============================================"
echo "Script de Instalação Wordpress - Major labs"
echo "============================================"
echo "É necessário criar uma nova base de dados MySQL? (s/n)"
read -e setupmysql
if [ "$setupmysql" == s ] ; then
echo "MySQL Admin User: "
read -e mysqluser
View _.md
@jonatasrenan
jonatasrenan / Manual REST 2Way Brasil
Last active Apr 18, 2017
Manual REST 2Way Brasil
View Manual REST 2Way Brasil
Manual REST 2Way Brasil
===================
Este é o **Manual REST 2Way Brasil**.
Produzido por :
> Jônatas Alves
<jonatasrenan@gmail.com>
(31) 9947-68229.
Última atualização 18/Abril/2017.
View gist:8c1b4936d2115a56bedaab1a9dd21238
rev=$(host $1 | rev | cut -d' ' -f1 | cut -d'.' -f2- | rev)
echo $1 $rev
View rpmfusion.sh
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
@jonatasrenan
jonatasrenan / run.sh
Created Jan 12, 2018
Send mailx from docker
View run.sh
docker run -i --rm corentinaltepe/heirloom-mailx sh -c 'echo "Backup executado com sucesso" | mailx -s "Backup `date +%Y-%m-%d`" -S smtp=smtp://smtp.grude.ufmg.br -S smtp-auth=login -S smtp-auth-user=login -S smtp-auth-password=pass -S from="Sender <sender@ufmg.br>" recipient@ufmg.br'
@jonatasrenan
jonatasrenan / gist:982982def2d5e962d15807f0dcce16d0
Created Apr 2, 2018
add user pure-ftpd with specific uid and gid
View gist:982982def2d5e962d15807f0dcce16d0
pure-pw useradd site -f /etc/pure-ftpd/passwd/pureftpd.passwd -m -u 33 -g 33 -d /home/ftpusers/site
@jonatasrenan
jonatasrenan / instalar_vnc.ps1
Created Apr 23, 2018
Unattended installation of Ultra VNC on Windows Powershell 2+ / Chocolatey
View instalar_vnc.ps1
# Autor: Jônatas Renan (jonatasrenan@ufmg.br)
# Versão: 27/nov/2017
# Licença: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
$url = "https://suporte.ti.vet.ufmg.br/instalacao/vnc/instalar_vnc.ps1"
$ip_preffix = "150.164"
"Elevando Permissoes."
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
if (-not $currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) {
You can’t perform that action at this time.