back to top

//back to top
  jQuery('body').append('<div class="back-top"><i class="fa-light fa-arrow-up"></i></div>');
  jQuery(window).scroll(function () {
      var scroll = jQuery(window).scrollTop();

      if (scroll >= 500) {
          jQuery(".back-top").addClass("show-back-top");
      } else {
          jQuery(".back-top").removeClass("show-back-top");
      }
  });

  jQuery(".back-top").click(function () {
      //1 second of animation time
      //html works for FFX but not Chrome
      //body w

Other Tools

## Dir Buster
* tool used to list directory files associated with a route
* example: `/admin/1` will review all the admin urls, files, folder structure ...

---
## Beef
* [BeefProject](beefproject.com)
* If a site accepts your xss js code, you can use this tool to implant js code
to the site
* When a user visits the page with the code on it, a communication channel is set up 
between the users browser and the beef server

Brute Force Attack Technique

## Brute Force Technique
#### Python Harvestor
* used to obtain emails/usernames from a domain
* `python theHarvester.py -d onemonth.com -b all`
* `-d` domain
* `-b` search engine

---
### Getting Records
* Can obtain a list of names from a website to be used for brute force of email
* Download from a site [here](https://www.ssa.gov/oact/babynames/limits.html)
* Extract the names using the command:
  * `cat filename.txt |grep ",M" |head -n 2000 |cut -d , -f 1 |sort |uniq |awk '{print tolower($0)

Query data with RecordHandler and get child records from returned results

from sapiopycommons.recordmodel.record_handler import RecordHandler
from sapiopylib.rest.pojo.webhook.WebhookContext import SapioWebhookContext
from sapiopylib.rest.pojo.webhook.WebhookResult import SapioWebhookResult
from sapiopylib.rest.utils.recordmodel.RecordModelManager import RecordModelManager, RecordModelRelationshipManager

from sapio.manager.manager_retrievals import Manager
from sapio.model.data_type_models import C_BB_PatientModel, \
    C_BB_AccessionModel
from webhook_handler impor

2491. Divide Players Into Teams of Equal Skill

You are given a positive integer array skill of even length n where skill[i] denotes the skill of the ith player. Divide the players into n / 2 teams of size 2 such that the total skill of each team is equal. The chemistry of a team is equal to the product of the skills of the players on that team. Return the sum of the chemistry of all the teams, or return -1 if there is no way to divide the players into teams such that the total skill of each team is equal.
/**
 * @param {number[]} skill
 * @return {number}
 */
var dividePlayers = function(skill) {
    // Sort the skill array to make it easier to pair players
    skill.sort((a, b) => a - b);

    // Initialize variables
    let n = skill.length;
    let totalTeams = n / 2;
    let sumChemistry = 0;

    // Calculate the target total skill for each team
    let targetSkill = skill[0] + skill[n - 1];

    // Iterate through the array to form teams
    for (let i = 0; i < totalTeams; i++) {
        //

💡 VEILLE TECHNO - CERTIF

Here's an overview of the steps and tools for a workflow that balances automation and human feedback for content curation and technological monitoring in AI. 

I'll break down the process and tools at a high level, and after each section, I’ll check your understanding with a question before diving deeper.

### **Step 1: Content Discovery and Aggregation**
**Goal:** Gather articles, blogs, and feeds from reliable sources on AI.

**Tools:**
- **RSS Feeds:** Tools like **Feedly** can help a

open chrome with web security disabled


# mac
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_sess_1" --disable-web-security

# windows
start chrome --user-data-dir="C:\Temp\chrome_dev_sess_1" --disable-web-security --disable-cache

// for running in production environment
start chrome --user-data-dir="C:\Temp\chrome_dev_sess_1" --disable-web-security https://onetest.pinelabs.com/?mockProd=true

getMobileOperatingSystem

Saved from https://stackoverflow.com/questions/21741841/detecting-ios-android-operating-system
/**
 * Determine the mobile operating system.
 * This function returns one of 'iOS', 'Android', 'Windows Phone', or 'unknown'.
 *
 * @returns {String}
 */
function getMobileOperatingSystem() {
    var userAgent = navigator.userAgent || navigator.vendor || window.opera;

    // Windows Phone must come first because its UA also contains "Android"
    if (/windows phone/i.test(userAgent)) {
        return "Windows Phone";
    }

    if (/android/i.test(userAgent)) {
        return "Android";
    }

FLIPCARD

<section class="flip-cards-container">
  <h3>TITOLO SECTION</h3>
  <div class="flip-cards">
    <div class="flip-card">
      <div class="flip-card-inner">
        <div class="flip-card-front">
          <img src="img/img_1_fr.jpg" alt="Front 1" />
        </div>
        <div class="flip-card-back">
          <p>Back 1</p>
        </div>
      </div>
    </div>
    <div class="flip-card">
      <div class="flip-card-inner">
        <div class="flip-card-front">
          <img src="img/img_2_fr.j

SWIPER

<!--Swiper-->
<h3 id="Titolo_swip">TITOLO SWIPER</h3>
<div class="swiper-container">
  <div class="swiper-wrapper">
    <!-- Slide 1: foto1 -->
    <div class="swiper-slide">
      <div class="foto-box">
        <img src="path_to_foto1.jpg" alt="foto1" />
      </div>
    </div>
    <!-- Slide 2: foto2 -->
    <div class="swiper-slide">
      <div class="foto-box">
        <img src="path_to_foto2.jpg" alt="foto2" />
      </div>
    </div>
    <!-- Slide 3: foto3 -->
    <div class="swiper-slide

Linux system tips

## Switch between GUI and CML environment
Now in the CentOS and Alma Linux, the GUI and CML environments are called graphical and multi-user targets, respectively.
To start them, use the command like below:  
`# systemctl isolate graphical.target`  
or  
`# systemctl start graphical.target`

Replace with `multi-user.target` when reverse.  

`# systemctl set-default graphical.target` will set GUI to default.  
`# systemctl get-default` will get default environment.

swipe on web PWA

const [touchStart, setTouchStart] = useState(null);
const [touchEnd, setTouchEnd] = useState(null);

const minSwipeDistance = 50; // Minimum distance for swipe to be detected

// Function to handle the start of the touch
const handleTouchStart = (e) => {
  const touch = e.touches[0];
  setTouchStart(touch.clientX); // Store the initial X coordinate
};

// Function to handle the movement of the touch
const handleTouchMove = (e) => {
  const touch = e.touches[0];
  setTouchEnd(touch.clientX); // S

🎖️ Certification RNCP

# Cinq Epreuves

### Mise en situation 1 (E1) "Gestion de données"
Le projet évalué a pour but:
- d'optimiser,
- d'automatiser,
- de pérenniser
- de mettre à disposition...

les flux de données et les données utiles et nécessaires à la réalisation du 
service numérique, par les équipes techniques, par exemple en:
- analyse statistique,
- business intelligence,
- machine learning,
- IA

### Cas Pratique 1 (E2): "Veille Service IA"
Le cas pratique évalué a pour but l'installation et la configurati

3Dに関してのメモ

# 用語の関連

```text
Scene(シーン)
├── Camera(カメラ)
├── Light(ライト)
├── Mesh(メッシュ)
│   ├── Geometry(ジオメトリ)
│   │   ├── Vector3(ベクター3)
│   │   ├── Normal(ノーマル)
│   │   └── LineSegments(ラインセグメンツ)
│   ├── Material(マテリアル)
│   │   └── Shader(シェーダー)
│   │       ├── Vertex Shader(頂点シェーダー)
│   │       ├── Fragment Shader(フラグメントシェーダー)
│   │       └── Uniforms(ユニフォームズ)
│   │           └── Uniform Float(ユニフォームフロート)
│   └── Transform(変換)
│       ├── Scale(スケール)
│       ├── Position(ポジション)
│      

JSON-LDでパンくずを作り、検索結果ページに表示させる

<head>
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "トップページ",
        "item": "トップページの絶対URL"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "下層ページ",
        "item": "下層ページの絶対URL"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "パンくずの最終地点のページ",
        "item"

GAM Drive Commands

#Find storage of a specific folder
gam user neishnetworks print diskusage 0AOS6a5i66ujiUk9PVA todrive

#List all files in a folder including Folder owner, file ID, name, Owners Name, and Owners Email
gam user tom print filelist query "'1y0nz0rAzT8w8yp9SbKcs-JJVPPrwE92p' in parents" fields id,name,owners.emailAddress,owners.displayName,mimeType,createdTime,modifiedTime showownedby any todrive

#List all files in a MyDrive
gam user tom print filelist fields id,name,owners.emailAddress,owners.displ