Skip to content

Instantly share code, notes, and snippets.

View LouisHrg's full-sized avatar
🦍
Reject humanity, return to monke

Louis Harang LouisHrg

🦍
Reject humanity, return to monke
  • Wizards Technologies
  • France
View GitHub Profile
@LouisHrg
LouisHrg / userChrome.css
Created November 6, 2022 11:32
Minimal firefox
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_bookmarks_and_main_toolbars.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
#navigator-toolbox{
--uc-bm-padding: 4px; /* Vertical padding to be applied to bookmarks */
--uc-bm-height: calc(20px + 2 * var(--uc-bm-padding)); /* Might need to adjust if the toolbar has other buttons */
--uc-navbar-height: -40px; /* navbar is main toolbar. Use negative value */
--uc-autohide-toolbar-delay: 600ms; /* The toolbar is hidden after 0.6s */
}
@LouisHrg
LouisHrg / docker-compose.yml
Created August 25, 2022 14:15
Wizards Portal
version: "3.7"
services:
traefik:
image: traefik:2.2
ports:
- "80:80"
- "8080:8080"
- "443:443"
depends_on:
- dev-tls
#later = datetime.utcnow() + timedelta(seconds=12)
#welcome_msg = welcome(request.user)
#mattermost_message.apply_async([welcome_msg.message, request.user.rebel.mm_bot_channel_id], eta=later)
@LouisHrg
LouisHrg / index.js
Created April 7, 2022 12:49
CreateElement
const createElement = (type, config, parent = null) => {
const element = document.createElement(type);
if(config && config.text) {
element.innerHTML = config.text;
}
if(!parent) {
root.appendChild(element);
} else {
parent.appendChild(element)
@LouisHrg
LouisHrg / index.php
Created March 29, 2022 16:31
Correction TP Injection SQL 3IW
<?php
require_once __DIR__ . "/vendor/autoload.php";
require_once __DIR__ . "/helpers/Mysql.php";
require_once __DIR__ . "/helpers/Tooling.php";
require_once __DIR__ . "/helpers/Views.php";
$app = new Leaf\App;
$app->blade;
@LouisHrg
LouisHrg / index.php
Created March 29, 2022 15:22
Correction TP Validation
<?php
require_once __DIR__ . "/vendor/autoload.php";
require_once __DIR__ . "/helpers/Tooling.php";
$app = new Leaf\App;
$app->post("/exo-1", function() use($app) {
@LouisHrg
LouisHrg / index.blade.php
Created March 29, 2022 13:01
Correction reCaptcha ESGI 3IW Secu
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
</head>
<body>
<div>
@LouisHrg
LouisHrg / index.php
Created March 29, 2022 10:41
Correction TP validation - ESGI 3IW3
<?php
require_once __DIR__ . "/vendor/autoload.php";
require_once __DIR__ . "/helpers/Tooling.php";
$app = new Leaf\App;
$app->post("/exo-1", function() use($app) {
package middleware
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/go-vote/provider"
"github.com/go-vote/model"
)
@LouisHrg
LouisHrg / auth.go
Last active September 27, 2019 13:47
Middleware the works (REALLY) with gin
package middleware
import (
"net/http"
"errors"
"time"
"strings"
"github.com/dgrijalva/jwt-go"
"github.com/gin-gonic/gin"
)