Skip to content

Instantly share code, notes, and snippets.

View bhubr's full-sized avatar

Benoît Hubert bhubr

View GitHub Profile
@bhubr
bhubr / sonarqube.service
Created March 1, 2023 06:25 — forked from W1R3D-Code/sonarqube.service
Running SonarQube as a Service on Linux with SystemD - /etc/systemd/system/sonarqube.service
[Unit]
Description=SonarQube service
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start
ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop
@bhubr
bhubr / checkpoint1.md
Created October 16, 2020 07:07 — forked from bastienapp/checkpoint1.md
Checkpoint 1 JS

Checkpoint 1 JS

🌍 Introduction

Cette quête dure 4 heures et vous devez donc envoyer votre code sur Github avant 13h00 au plus tard. Rappel : Ceci n'est pas un examen mais une évaluation de vos compétences. Ne vous inquiétez pas si vous n'avez pas terminé dans les 4 heures. Vous êtes autorisé à poursuivre ce checkpoint le week-end suivant le jour du checkpoint. Assurez-vous d'avoir correctement évalué vos compétences. Il est essentiel que vous compreniez et que vous soyez capable d'appliquer les concepts que vous avez appris. Si vous pensez que vous êtes un peu plus lent et que vous n'accomplissez pas ces tâches sur le moment, assurez-vous que cela s'améliore avec le temps et la pratique.

Votre formateur validera votre travail une fois vous aurez terminé la quête . Si vous ne remplissez pas les critères de validation, vous pouvez soumettre une nouvelle solution après que votre instructeur a publié sa première correction.

🎖 Objectifs

CREATE TABLE `movie` (
`id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`poster` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`comment` varchar(1500) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `movie` ADD PRIMARY KEY (`id`);
ALTER TABLE `movie` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
@bhubr
bhubr / random-todo.js
Created May 7, 2019 13:42 — forked from akagomez/random-todo.js
Random todo generator
(function () {
var actions = 'call,read,dress,buy,ring,hop,skip,jump,look,rob,find,fly,go,ask,raise,search';
var bridges = 'the,a,an,my,as,by,to,in,on,with';
var targets = 'dog,doctor,store,dance,jig,friend,enemy,business,bull,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday,Mom,Dad';
var capitalizeFirstLetter = function(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
var randomWord = function (list) {
list = list.split(',');
@bhubr
bhubr / gist:4e64af99412c102f95b2f53053292aa5
Last active February 10, 2017 09:07 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Maintenance du site</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }