Skip to content

Instantly share code, notes, and snippets.

View EZFRICA's full-sized avatar
🏠
Travailler à domicile

Ezekias EZFRICA

🏠
Travailler à domicile
View GitHub Profile
@EZFRICA
EZFRICA / .gitlab-ci.yml
Last active March 11, 2022 12:09
This GitLab CI configuration is valid for setting up CI/CD (Development and Production environment) pipeline with Cloud Build and GitLab CI. Don't forget to put the environment variables in the CI / CD settings of Gitlab.
# File: .gitlab-ci.yml
stages:
- build
- test
- deploy-dev
- deploy-prod
default:
image: docker:latest
services:
@EZFRICA
EZFRICA / pwa&seo.html
Last active February 12, 2020 02:06
PWA & SEO
<!DOCTYPE html>
<html lang="fr-FR">
<head>
<meta charset="UTF-8">
<link rel="manifest" href="manifest.json"/>
<meta name="theme-color" content="#f6f6f6"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0 ">
<meta name="msapplication-TileColor" content="#6a8be0">
<meta name="msapplication-TileImage" content="img.png">
@EZFRICA
EZFRICA / index.php
Last active January 15, 2020 23:48
PHP MySQL
<?php
$servername = "localhost";
$username = "root";
$password = "Admin password";
try {
$conn = new PDO("mysql:host=$servername;dbname=essai", $username, $password);
// set the PDO error mode to exception
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
echo "Connected successfully";