Gerador de paulistas mediante cobertura de cidades
python3 --version
pip --version
pip install fordev
<?php | |
$tenantId = 'common'; | |
$authenticationUrl = "https://login.microsoft.com/{$tenantId}/oauth2/v2.0/authorize"; | |
$clientId = "{seu-client-id}"; | |
$clientSecret = '{seu-client-secret}'; | |
$redirectUri = '{seu-redirect-uri}'; | |
$scope = "openid profile offline_access User.Read"; // Escopo de permissões necessárias | |
$authenticationUrl .= "?client_id=$clientId&redirect_uri=$redirectUri&response_type=code&scope=$scope"; | |
if (isset($_GET['code'])) { |
<?php | |
/** | |
* @param string $phone_number | |
* @return string | |
*/ | |
function formatBrazilianPhone($phone_number) | |
{ | |
$phone_number = preg_replace( '/[^0-9]/', '', $phone_number ); | |
$phone_object = [ |
<?php | |
$curlHandle = curl_init(); | |
$curl_setopt_array = [ | |
CURLOPT_URL => 'https://google.com.br', | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => "", | |
CURLOPT_MAXREDIRS => 10, | |
CURLOPT_TIMEOUT => 0, |
#!/usr/bin/env python3 | |
import os | |
import sys | |
import getopt | |
print(""" | |
╔═╗╔═╗╔╦╗ ╦═╗╔═╗╔╦╗╔═╗╔╦╗╔═╗ ╦ ╔═╗╔═╗╔═╗ | |
║ ╦║╣ ║ ╠╦╝║╣ ║║║║ ║ ║ ║╣ ║ ║ ║║ ╦╚═╗ | |
╚═╝╚═╝ ╩ ╩╚═╚═╝╩ ╩╚═╝ ╩ ╚═╝ ╩═╝╚═╝╚═╝╚═╝ | |
""") |
DELETE FROM wp_users WHERE ID = 0; | |
DELETE FROM wp_usermeta WHERE user_id = 0; | |
DELETE FROM wp_comments WHERE user_id = 0; |
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y sudo\ | |
wget\ | |
file\ | |
libapr1-dev\ | |
libaprutil1-dev\ | |
g++\ | |
make\ | |
libc6-dev\ |
def set_line(word_length): | |
line = '+' | |
line += word_length * '---+' | |
line += '\n' | |
return line | |
def set_letters(word): | |
count = 1 | |
letters = '' |
SELECT u.ID, u.user_login, u.user_nicename, u.user_email | |
FROM wp_users u | |
INNER JOIN wp_usermeta m ON m.user_id = u.ID | |
WHERE m.meta_key = 'billing_rg'!=''; |
# pip install fordev | |
from fordev.generators import people | |
searching_valid_cep = True | |
print('Aguarde, estou gerando dados de um cliente fantasma na cidade de São Paulo...') | |
while(searching_valid_cep) : | |
new_people = people(uf_code='SP') | |
if (new_people.get('cidade') == 'São Paulo') : |