This file contains hidden or 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
#version=DEVEL | |
ignoredisk --only-use=sda | |
iscsiname iqn.1994-05.com.redhat:46a93490da59 | |
autopart | |
# Partition clearing information | |
clearpart --none --initlabel | |
# Use graphical install | |
graphical | |
# Use CDROM installation media | |
cdrom |
This file contains hidden or 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
python -c "import crypt, getpass; print(crypt.crypt(getpass.getpass(), crypt.mksalt(crypt.METHOD_SHA512)))" |
This file contains hidden or 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: João Paulo dos Santos <[email protected]> | |
## Data: 2021/09/08 | |
import pandas as pd | |
csvfile = "dados.csv" | |
base = pd.read_csv(filepath_or_buffer=csvfile) | |
last_value = df['id'][0] # primeiro valor da coluna 'id' | |
count = -1 # acumula no máximo n vezes a quantidade que um valor estará em sequência. caso um próximo valor seja diferente, retorna a contagem para zero |
This file contains hidden or 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
for indice, linha in Agenda.iterrows(): | |
nome = linha['Nome'] | |
numero = linha['Numero'] | |
arquivo = linha['Arquivo'] | |
texto = urllib.parse.quote(f'Olá {nome}! {mensagem}') | |
link = f'https://web.whatsapp.com/send?phone=55{numero}&text={texto}' | |
navegador.get(link) | |
This file contains hidden or 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
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
<meta charset="utf-8"> | |
<div class="container" style="margin-left: 25px; margin-right: 25px;"> | |
<div class="col-xs-12"> | |
<div class="row page-header"> | |
<div class="col-xs-4"><b class="text-left" style="font-size: 15px;">REQUISIÇÃO DE MATERIAL</b></div> | |
<div class="col-xs-6"><b class="text-center" style="font-size: 15px;">ORDEM DE SERVIÇO [[[tipo]]]</b></div> | |
<div class="col-xs-2"><span class="text-right" style="font-size: 15px;">Nº [[numero]]</span></div> |
This file contains hidden or 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
#! /usr/bin/env bash | |
## author: João Paulo <[email protected], [email protected]> | |
set -xe | |
sudo apt update && sudo apt install -y dirmngr \ | |
gnupg \ | |
apt-transport-https \ | |
ca-certificates \ | |
software-properties-common |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Tentativa de automatizar(porcamente) a instalação do Netbox kkkkkkk | |
# João Paulo dos Santos <[email protected]> | |
# Algum dia de outubro de 2022 | |
# chmod +x install_netbox.sh | |
# execute com "sudo ./install_netbox.sh" | |
set -xe |
This file contains hidden or 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
#! /usr/bin/env bash | |
# chmod +x init_setup.sh | |
# sudo ./init_setup.sh | |
dnf upgrade -y | |
dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm -y && \ | |
dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y && \ | |
dnf install vlc -y | |
rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg && \ |
This file contains hidden or 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
#cloud-config | |
# vim: syntax=yaml | |
# allow change hostname when false | |
preserve_hostname: false | |
# change hostname | |
hostname: {name}% | |
# setup /etc/hosts | |
manage_etc_hosts: true | |
disable_root: true | |
apt_preserve_sources_list: true |
This file contains hidden or 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
/* | |
Start upgrading x routers per day, double that number until max router upgrades reached. | |
Eg: With starting upgrade number of 200 routers, total of 5000 and max per day of 1000: | |
Day 1 upgrade 200 routers, | |
Day 2 uprade 400 routers, | |
Day 3 upgrade 800 routers, | |
Day 4 upgrade 1000 routers | |
Day 5 upgrade 1000 routers | |
Day 6 upgrade 1000 routers |
OlderNewer