Skip to content

Instantly share code, notes, and snippets.

View ojpojao's full-sized avatar
😏
só o creme papai

ojpojao ojpojao

😏
só o creme papai
View GitHub Profile
@ojpojao
ojpojao / index.html
Created November 19, 2021 17:29
Modelo de OS
<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>
@ojpojao
ojpojao / main.py
Last active October 5, 2021 20:15
Problema grupo de Python
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)
@ojpojao
ojpojao / main.py
Created September 8, 2021 03:06
Algum problema em um grupo Python...
## 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
@ojpojao
ojpojao / sh
Created October 14, 2020 19:02
Gen SHA512 password shadow with Python3 and Linux
python -c "import crypt, getpass; print(crypt.crypt(getpass.getpass(), crypt.mksalt(crypt.METHOD_SHA512)))"
@ojpojao
ojpojao / ks.cfg
Last active May 21, 2020 18:19
fedora test ks.cfg
#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