Listar Extensiones Instaladas en Visual Studio Code

# Listar Extensiones Instaladas en Visual Studio Code

```
code --list-extensions
```

ドットフィルター 動画上に乗せる

// イメージに合わせて変更して。
.movie {
  background-color: rgba(#000000, 0.20);
  background-image: radial-gradient(#000000 30%, transparent 31%), radial-gradient(#000000 30%, transparent 31%);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
}

tiago

inicio{
"host":"1A097CF94CC2A297A5B0BBDA78FB",
"porta":"9A9382E77CEB"
}fim

Copy Files From Pod To Local

kube -n [namespace] [pod]:path/to/file.shiz ~/local/storage.shiz

kube -n titan cp logstash-0:validation_files/Marvin.csv ~/Documents/marvin.csv    

Display current year without JS

function year_shortcode() {
	$year = date('Y');
	return $year;
}
add_shortcode('year', 'year_shortcode');

open external link inside a pop up window

<a class="popup-link" href="//www.calcxml.com/do/ret04?teaser&amp;c=5F829E" target="_blank" rel="noopener">Social security retirement income estimator</a>

//Calc Pop-Up
jQuery(document).ready(function(){
  jQuery('.popup-link').click(function(e){
    e.preventDefault();
    var url = jQuery(this).attr('href');
    jQuery('.popup-content').html('<span class="close-button">&times;</span><iframe src="' + url + '"></iframe>');
    jQuery('.popup-overlay').fadeIn();
  });

  jQuery('.popup-overlay')

NEAR VM Component

'use client';
import { useEffect } from 'react';
import { useInitNear, Widget, EthersProviderContext } from 'near-social-vm';

import { useWallet } from '../../contracts/src/wallets/wallet-selector';
import { useEthersProviderContext } from '../../contracts/src/wallets/web3-wallet';
import { NetworkId } from '../../config';

export default function Component({ src }) {
  const ethersContext = useEthersProviderContext();
  const { selector } = useWallet();
  const { initNear } = useInitNear();

 

NEAR Navigation

import Image from 'next/image';
import Link from 'next/link';
import { useEffect, useState } from 'react';

import NearLogo from 'public/near-logo.svg';
import { useWallet } from '../../contracts/src/wallets/wallet-selector';

export const Navigation = () => {

  const { signedAccountId, logOut, logIn } = useWallet();
  const [action, setAction] = useState(() => { });
  const [label, setLabel] = useState('Loading...');

  useEffect(() => {
    if (signedAccountId) {
      setAction(() => logOut)

NEAR Cards

import styles from '../contracts/app.module.css';

export const DocsCard = () => {
  return (
    <a
      href="https://docs.near.org/develop/integrate/quickstart-frontend"
      className={styles.card}
      target='_blank'
      rel="noopener noreferrer"
    >
      <h2>
        Near Docs <span>-&gt;</span>
      </h2>
      <p>Learn how this application works, and what you can build on Near.</p>
    </a>);
};

export const HelloNearCard = () => {
  return (
    <a
      href="/hello-near"
  

Complete Dockerized Wordpress setup


https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose
Notes:
working directory for this Wordpress dev environment: /var/www/html
.env feeds values to docker-compose.yml
.gitignore files are there to exclude .env 


================== Dockerfile ==================
FROM php:8.1.0-fpm

# Arguments defined in docker-compose.yml
ARG user=admin
ARG uid=1000

# Install system dependencies
RUN apt-get update && apt-get install -y \
    git \
    curl \
    libpng

Get-KNOWNFOLDERID

function Get-KNOWNFOLDERID {
    <#
    .SYNOPSIS
        Lists KNOWNFOLDERID data.
	.DESCRIPTION
		Reads the registry and outputs a PSCustomObject and contains the KNOWNFOLDERID data.
	.PARAMETER KNOWNFOLDERID

        Limits the output to the provided KNOWNFOLDERID.
    .OUTPUTS
        PSCustomObject
	.EXAMPLE
        Get-KNOWNFOLDERID

        Outputs all KNOWNFOLDERID data.
	.EXAMPLE
        Get-KNOWNFOLDERID -KNOWNFOLDERID '{F38BF404-1D43-42F2-9305-67DE0B28FC23}'

       

Woocommerce Hide product categories and taxonomy terms in menu if empty

add_filter( 'wp_get_nav_menu_items', 'nav_remove_empty_category_menu_item', 10, 3 );
function nav_remove_empty_category_menu_item ( $items, $menu, $args ) {
    global $wpdb;
    $nopost = $wpdb->get_col( "SELECT term_taxonomy_id FROM $wpdb->term_taxonomy WHERE count = 0" );
    foreach ( $items as $key => $item ) {
        if ( ( 'taxonomy' == $item->type ) && ( in_array( $item->object_id, $nopost ) ) ) {
            unset( $items[$key] );
        }
    }
    return $items;
}

Delete immich albums

Delete the albums before recreating
(async function () {
    //** PARAMETERS */
    /***********************************************************/
    let immichHost = "http://192.168.178.35:2283"; // Change this to your Immich instance URL
    /***********************************************************/

    // Function to fetch all albums
    async function fetchAlbums() {
        const response = await fetch(`${immichHost}/api/album`, {
            method: "GET",
            credentials: "include", // Assuming you're already au

omg mys lead

SELECT distinct
  i.Subscriberkey as ContactId
, i.Verzonden
, i.[Unieke Opens]
, i.[Unieke Kliks]
, i.Conversiepunten
, i.Bounced
, i.Unsubscribed
, i.ProspectApp
, i.Campagne
, CASE 
    WHEN i.campagne = 'Winback' AND c.id is not null THEN c.id
    WHEN i.campagne = 'Winback' AND l.id is not null THEN l.id
    WHEN omg.subscriberkey is not null THEN omg.subscriberkey
    WHEN mys.subscriberkey is not null THEN mys.subscriberkey
    WHEN em.Subscriberkey is not null THEN em.subs

useFetch.jsx

//used for API calls
import { useState, useEffect } from "react"

const useFetch = (url,optionsStr) => {

    const [data,setData] = useState(null);
    const [error,setError] = useState(null);
    const [responseStatus, setStatus] = useState(0);
    
    useEffect(() => {

        const fetchData = async () => {

            try {
                const options = JSON.parse(optionsStr);
                const response = await fetch(url, options);
                const content = await response.jso

Add login/out link to WP menu

add_filter( 'wp_nav_menu_items', 'themeprefix_login_logout_link', 10, 2 );

	
function themeprefix_login_logout_link( $items, $args  ) {
    
    if( is_user_logged_in()  ) {
            $loginoutlink = wp_loginout( 'index.php', false );
            $items .= '<li class="menu-item login-but">'. $loginoutlink .'</li>';
            return $items;
    }
    else {
            $loginoutlink = wp_loginout( 'members', false );
            $items .= '<li class="menu-item login-but">'. $logi