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 | |
# | |
# Author: Thiago Cavalcante | |
# github.com/theagoliveira | |
for url in $(cat "./urls.txt") | |
do | |
src=$(curl -fsL "$url") | |
pages=$(echo "$src" | pup 'span[style="margin:0 30px 0 2px;"] text{}' | sed 's/Mostrando página 1 de //g') | |
institution_name="./${url/https\:\/\/www.pciconcursos.com.br\/provas\//}" |
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 | |
""" | |
Get the number of available products on MercadoLivre, using the URL | |
""" | |
import re | |
import sys | |
import urllib.request as req |
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 | |
""" | |
Get the price of the first result from a MercadoLivre website search. | |
""" | |
import argparse | |
import re | |
import urllib.request as req |
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 | |
""" | |
Get the price of a product from Cissa Magazine website. | |
""" | |
import argparse | |
import re | |
import urllib.request as req |
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
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -AutoSize > $pwd\installed_programs_$(Get-Date -Format "yyyy-MM-dd").txt |
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 | |
# | |
# Author: Thiago Cavalcante | |
# github.com/theagoliveira | |
find . -maxdepth 5 -mindepth 1 -name "*.rar" -type f -execdir unrar x -ad {} \; -exec bash -c 'f="{}"; f=${f::-4}; 7z a -tzip "$f.zip" "$f"; rm -rf "$f"' \; -exec rm -f {} \; |
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 | |
# | |
# Author: Thiago Cavalcante | |
# github.com/theagoliveira | |
# | |
# Pedro's patreon: https://www.patreon.com/saint11 | |
imgur_url="https://i.imgur.com" | |
tumblr_url="https://66.media.tumblr.com" |
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 | |
""" | |
TODO | |
""" | |
import argparse | |
import os | |
__author__ = 'Thiago Cavalcante' |