Rename Tips

## Dois pontos / Colon / :

O Windows não permite usar : no nome dos arquivos.

Para contornar este problema, pode-se usar o caractere UTF-8 ፡ chamado de "ETHIOPIC WORDSPACE (U+1361)" e de código e18da1.

Source: https://www.fileformat.info/info/charset/UTF-8/list.htm?start=4402

Difference between script types

## Standard Function
Executa [Comandos Internos](https://docs.dopus.com/doku.php?id=reference:command_reference:internal_commands) do Directory Opus

Executa comandos como se estivesse rodando através da janela de Executar do Windows (WIN + R)
`notepad.exe {f}`

Porém, para rodar comandos de MS-DOS, como por exemplo o clip (copiar algo para o clipboard) é necessário colocar cmd /c na frente, pois o clip não é um arquivo .exe, mas sim um comando interno de MS-DOS:

`@nodeselect`

`cmd /

show more

$(document).ready(function() {
  $(".content-new").hide();
  $(".show_hide_new").on("click", function() {
    var txt = $(this).prev(".content-new").is(':visible') ? 'Read More' : 'Read Less';
    $(this).text(txt);
    $(this).prev('.content-new').slideToggle(100);
  });
});

<div class="box">

  <li>GST Registration</li>
  <li>Final Proprietorship Registration in 10 Working Days</li>

  <div class="content-new">
    <!-- This is hide by default and open on toggle -->
    <li>Current Bank Accou

AW Blog [Top 4 Social Media Money Scams & How to Spot Them]

Believe it or not social media scams have been picking more pockets than any other scam today––including phone call and text fraud.
<p>Believe it or not social media scams have been picking more pockets than any other scam today—including phone call and text fraud.<sup><a href="#sources">1</a></sup></p>
<p>There have been more than $2.7 <em>billion</em> in losses to social media scams between January 2021 and June 2023.<sup><a href="#sources">2</a></sup></p>
<p>And whether or not you’ve seen these cons in action, they don’t look the same today as they did even a year ago.<sup><a href="#sources">2</a></sup></p>
<p>They’re bec

AW Blog [5 Signs You’re Headed for a “Cushy” Retirement]

How much do you need to retire wealthy? Believe it or not, there’s no set number for anyone.
<p>How much do you need to retire wealthy?</p>
<p>Believe it or not, there’s no set number for anyone.</p>
<p>Lifestyle and the quality of your retirement plan are certainly two big factors.</p>
<p>But when considering the economy and inflation, a definitive picture of our financial future can feel somewhat elusive.</p>
<p>So, to shed a little light (and provide a little guidance), here are a few telltale signs you might be set up for a “comfortable” post-work lifestyle.</p>
<h4 class="mt2">Will

Find Max K

/**
 * @param {number[]} nums
 * @return {number}
 */
var findMaxK = function(nums) {
    // Create a set from the array to eliminate duplicates and allow efficient lookups
    let numSet = new Set(nums);

    // Initialize maxK to -1. This will be returned if no k is found
    let maxK = -1;

    // Iterate over the set
    for (let num of numSet) {
        // We are only interested in positive numbers because k is a positive integer
        if (num > 0) {
            // Check if the negative c

To get log cat of an APP from ABD

### In Linux/MAC
adb logcat | grep com.drcvideo.dancebugs

### In Windows
adb logcat | findstr com.drcvideo.dancebugs

Deploy CI-CD Django api rest

stages:
  - build
  - replace
  - deploy

variables:
  SERVER: root@<server>
  FOLDER: /PANEL/WEBSITES/<folder>
  POSTGRES_DB: <database>
  POSTGRES_USER: <user>
  POSTGRES_PASSWORD: <password>
  POSTGRES_HOST: <host>

migrate-django:
  stage: build
  image: python:3.7
  only:
    - main
  script:
    - pip3 install -r requirements.txt
    - python manage.py migrate

build-docker-image:
  stage: build
  image: docker:latest
  only:
    - main
  services:
    - docker:dind
  script:
    - docker 

App Portal IIS PowerShell Module

function ConvertFrom-IISLog {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
        [string]$Path
        ,
        [switch]$ShowFields
    )
    $Contents = Get-Content -Path $Path
    $FieldHeaders = ($Contents | Select-String -Pattern '^#Fields:') -split '\s+' | Select-Object -Skip 1
    if ($ShowFields) {
        $FieldHeaders
        return
    }
    Import-Csv -Delimite

ConvertFrom-IISLog

function ConvertFrom-IISLog {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]
        [string]$Path
        ,
        [switch]$ShowFields
    )
    $Contents = Get-Content -Path $Path
    $FieldHeaders = ($Contents | Select-String -Pattern '^#Fields:') -split '\s+' | Select-Object -Skip 1
    if ($ShowFields) {
        $FieldHeaders
        return
    }
    Import-Csv -Delimite

textarea Autoheight

export default function textareaAutoheight(selector) {
  const textareaAll = document.querySelectorAll(selector)

  textareaAll.forEach((textarea) => {
    textarea.addEventListener("input", autoResize)
  })

  function autoResize() {
    this.style.height = this.scrollHeight + "px"
  }
}

.htaccess redirect www to non www

<IfModule mod_rewrite.c>
  RewriteEngine On
  # without Cloudfare
  # RewriteCond %{SERVER_PORT} 80
  # RewriteRule ^(.*)$ https://xuxu.fr/$1 [R,L]
  
  # with Cloudfare
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
</IfModule>

Linting in Databricks


{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "application/vnd.databricks.v1+cell": {
     "cellMetadata": {
      "byteLimit": 2048000,
      "rowLimit": 10000
     },
     "inputWidgets": {},
     "nuid": "dfabd244-e03e-4bf4-b06d-3cd72352c829",
     "showTitle": false,
     "title": ""
    }
   },
   "source": [
    "### Linting in Databricks\n",
    "\n",
    "- This notebook should make it more convenient to use Pylint when developing in the web UI of Databricks.\n",
  

TOC - 目次アンカー用ID付与

// =====================================================
// コンテンツエリア 目次 h2,h3 アンカー用ID付与
// =====================================================
document.addEventListener("DOMContentLoaded", () => {
	const singleBody = document.querySelector(".js-single-body");
	if (singleBody) {
		const targetHeading = singleBody.querySelectorAll("h2, h3");
		for (let i = 0; i < targetHeading.length; i++) {
			targetHeading[i].setAttribute("id", "heading-" + i);
		}
	}
});

cancel request

```

const controller = new AbortController();
const requests: InternalAxiosRequestConfig<any>[] = [];

const CancelToken = axios.CancelToken;
const source = CancelToken.source();

const axiosInterceptor = () => {
    axios.interceptors.request.use(function (config) {

            //console.log('Pending HTTP Request:', config.url, config.status);
        const needToCancelRequest = config.url.includes('stats')
        if (needToCancelRequest) {
            return {
                ...config,
   

-PySide2- 合わせ技2

# 標準ライブラリ #################################################################
from functools import partial
from pprint import pprint
from typing import Tuple, List

# サードパーティライブラリ #########################################################
# from maya import OpenMayaUI, cmds
from PySide2.QtWidgets import (QApplication, QComboBox, QGridLayout,
                               QMainWindow, QWidget, QHBoxLayout, QVBoxLayout,
                               QPushButton, QAction, QFrame, QLabel,