This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- made by /u/pasterp --> | |
<title>Universal Gender Application</title> | |
<style> | |
:root { | |
--primary: white; | |
--secondary: #535c68; | |
--accent: #22a6b3; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
require 'hexapdf' | |
require 'rqrcode' | |
profil = { | |
lastname: "", | |
firstname: "", | |
birthday: "dd/mm/yyyy", | |
lieunaissance: "", | |
address: "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'yaml' | |
Config = { | |
:Telegram => { | |
:bot_token => "", | |
:channel_id => "" | |
}, | |
:Twitch => { | |
:user_id => "", | |
:client_id => "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'httparty' | |
require 'fileutils' | |
require 'open-uri' | |
require 'nokogiri' | |
base_url = "http://www.bonjourmadame.fr" | |
page = "" | |
regex = /<img SRC="(.+)" alt="/i | |
output_dir = Dir.home+'/.bjmadame/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'httparty' | |
require 'fileutils' | |
require 'open-uri' | |
base_url = "https://apod.nasa.gov/apod/" | |
page = "astropix.html" | |
regex = /<img SRC="(.+)"/i | |
output_dir = Dir.home+'/.apod/' | |
FileUtils.mkdir_p output_dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo("hey"); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//example: completePayload('<Kbd/id="template"><ıframe/src=//github.phelipot.me>') | |
function completePayload(payload) { | |
step1 = Array.from(payload) | |
var value = 1337; | |
var i; | |
for (i = 0; i < step1.length; i++) { | |
c = step1[i]; | |
code = c.codePointAt(0); | |
value = value ^ code ^ i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Cette fonction check si un site est accessible ou non (Nécessite php-curl sur le serveur) | |
function checkOnline($domain) { | |
$curlInit = curl_init($domain); | |
curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10); | |
curl_setopt($curlInit,CURLOPT_HEADER,true); | |
curl_setopt($curlInit,CURLOPT_NOBODY,true); | |
curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ICI (1/3) | |
include_once("../../../twig/lib/Twig/Autoloader.php"); | |
Twig_Autoloader::register(); | |
// ICI (2/3) | |
$loader = new Twig_Loader_Filesystem("../../../templates"); // Dossier contenant les templates | |
$twig = new Twig_Environment($loader, array( | |
"cache" => false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ICI (1/3) | |
include_once("../../../twig/lib/Twig/Autoloader.php"); | |
Twig_Autoloader::register(); | |
// ICI (2/3) | |
$loader = new Twig_Loader_Filesystem("../../../templates"); // Dossier contenant les templates | |
$twig = new Twig_Environment($loader, array( | |
"cache" => false |
NewerOlder