Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<!-- made by /u/pasterp -->
<title>Universal Gender Application</title>
<style>
:root {
--primary: white;
--secondary: #535c68;
--accent: #22a6b3;
}
require 'date'
require 'hexapdf'
require 'rqrcode'
profil = {
lastname: "",
firstname: "",
birthday: "dd/mm/yyyy",
lieunaissance: "",
address: "",
require 'yaml'
Config = {
:Telegram => {
:bot_token => "",
:channel_id => ""
},
:Twitch => {
:user_id => "",
:client_id => "",
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/'
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
<?php echo("hey"); ?>
//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;
<?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);
<?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
<?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