This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
| <?php | |
| function validar_cnpj($cnpj) | |
| { | |
| $cnpj = preg_replace('/[^0-9]/', '', (string) $cnpj); | |
| // Valida tamanho | |
| if (strlen($cnpj) != 14) | |
| return false; |
| <?php | |
| // Documentação completa em http://codex.wordpress.org/Class_Reference/WP_Query | |
| $args = array( | |
| 'cat' => 1, //ID da sua categoria | |
| 'posts_per_page ' => 4, // Número de posts a exibir | |
| ); | |
| $novo_loop = new WP_Query( $args ); | |
| if ( $novo_loop->have_posts() ) : while ( $novo_loop->have_posts() ) : $novo_loop->the_post(); |
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
| .price_slider{ | |
| margin-bottom: 1em; | |
| } | |
| .price_slider_amount { | |
| text-align: right; | |
| line-height: 2.4em; | |
| font-size: 0.8751em; | |
| } |
| # Installation --- | |
| # 1. In Bitbucket, add FTP_USERNAME, FTP_PASSWORD and FTP_HOST as environment variables. | |
| # 2. Commit this file (bitbucket-pipelines.yml) to your repo (in the repo root dir) | |
| # 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will | |
| # push everything and initialize GitFTP) | |
| # | |
| # Usage --- | |
| # - On each commit to master branch, it'll push all files to the $FTP_HOST | |
| # - You also have the option to 'init' (see 'Installation' above) - pushes everything and initialises | |
| # - Finally you can also 'deploy-all' (from Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:deploy-all) |
| #!/bin/bash | |
| sudo apt update | |
| cd ~/Downloads | |
| wget https://guardiao.itau.com.br/warsaw/warsaw_setup_64.deb | |
| dpkg-deb -x ~/Downloads/warsaw_setup_64.deb /tmp/warsaw | |
| dpkg-deb --control warsaw_setup_64.deb /tmp/warsaw/DEBIAN/ | |
| sudo sed -i -e 's/python-gpgme,//g' /tmp/warsaw/DEBIAN/control | |
| sudo sed -i -e 's/libcurl3/libcurl4/g' /tmp/warsaw/DEBIAN/control | |
| sudo apt -y install python-pip |
| #!/usr/bin/env python3 | |
| import threading | |
| import queue | |
| import argparse | |
| import os.path | |
| import sys | |
| NUM_WORKER_THREADS = 16 | |
| LUKS_HEADER = b'LUKS\xba\xbe' |
| import { Queue } from "@aws-cdk/aws-sqs"; | |
| import { App, Duration, Stack, StackProps } from "@aws-cdk/core"; | |
| import { Runtime, Code, Function } from "@aws-cdk/aws-lambda"; | |
| import { SqsEventSource } from "@aws-cdk/aws-lambda-event-sources"; | |
| class DeadLetterQueue extends Stack { | |
| constructor(parent: App, name: string, props?: StackProps) { | |
| super(parent, name, props); |
This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.
To enable systemd under WSL we require a tool called systemd-genie
Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh: