Skip to content

Instantly share code, notes, and snippets.

View foucdeg's full-sized avatar
💭
Toulouse 🇫🇷

Foucauld Degeorges foucdeg

💭
Toulouse 🇫🇷
View GitHub Profile
@foucdeg
foucdeg / Confetti.tsx
Created August 28, 2023 09:00
React + Typescript Confetti
import React, {useRef} from "react"
import {createPortal} from "react-dom"
import {useFela} from "react-fela"
import {initConfetti, Confetto, loop, resizeCanvas} from "./lib"
export default function Confetti() {
const particlesRef = useRef<Confetto[]>([])
[tool.poetry]
name = "poc_poetry_issue"
version = "0.0.1"
description = "Online drawing game"
authors = ["Foucauld Degeorges <foucauld.degeorges@gmail.com>"]
[tool.poetry.dependencies]
python = "3.10.1"
djangorestframework_simplejwt = "==5.0.0"
django-eventstream = "==4.3.1"
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="15">
<profile kind="CodeFormatterProfile" name="CRUI" version="15">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert" />
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines" />
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert" />

Demo

How to install

  1. Get fzf
  2. Install all-the-package-names globally: npm i -g all-the-package-names
  3. Add the following alias to your .bashrc: alias npmi = 'all-the-package-names | fzf | xargs npm install'

How to use

Just use npmi instead of npm i <package-name>. All options work (--save, -g etc).

Problème

235 membres de Theodo sur Github n'ont pas l'authentification à deux facteurs activée

Impacts

Applications down, piratées ou fonctionnalités non voulues. Client mécontent, pas de rachat. Risques légaux.[1]

Standard

Un non-Theodoer cherche à se connecter à Github sur le compte d'un Theodoer -> il n'y arrive pas

Hypothèses de causes

How to setup 2FA on Github in 2 minutes

  1. On your computer, go to your Github security settings. You might be asked your GitHub password.
  2. Click "Set up two-factor authentication" then "Set up using SMS".
  3. Fill in your phone number, wait for the text message on your phone, and fill it in on the computer.
  4. Download and store your recovery codes safely (ex. password manager, KeePass, locked note, printed page ...)
  5. Click Enable to activate 2FA.

You're done! 🔒 👍 😌