A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
Alias /dwwm2304 "C:/Users/mdevoldere/Documents/GitHub/DWWM_2304-PHP/" | |
<Directory "C:/Users/mdevoldere/Documents/GitHub/DWWM_2304-PHP/"> | |
AllowOverride all | |
Options +Indexes +FollowSymLinks | |
Require all granted | |
</Directory> |
{ | |
"name": "mdevoldere/Repo", | |
"description": "A simple Repo for educationnal purposes", | |
"type": "library", | |
"version": "1.0.0", | |
"minimum-stability": "dev", | |
"license": "GPL-3.0-or-later", | |
"authors": [ | |
{ | |
"name": "MDevoldere", |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Listen for Xdebug", | |
"type": "php", | |
"request": "launch", | |
"port": 9003 | |
}, | |
{ |
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
#!/bin/sh | |
#This is a simple bash script that will poll github for changes to your repo, | |
#if found pull them down, and then rebuild and restart a Jekyll site running | |
#in Nginx. Note, we cannot use cron to schedule a job every 5 seconds, so we create | |
#a script that executes an infinite loop that sleeps every 5 seconds | |
#We run the script with nohup so it executes as a background process: $nohup ./update-jekyll | |
while true | |
do |
<?php | |
/* | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !favicon.ico$ | |
RewriteRule ^([a-z,A-Z,0-9,-]+)([/]*)$ /index.php?url=$1 [QSA,L] | |
*/ | |
class Route | |
{ |
<?php | |
/** | |
* La classe Db permet d'interagir avec une connexion PDO | |
* | |
* - Initialisation d'instances PDO mysql ou sqlite via ses méthodes statiques | |
* - Requêtage sur une connexion PDO via ses méthodes d'instance | |
* | |
* | |
* // Exemple d'utilisation (initialisation d'une instance) |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Security.Cryptography; | |
using System.Diagnostics; | |
namespace Tedi | |
{ |
public async void Listen() | |
{ | |
try | |
{ | |
string Ip = "127.0.0.1"; | |
int Port = 80; | |
using (HttpListener srv = new HttpListener()) | |
{ | |
srv.Prefixes.Clear(); |
# Enable DEFLATE output | |
SetOutputFilter DEFLATE | |
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript | |
# Check if mod_headers is enabled | |
<IfModule mod_headers.c> | |
#CORSify for everyone | |
Header set Access-Control-Allow-Origin "*" | |
# Cache Control for assets |