Skip to content

Commit

Permalink
better managment file system in KOUDOU, new cours koudou(dev,cyber) ,…
Browse files Browse the repository at this point in the history
… CEJM

Many folders and file moved
and deleted some duplicated files

New Koudou cours
Moved cybercecurity from KOUDOU/SLAM to KOUDOU/

And new CEJM cours

lazy for describ everythings
  • Loading branch information
whoamitty committed Apr 8, 2024
1 parent aaf31f2 commit 208ca52
Show file tree
Hide file tree
Showing 514 changed files with 1,114 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
KDE-CONNECT/
__history/
py.swp

.getduplicated

Binary file modified CEJM/sm2/chap20.docx
Binary file not shown.
Binary file added CEJM/sm2/chap22.docx
Binary file not shown.
Binary file added CEJM/sm2/chap23_la_motivation_des salariés.docx
Binary file not shown.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 55 additions & 0 deletions CSERVIUS/PHP/POO/4_classrules_exemple_personnelle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php


abstract class Rule {
protected $description;

public function __construct($description) {
$this->description = $description;
}

abstract public function getDescription();
}

final class Punishment extends Rule {
// Additional properties and methods specific to punishments
public function getDescription() {
return $this->description;
}
}

class Reward extends Rule {
// Additional properties and methods specific to rewards
public function getDescription() {
return $this->description;
}
}

class CustomException extends Rule {
// Additional properties and methods specific to exceptions
public function getDescription() {
return $this->description;
}
}

class OtherRule extends Rule {
// Additional properties and methods specific to author rules
public function getDescription() {
return $this->description;
}
}

// $rule1 = new Punishment("If a short is watched completely outside the allowed periods, the next reward is cancelled.");
// $rule2 = new Punishment("If a rule is not respected, the next reward is cancelled, and the movie, episode, or video of the day is cancelled.");

$reward1 = new Reward("Reward 1 description");
$exception1 = new CustomException("If there is an opportunity to spend time with the girl I love and it is incompatible with one or more of these rules, it is up to me to decide whether to dedicate that time to her.");

$otherRules = new OtherRule("Daily: I either watch a movie, a TV episode, or a YouTube video. As an alternative form of entertainment, I have the right to read, and it is only valid for breaks or dedicated entertainment breaks.");


// echo $rule1->getDescription()."<br>";
// echo $rule2->getDescription()."<br>";
echo $reward1->getDescription()."<br>";
echo $exception1->getDescription()."<br>";
echo $otherRules->getDescription();
101 changes: 101 additions & 0 deletions CSERVIUS/PHP/POO/5_heritage1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?php

declare(strict_types=1);

class User
{
protected const STATUS_ACTIVE = 'active</br>';
protected const STATUS_INACTIVE = 'inactive</br>';

public static $nombreUtilisateursInitialises = 0;

public function __construct(public string $username, public string $status = self::STATUS_ACTIVE)
{
}

public function setStatus(string $status): void
{
if (!in_array($status, [self::STATUS_ACTIVE, self::STATUS_INACTIVE])) {
trigger_error(sprintf('Le status %s n\'est pas valide. Les status possibles sont : %s', $status, implode(', ', [self::STATUS_ACTIVE, self::STATUS_INACTIVE])), E_USER_ERROR);
};

$this->status = $status;
}

public function getStatus(): string
{
return $this->status;
}
}


