Skip to content

Instantly share code, notes, and snippets.

View Noobzik's full-sized avatar
💭
I may be slow to respond.

Rakib Noobzik

💭
I may be slow to respond.
  • Asano / CY Cergy Paris Université
  • Paris
View GitHub Profile

Création d'une machine virtuel MLFLow

sudo apt update && sudo apt install python3-pip -y
sudo pip3 install mlflow google-cloud-storage --break-system-packages
sudo nano /etc/systemd/system/mlflow.service
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/data/hdfs/tmp</value>
2023-07-19 10:30:41 Start init
2023-07-19 10:30:41 Done init
2023-07-19 10:30:41 Waiting for PostgreSQL to startup.
2023-07-19 10:30:42 PostgreSQL started.
2023-07-19 10:30:42 touch: CONTAINER_ALREADY_STARTED_PLACEHOLDER: Permission denied
2023-07-19 10:30:42 2023-07-19T08:30:42.810ZINFOStarting schema setup{"config": {"SchemaFilePath":"","InitialVersion":"0.0","Overwrite":false,"DisableVersioning":false}, "logging-call-at": "setuptask.go:58"}
2023-07-19 10:30:42 2023-07-19T08:30:42.810ZDEBUGSetting up version tables{"logging-call-at": "setuptask.go:68"}
2023-07-19 10:30:42 2023-07-19T08:30:42.821ZDEBUGCurrent database schema version 1.9 is greater than initial schema version 0.0. Skip version upgrade{"logging-call-at": "setuptask.go:117"}
2023-07-19 10:30:42 2023-07-19T08:30:42.821ZINFOSchema setup complete{"logging-call-at": "setuptask.go:132"}
2023-07-19 10:30:42 2023-07-19T08:30:42.875ZINFOStarting schema setup{"config": {"SchemaFilePath":"","InitialVersion":"0.0","Overwrite":false,"DisableVersioning":fal
if ! [ $(id -u) = 0 ]; then
echo "I am not root!"
exit 1
fi
echo "Checking for lamp"
if ! [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
echo "Already installed"
@Noobzik
Noobzik / TP1_Elastic Search.md
Last active March 19, 2021 17:08
TP1_Elastic Search.md

Ce TP est a faire sous Linux

0. Setup the environment

  1. Installation de ElasticSearch et Kibana
  • Allez sur le lien : https://www.elastic.co/start
  • Extraire les deux fichiers
  • Aller dans le dossier ElasticSearch/config
  • ouvrir le fichier jvm.options
module Term =
struct
type t = Const of int | Div of t * t | Add of t * t
let answer = Div(Div(Const 1972, Const 2), Const 23)
let error = Div(Const 1, Const 0)
end
module Eval =
struct
@Noobzik
Noobzik / d.c
Last active January 26, 2020 09:24
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* Compléxité n * m en moyenne (pire cas n*n)
* @param char *s = La chaine de caractère de départ
* @param char e = le caractère à enlever
* return ret une chaine de caractère sans la lettre dans e
*/

Memo Logiciel Libre

Telechargement de tout les scripts

  • Sur Terminal (Linux)
wget -O dl.sh http://bit.ly/NZLLibre-

Setup d'un gestion de parc client pour GLPI

Linux

apt install fusioninventory-agent
apt install fusioninventory-agent-task-collect

Ouvrir le fichier /etc/fusioninventory/agent.cfg et pointer l'adresse ip de GLPI