Skip to content

Instantly share code, notes, and snippets.

View arxcruz's full-sized avatar
💭
The shit is not working 😄

Arx Cruz arxcruz

💭
The shit is not working 😄
View GitHub Profile
/*create table grupo (
grupo_nome varchar(15) not null,
grupo_id int not null,
primary key (grupo_id)
);
create table produto (
nome varchar(20) not null,
produto_id int not null,
from podman import ApiConnection, system, images
from base64 import b64encode
import json
import re
import requests
podman_uri = "unix://localhost/run/user/1000/podman/podman.sock"
# zuul_api = "https://review.rdoproject.org/zuul/api/builds?job_name={}"
zuul_api = "https://zuul.openstack.org/api/builds?job_name="
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
@arxcruz
arxcruz / scrap.py
Created May 4, 2020 08:52
Scrapping
from bs4 import BeautifulSoup
import requests
html_content = requests.get('https://www.who.int/news-room/q-a-detail/q-a-coronaviruses')
soup = BeautifulSoup(html_content.text, 'html.parser')
q_and_a = soup.find_all('div', class_='sf-accordion__panel')
for item in q_and_a:
import pytest
import mock
import tempest_file_downloader
@pytest.mark.parametrize(
"job_name",
['periodic-tripleo-ci-centos-7-ovb-1ctlr_2comp-featureset021-master'])
@pytest.mark.parametrize("log_file", ['stestr_results.html'])
@mock.patch('tempest_file_downloader.get_last_build')
@arxcruz
arxcruz / pietro.py
Last active November 8, 2019 18:24
sorted_array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
new_array = [0] * len(sorted_array)
index_impar = 0
index_par = len(sorted_array)-1
for i in range(len(sorted_array)):
if not i % 2:
new_array[index_impar] = sorted_array[i]
index_impar += 1
import logging
import re
import requests
import yaml
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
@arxcruz
arxcruz / zuul-runner-playbook.yaml
Last active May 17, 2019 13:41
zuul-runner-playbook.yaml
---
- hosts: localhost
vars:
zuul_runner: false
fetch_ref: "refs/changes/55/657955/4"
tag_ref: "55-657955-4"
pod_name: "zuul-runner-services2"
zuul_src_dir: '{{ lookup("env", "HOME") }}/.cache2/zuul/'
upstream_gerrit_user: 'arxcruz'
tasks:
@arxcruz
arxcruz / tripleo_jobs.md
Last active July 5, 2018 12:52
Tripleo jobs and featuresets
Job name Featureset
tripleo-ci-centos-7-containers-multinode featureset010
tripleo-ci-centos-7-3nodes-multinode featureset032
tripleo-ci-centos-7-scenario001-multinode-oooq-container featureset016
tripleo-ci-centos-7-scenario002-multinode-oooq-container featureset017
tripleo-ci-centos-7-scenario003-multinode-oooq-container featureset018
tripleo-ci-centos-7-scenario004-multinode-oooq-container featureset019
tripleo-ci-centos-7-scenario007-multinode-oooq-container featureset030
tripleo-ci-centos-7-scenario008-multinode-oooq-container featureset031
- test: 'tempest.api.identity.admin.v3.test_roles.RolesV3TestJSON.test_implied_roles_create_check_show_delete'
reason: 'Difference in Implied Roles check API return code'
lp: 'https://bugs.launchpad.net/keystone/+bug/1660603'
overcloud: true
undercloud: false
- test: 'neutron_tempest_plugin.scenario'
reason: 'Neutron Tempest plugin scenario tests are not yet stable.'
lp: 'https://launchpad.net/bugs/1737940'
overcloud: true
undercloud: true