class Admin extends User
{
//public const STATUS_ACTIVE = 'active';
//public const STATUS_INACTIVE = 'inactive';
public const STATUS_LOCKED = 'locked';

public static $nombreAdminInitialises = 0;

public static function nouvelleInitialisation() {
self::$nombreAdminInitialises++; // class Admin
parent::$nombreUtilisateursInitialises++;
}

// Ajout d'un tableau de roles pour affiner les droits des administrateurs :)
public function __construct(public string $username, private array $roles = [], public string $status = self::STATUS_ACTIVE)
{
}

public function setStatus(string $status): void
{
if (!in_array($status, [self::STATUS_ACTIVE, self::STATUS_INACTIVE, self::STATUS_LOCKED])) {
trigger_error(sprintf('Le status %s n\'est pas valide. Les status possibles sont : %s', $status, implode(', ', [self::STATUS_ACTIVE, self::STATUS_INACTIVE, self::STATUS_LOCKED])), E_USER_ERROR);
};

$this->status = $status;
}

public function getStatus(): string
{
//return $this->status;
return strtoupper (parent::getStatus());
}


// Méthode d'ajout d'un rôle, puis on supprime les doublons avec array_filter.
public function addRole(string $role): void
{
$this->roles[] = $role;
$this->roles = array_filter($this->roles);
}

// Méthode de renvoie des rôles, dans lequel on définit le rôle ADMIN par défaut.
public function getRoles(): array
{
$roles = $this->roles;
$roles[] = 'ADMIN';

return $roles;
}

public function setRoles(array $roles): void
{
$this->roles = $roles;
}
}


class Visiteur extends User{

}

$user = new Admin('Lelex');
echo $user->getStatus();
Admin::nouvelleInitialisation();

var_dump(Admin::$nombreAdminInitialises, Admin::$nombreUtilisateursInitialises);

var_dump(User::$nombreUtilisateursInitialises);
echo $user->setStatus(Admin::STATUS_LOCKED);
echo $user->getStatus();
Binary file modified English/sm2/24-02-27_The 2nd Practice Period.docx
Binary file not shown.
1 change: 1 addition & 0 deletions KOUDOU/.spacedrive
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"libraries":{"5b3b3dcb-e64d-4199-8d28-fbd29976fd5c":{"pub_id":"1ca15874-f241-4860-b288-6f020a3aef50","name":"KOUDOU","path":"/home/unix-tty/git-source/mygit+/BTS-SIO2-2023/KOUDOU","created_at":"2024-03-21T03:43:43.780121924Z","updated_at":"2024-03-21T03:43:43.780122104Z"}},"created_at":"2024-03-21T03:43:43.780131742Z","updated_at":"2024-03-21T03:43:43.780131873Z"}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions KOUDOU/ANNALS/ANNALS_cyber/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ANNALE "23-12-18_lama_zoo_sujet_bat_2023.pdf" lié

au cours "Les injections SQL.pdf" dans KOUDOU


annale donnée un lundi
le 18-12-23
Binary file added KOUDOU/ANNALS/ANNALS_dev/edc19ms-Restiloc.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added KOUDOU/CEJMA/sm2/TD/contrats_informatique.pdf
Binary file not shown.
Binary file added KOUDOU/CEJMA/sm2/chap2_24-03-26/Chapitre 2.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions KOUDOU/CEJMA/sm2/chap2_24-03-26/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
file "chapitre 2.pdf" yet in Enplus
CEJMA/Enplus_23-12-06/Chapitre 2.pdf
Binary file added KOUDOU/CEJMA/sm2/chap2_24-03-26/TD_SLAM2.odt
Binary file not shown.
File renamed without changes.
Binary file not shown.
3 changes: 0 additions & 3 deletions KOUDOU/SLAM/JAVA/variables_JAVA.mp4

This file was deleted.

4 changes: 4 additions & 0 deletions KOUDOU/SLAM/dev/JAVA/23-12-14_GestionDeSock_JAVA/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Question pour le prof
Est ce que c'est le TD 2 ?

ou, juste qu'est ce que c'est ?
Binary file not shown.
1 change: 1 addition & 0 deletions KOUDOU/SLAM/dev/JAVA/TD/td2_21-12-23/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# regarder video 4
Binary file added KOUDOU/SLAM/dev/JAVA/TD/td3_JAVA.odt
Binary file not shown.
Binary file not shown.
Git LFS file not shown
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# De demander au prof
Et donc, il est pour quoi ce dossier ?

