8/04/2023

Filtrer les messages de sensibilisation à la cybersécurité et aux phishing de avantdecliquer.com

Si tu travailles pour de grands groupes, tu as peut-être déjà entendu parler de https://avantdecliquer.com/

Cette plateforme aide les entreprises à sensibiliser leurs salariés aux dangers du phishing en leur envoyant des faux e-mails de phishing. 

Alors, comment gérer ce flux d'emails sans se noyer, surtout si, comme moi, tu reçois déjà entre 150 et 200 e-mails chaque jour ?

Pas de panique ! Si tu sais déjà repérer ces faux-emails et souhaite organiser ta boîte de réception plus efficacement, suis le guide ci-dessous. 

J'ai préparé une démo pour te montrer comment créer un filtre sur Outlook afin d'archiver automatiquement les messages provenant de avantdecliquer.com.

2/09/2023

How to add a label to previously created annotation in MakeSense.ai when you forgot to select a default one

Yes. Like the title said.


function selectOption(f){
  const a = document.querySelector('.DropdownOption');
    if(a===null){
        return setTimeout(selectOption.bind(null, f), 1);
    }

    a.click();

    setTimeout(f, 1);    
}

function selectLabel(label, f){
    label.click();
    selectOption(f);
}

function selectLabels(labels, f){
  function _do(){
    if(labels.length === 0){
        return f();
    }

    const l = labels.shift();
    selectLabel(l, _do);
  }

  _do();   
}

function selectAll(f){
  selectLabels(Array.from(document.querySelectorAll('.DropdownLabel')), f);
}

function loop(){
  if(document.querySelector('[draggable="false"][alt="next"]') !== null){
    console.log('Done!');
    return;
  }
  
  selectAll(() => {
      document.querySelector('[alt="next"]').click();
      setTimeout(loop, 100);
  })
}

loop();
12/26/2022

IntelliJ IDEA - Import PostgreSQL connection string with Data Source from URL feature

IntelliJ IDEA does not support out of the box "Data Source from URL" import with standard PostgreSQL connection string like

postgresql://username:password@host:port/database

It sucks. Here is how to fix it:

  • File > New > Driver
  • Find "PostgreSQL" existing driver
  • Click "+" in the URL templates section to add a new url template
  • Type: "postgresql://{user}:{password}@{host}:{port}/{database}"
  • Click "OK"

Now next time you want to import a PostgreSQL connection string:

  • Open "Database" tab (or use the "find tool" window with your usual shortcut)
  • Click "+" > "Data Source from URL"
  • Past your PostgreSQL connection string, the selected driver will automatically change to "PostgreSQL"
  • Click "OK"
  • From there you may say: WAT. I don't see my username, password, port and host. That's right and it's IntelliJ IDEA default behavior... But, if you click on "URL only" next to "connection type" and switch back to "default" there you will find every connection field pre-completed
  • In "URL:" section, prefix "postgresql://" with "jbdc:"
  • In "URL:" section, remove the ":@" the "username:password" part.
  • Your good to go. Yes, it's slow and could be even faster but that's current IntelliJ limitation....
»
 
 
Made with on a hot august night from an airplane the 19th of March 2017.