[ Launch: directedgraph ] b26946ea52b6cb4c06ebcd975ed50309 by jonatasrenan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A comparison between python's dict libraries to read and write naturally as a JSON parsing. | |
Based on: https://gist.github.com/NelsonMinar/28c5928adbe1f4502af8 | |
Installation: | |
pip install pypi-search addict easydict attrdict dotted-dict dotmap munch python-box | |
""" | |
from typing import Any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.3-fpm | |
RUN apt-get update \ | |
\ | |
&& apt-get install -y apt-utils | |
\ | |
&& apt-get install -y libcurl3-dev \ | |
&& docker-php-ext-install curl \ | |
\ | |
&& apt-get install -y \ | |
libpng-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Autor: Jônatas Renan ([email protected]) | |
# 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)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pure-pw useradd site -f /etc/pure-ftpd/passwd/pureftpd.passwd -m -u 33 -g 33 -d /home/ftpusers/site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>" [email protected]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm -it -v $(pwd):/data blang/latex make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rev=$(host $1 | rev | cut -d' ' -f1 | cut -d'.' -f2- | rev) | |
echo $1 $rev |