Nuxt.js snippet for bootstrap, bootstrap-vue, popper and jquery configuration
Especial thanks to kaloraat for his article: https://kaloraat.com/articles/how-to-use-jquery-in-nuxtjs
Nuxt.js snippet for bootstrap, bootstrap-vue, popper and jquery configuration
Especial thanks to kaloraat for his article: https://kaloraat.com/articles/how-to-use-jquery-in-nuxtjs
Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.
Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.
Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.
The book is build around 34 chapters organised in chapters.
#!/bin/sh | |
cmd=${1} | |
docker_proxy_file="/etc/systemd/system/docker.service.d/http-proxy.conf" | |
# Installations instructions: | |
# sudo curl https://gist.githubusercontent.com/pascencio/c0b391832a733a9b0fedd1343cadeaab/raw/c38e2f43956668f82c0345aaaa927dfcea3c759e/docker-proxy-env.sh -o /usr/bin/docker-proxy-env && sudo chmod +x /usr/bin/docker-proxy-env | |
reload_docker(){ | |
systemctl daemon-reload | |
systemctl restart docker |
{ | |
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy", | |
"host": "<ip-del-nodo>", | |
"port": <puerto-del-nodo>, | |
"register": true, | |
"hub": "http://<ip-del-hub>:<puerto-del-hub>" | |
} |
To send a request via the sandbox, you can use pm.sendRequest.
pm.test("Status code is 200", function () {
pm.sendRequest('https://postman-echo.com/get', function (err, res) {
pm.expect(err).to.not.be.ok;
pm.expect(res).to.have.property('code', 200);
pm.expect(res).to.have.property('status', 'OK');
});
});
# Para usar esta shell realice los siguientes pasos: | |
# 1.- wget https://gist.githubusercontent.com/pascencio/06ccb1d74ca555b371d04cad810bd484/raw/41cc6f84434576f6b45b88daa30dbddc11a65254/add_proxy.sh | |
# 2.- chmod +x add_proxy.sh | |
# 3.- ./add_proxy.sh | |
read -p "Ingrese el host del proxy: " host | |
reap -p "Ingrese el puerto del proxy: " port | |
echo export HTTP_PROXY=http://${host}:${port} >> ~/.bashrc | |
export HTTPS_PROXY=http://${host}:${port} >> ~/.bashrc |
ID=$(id -u) | |
PROXYON="${http_proxy}" | |
if [ ${ID} != 0 ] ; | |
then | |
echo "Debes ejecutar este comando como root" | |
else | |
if [ "${PROXYON}X" != "X" ] ; | |
then | |
sed -i "s/\(.*\)\(PROXY\|proxy\)\(=\)/#\1\2\3/" /etc/environment |
import os | |
import yaml | |
import logging.config | |
import logging | |
import coloredlogs | |
def setup_logging(default_path='logging.yaml', default_level=logging.INFO, env_key='LOG_CFG'): | |
""" | |
| **@author:** Prathyush SP | |
| Logging Setup |
{ | |
"regiones": [ | |
{ | |
"region": "Arica y Parinacota", | |
"comunas": ["Arica", "Camarones", "Putre", "General Lagos"] | |
}, | |
{ | |
"region": "Tarapacá", | |
"comunas": ["Iquique", "Alto Hospicio", "Pozo Almonte", "Camiña", "Colchane", "Huara", "Pica"] | |
}, |