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
def monta_estrutura_email(subject, email_from, email_to, msg_html, msg_plain, lista_anexos): | |
message = MIMEMultipart("mixed") | |
message["Subject"] = subject | |
message["From"] = email_from | |
message["To"] = email_to | |
related_body = MIMEMultipart("related") | |
if len(lista_anexos) > abs(0): | |
for part in lista_anexos: | |
related_body.attach(part) |
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 python | |
# -*- coding: utf-8 -*- | |
from os import system | |
from os import walk | |
import ffmpeg # pip isntall ffmpeg ffmpeg-python | |
import os | |
def convertVideo(filenameVideo): | |
name, ext = os.path.splitext(filenameVideo) | |
out_name = name + ".mp4" |
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
#! /bin/bash | |
wget http://www.musicpd.org/download/mpd/0.22/mpd-0.22.3.tar.xz | |
tar xf mpd-0.22.3.tar.xz | |
cd mpd-0.22.3 | |
sudo apt install meson g++ \ | |
libpcre3-dev \ |
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
[Autologin] | |
# Whether sddm should automatically log back into sessions when they exit | |
Relogin=false | |
# Name of session file for autologin session (if empty try last logged in) | |
Session= | |
# Username for autologin session | |
User= |
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
#!/bin/bash | |
awk -F";" '{for(i=1;i<=NF;i++){if ($i !~ /nologin/){print $1}}}' /etc/passwd |
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
#!/bin/bash | |
awk -F";" '{for(i=1;i<=NF;i++){if ($i !~ /false/){print $1}}}' /etc/passwd |
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
sudo apt install android-tools-adb android-tools-fastboot | |
fastboot flash partition gpt.bin | |
fastboot flash bootloader bootloader.img | |
fastboot flash logo logo.bin | |
fastboot flash boot boot.img | |
fastboot flash recovery recovery.img | |
fastboot flash dsp adspso.bin | |
fastboot flash oem oem.img | |
fastboot flash system system.img_sparsechunk.0 |
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
bindsym XF86AudioRaiseVolume exec "amixer sset 'Master',0 5%+ unmute" | |
bindsym XF86AudioLowerVolume exec "amixer sset 'Master',0 5%- unmute" | |
bindsym XF86AudioMute exec "amixer sset Master,0 toggle" |
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
update movfinanceiro set dtPagto = case | |
when movfinanceiro.idfinanceiro >201 and movfinanceiro.idfinanceiro < 259 then '2019-01-10 00:00:00' | |
when movfinanceiro.idfinanceiro >258 and movfinanceiro.idfinanceiro <319 then '2019-02-10 00:00:00' | |
when movfinanceiro.idfinanceiro >319 and movfinanceiro.idfinanceiro <378 then '2019-03-10 00:00:00' | |
when movfinanceiro.idfinanceiro >377 and movfinanceiro.idfinanceiro <437 then '2019-04-10 00:00:00' | |
when movfinanceiro.idfinanceiro >436 and movfinanceiro.idfinanceiro <496 then '2019-05-10 00:00:00' | |
when movfinanceiro.idfinanceiro >495 and movfinanceiro.idfinanceiro <555 then '2019-06-10 00:00:00' | |
when movfinanceiro.idfinanceiro >554 and movfinanceiro.idfinanceiro <614 then '2019-07-10 00:00:00' | |
when movfinanceiro.idfinanceiro >613 and movfinanceiro.idfinanceiro <673 then '2019-08-10 00:00:00' | |
when movfinanceiro.idfinanceiro >772 and movfinanceiro.idfinanceiro <732 then '2019-09-10 00:00:00' |
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
[{"id":1,"cnpj":"37.939.007/0001-83","nomeFantasia":"Gato Ajato Consultoria Ltda","razaoSocial":"Marcela e Antonella Ferragens ME","email":"[email protected]","nomeContato":"Marcela","telefone":"(41) 2531-4950","endereco":{"id":1,"cep":"83221-332","nomeRua":"Acesso Diva Nunes dos Santos","municipio":"Paranaguá","estado":"PR","pais":"Brasil"},"areaFoco":"Ferragens"},{"id":2,"cnpj":"58.412.090/0001-08","nomeFantasia":"Sabrina e Roberto Financeira ME","razaoSocial":"Sabrina e Roberto Financeira ME","email":"[email protected]","nomeContato":"Sabrina","telefone":"(43) 3658-2837","endereco":{"id":2,"cep":"86073-480","nomeRua":"Rua Sidrak Silva Filho","municipio":"Londrina","estado":"PR","pais":"Brasil"},"areaFoco":"Segurança"},{"id":3,"cnpj":"29.475.037/0001-58","nomeFantasia":"Martin e Isabella Pães e Doces ME","razaoSocial":"Martin e Isabella Pães e Doces ME","email":"[email protected]","nomeContato":"Martin","telefone":"(41) 2638-431 |