Est ce que c'est pour nous proposer des idées de projets ?
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le : Dim 18 Avril 2021 à 18:54
-- Version du serveur: 5.5.16
-- Version de PHP: 5.3.8

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Base de données: `biblio_db`
--

-- --------------------------------------------------------

--
-- Structure de la table `tb_livre`
--

CREATE TABLE IF NOT EXISTS `tb_livre` (
`id_livre` int(11) NOT NULL AUTO_INCREMENT,
`titre_livre` varchar(150) NOT NULL,
`genre_livre` varchar(100) NOT NULL,
`nom_auteur` varchar(150) NOT NULL,
`pays_auteur` varchar(100) NOT NULL,
`region_auteur` varchar(150) NOT NULL,
`annee_sortie` int(11) NOT NULL,
`nombre` int(11) NOT NULL,
PRIMARY KEY (`id_livre`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;

--
-- Contenu de la table `tb_livre`
--

INSERT INTO `tb_livre` (`id_livre`, `titre_livre`, `genre_livre`, `nom_auteur`, `pays_auteur`, `region_auteur`, `annee_sortie`, `nombre`) VALUES
(1, 'ETUDIANT DE SOWETO', 'ROMAN', 'MAWNDOE NAINDOUBA', 'TCHAD', 'AFRIQUE CENTRALE', 1998, 10),
(2, 'TRAGEDIE', 'PIECE', 'AIME CESAIRE', 'FRANCE', 'EUROPE', 1976, 10),
(3, 'GERMINALE', 'ROMAN', 'EMILE ZOLA', 'FRANCE', 'EUROPE', 1887, 10),
(4, 'SANG DE KOLA', 'ROMAN', 'NOEL NETONON', 'TCHAD', 'AFRIQUE CENTRALE', 2000, 10),
(5, 'AU TCHAD SOUS LES ETOILES', 'ROMAN', 'JOSEPH BRAHIM SEID', 'TCHAD', 'AFRIQUE CENTRALE', 1968, 10),
(6, 'O COMME OUBLIE', 'ROMAN', 'SUE GRAFTON', 'USA', 'AMERIQUE DU NORD', 1993, 10),
(7, 'LE FILS DU PAUVRE', 'ROMAN', 'MOULOUD FERAOUNE', 'ALGERIE', 'AFRIQUE DU NORD', 1976, 10),
(8, 'UNE VIE DE BOY', 'ROMAN', 'FERDINAND OYONO', 'CAMEROUN', 'AFRIQUE CENTRALE', 1988, 10),
(9, 'AVENTURE AMBIGUE', 'ROMAN', 'CHEIK AHMIDOU KHAN', 'SENEGAL', 'AFRIQUE OCCIDENTALE', 1989, 10),
(10, 'CAHIER DE RETOUR', 'POESIE', 'AIME CESAIRE', 'FRANCE', 'EUROPE', 1977, 15),
(12, 'F COMME FUGITIF', 'ROMAN', 'SUE GRAFTON', 'USA', 'AMERIQUE DU NORD', 2000, 10),
(13, 'REPUBLIQUE A VENDRE', 'PIECE', 'ISAAC TEDANGBE', 'TCHAD', 'AFRIQUE CENTRALE', 2000, 8);

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Conception de la base de donn�es: biblio_db (SGBD = Mysql)
(Par TARGOTO CHRISTIAN le 17/04/2021)

create database biblio_db character set 'utf8';

use biblio_db;

create table tb_livre(
id_livre int auto_increment primary key,
titre_livre varchar(150) not null,
genre_livre varchar(100) not null,
nom_auteur varchar(150) not null,
pays_auteur varchar(100) not null,
region_auteur varchar(150) not null,
annee_sortie int not null,
nombre int not null)
engine=innodb;

Loading

0 comments on commit 208ca52

Please sign in to comment.