Help Ukraine by attacking Russian web sites. Good load testing training.
Tools:
Help Ukraine by attacking Russian web sites. Good load testing training.
Tools:
<?php | |
namespace App\Logging; | |
use DateTimeZone; | |
use Monolog\Logger; | |
use App\Logging\TelegramBotHandler; | |
use Monolog\Formatter\LineFormatter; | |
class FooLogger |
As of the lastest versions, just execute the following command .\cmder.exe /REGISTER ALL
per Documentation.
To add an entry in the Windows Explorer context menu to open Cmder
in a specific directory, paste this into a OpenCmderHere.reg
file
and double-click to install it.
#!/usr/bin/env python | |
import os | |
import md5 | |
import zlib | |
import json | |
import socket | |
import urllib2 | |
import subprocess | |
List of files to edit to change/rename your react-native android project. The following constants are used in the files to denote what kind of value should be placed.
APPLICATION_NAME
- this will be used by react-native to identify your application. (settings.gradle, MainActivity.java, etc.)APPLICATION_DISPLAY_NAME
- display name in Android Home Screen.ANDROID_PACKAGE_NAME
- A valid android package name.For Android: | |
Manually change it in android/app/src/main/java/com/PROJECT_NAME/MainActivity.java: | |
package MY.APP.ID; | |
In android/app/src/main/java/com/PROJECT_NAME/MainApplication.java: | |
package MY.APP.ID; | |
In android/app/src/main/AndroidManifest.xml: | |
package="MY.APP.ID" |
<?php | |
function validaCPF($cpf) { | |
// Extrai somente os números | |
$cpf = preg_replace( '/[^0-9]/is', '', $cpf ); | |
// Verifica se foi informado todos os digitos corretamente | |
if (strlen($cpf) != 11) { | |
return false; |
// Regex para validação de string no formato CNPJ | |
export const regexCNPJ = /^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/ | |
// Método de validação | |
// Referência: https://pt.wikipedia.org/wiki/Cadastro_Nacional_da_Pessoa_Jur%C3%ADdica | |
export function validCNPJ(value: string | number | number[] = '') { | |
if (!value) return false | |
// Aceita receber o valor como string, número ou array com todos os dígitos | |
const isString = typeof value === 'string' |