AWS IAM : Tips / MFA Enablable role V2

    "Version": "2012-10-17",
    "Statement": [
            "Sid": "AllowListActions",
            "Effect": "Allow",
            "Action": [
            "Resource": "*"
            "Sid": "AllowIndividualUserToListOnlyTheirOwnMFA",
            "Effect": "Allow",
            "Action": [


<video autoplay muted loop playsinline class="video-bg">
    <source src="<?= get_template_directory_uri(); ?>/video/fv.mp4" type="video/mp4">



#define BUFFER_SIZE 1024

int connect_send_recv(void){
    struct socket *sock;
    struct sockaddr_in s_addr;
    unsigned short port_num = 8888;
    int ret = 0;
    char *send_buf = NULL;
    char *recv_buf = NULL;
    struct kvec send_vec, recv_vec;
    struct msghdr send_msg, recv_msg;

    /* kmalloc a send buffer*/
    send_buf = km

meta_query – Posts by Meta Values - meta key
$args = array (
	'post_type' => 'post',
	'meta_query' => array(
		'meta_value' => array(
			'key' => 'post-coluna-destacado',
			'value' => true,
			'compare' => '!='

Training Resources: Jericho CSS

/* ============================
--- Jericho Template  ---
--- CSS Skeleton for Force ---
============================ */
/* --- FONT OVERRIDE--- */
/* @import url('');

body, p, h1,h2,h3,h4, .field--type-text-with-summary, .company_profile__field--type-string-long, .field--type-text-with-summary, [data-block-internal-id="footerblock"] .company_profile__field--type-string-long, .button, label, ul, a {
  font-family: 'Your Font', sans-serif!important;
} */


Наполнение данными поля из инита и установка агента

function sortSync() {
    if (CModule::IncludeModule('iblock')) {
        $arSelect = Array("ID", "NAME", "DATE_ACTIVE_FROM", "catalog_PRICE_1", "PROPERTY_CUSTOM_SORT_PRICE");
        $arFilter = Array("IBLOCK_ID"=>26, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y");
        $res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>1000000000), $arSelect);
        while($ob = $res->GetNextElement())
        $arFields = $ob->GetFields();


CSS-JS Skeleton for Force

/* ============================
--- CSS Skeleton for Force ---
============================ */
/* --- FONT OVERRIDE--- */
/* @import url('');

body, p, h1,h2,h3,h4, .field--type-text-with-summary, .company_profile__field--type-string-long, .field--type-text-with-summary, [data-block-internal-id="footerblock"] .company_profile__field--type-string-long, .button, label, ul, a {
  font-family: 'Your Font', sans-serif!important;
} */

------------- General -------

Use a temporary email for subscribing

Prev [ITS to implement new security measure](
*Use a temporary email for subscribing*

You can't test this; but there’s no reason to trust the server behind the site which sends out bills and invoices.
We live in a world where fake websites populate newsfeeds and social networks every minute of every day—which is why a disposable email address helps protect against all three of these things above (and also provides insurance).
Not just the one in your inbox; it may be everyone's address on the internet.

[Use a temporary email for s

Ajax Load More
//nas configurações do repeater chamar um shortcode:

echo do_shortcode('[post-item-infinite]');


//filtrar por exemplo por tipo de taxonomia:
//$term_obj_list = get_the_terms( $post->ID, 'coluna' );
//ou tipo de post:
//if ( get_post_type() == 'case') {

function post_item_infinite($atts) {	
  $a = shortcode_atts( array(
    'parallax' => '',
	), $atts );

	$term_obj_list = get_the_terms( $post->ID, 'coluna' );


GCP - Upload Dataset

# Path to the file to upload to GCP
# It should be absolute, or match the directory where the make command is ran.

# Bucket directory in which to store the uploaded file.
# Here, data is an arbitrary name.

# Name for the uploaded file inside of the bucket.
# We chose not to rename the file that we upload.
BUCKET_FILE_NAME=$(shell basename ${LOCAL PATH})

    @gsutil cp ${LOCAL_PATH} gs:

GCP - Create Bucket



    @gcloud config set project ${PROJECT_ID}
    @gsutil mb -l ${REGION} -p ${PROJECT_ID} gs://${BUCKET_NAME}
# make set_project
# make create_bucket

GCP - Sumbitting training job to AI platform

gcloud ai-platform jobs submit training ${JOB_NAME} \
  --job-dir gs://${BUCKET_NAME}/${BUCKET_TRAINING_FOLDER}  \
  --package-path ${PACKAGE_NAME} \
  --module-name ${PACKAGE_NAME}.${FILENAME} \
  --python-version=${PYTHON_VERSION} \
  --runtime-version=${RUNTIME_VERSION} \
  --region ${REGION} \
  # JOB_NAME: an arbitrary name allowing us to identify a training occurence.
              It will be visible in the GCP console once it has ran.
  # BUCKET_NAME: the buc



use Bitrix\Main\Web\HttpClient;

define("NO_KEEP_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS", true);
define('CHK_EVENT', true);


$http = new HttpClient(['socketTimeout'=>10]);
$arRequest = [
    'user_webhook_token'=>'4gxbsxz0vnxc9tbk',//сгенерированый токен веб хука,

Audio api

        var audios = [];
        audios[0] = new Audio("/sounds/audio_2019-12-20_11-12-44.mp3");    
        audios[1] = new Audio("/sounds/audio_2019-12-20_11-13-32.mp3");    
        audios[2] = new Audio("/sounds/audio_2019-12-20_11-13-43.mp3");    
        audios[3] = new Audio("/sounds/makak-oda.mp3");    
        var sound;
        var playAudio = function(index)
            for (i = 0; i < audios.length; i++)
                sound =

Bindable class

import Foundation

class Bindable<T> { //generic
  typealias Listener = (T) -> Void

  var value: T {
    didSet {
  private var listener: Listener?

  init(_ value: T) {
    self.value = value

   - Important:
     Best pratice is to only set any UI attribute in a single binding. Failing to follow
     that suggestion can result in hard to track bugs where the order that values are set results in
     different UI outcomes.

   - Parameters: