Skip to content

Instantly share code, notes, and snippets.

View ovh-dynhost-main.rs
use dns_lookup::lookup_host;
use std::env::set_var;
use std::env::var;
use std::net::IpAddr;
use std::{thread, time};
#[tokio::main]
async fn main() {
// Debug.
set_var("DOMAIN", "google.fr");
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Mon super site!</title>
<meta charset="utf-8">
<link href="style.css" rel="stylesheet"/>
</head>
<body>
<h1>Bienvenue sur mon site !!</h1>
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Mon super site!</title>
<meta charset="utf-8">
</head>
<body>
<h1>Bienvenue sur mon site !!</h1>
<p>
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Mon super site!</title>
<meta charset="utf-8">
<link href="style.css" rel="stylesheet"/>
</head>
<body>
<h1>Bienvenue sur le meilleur site du monde .. ?</h1>
View style.css
h1
{
color:red;
}
p
{
border:1px solid black;
}
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Mon super site!</title>
<meta charset="utf-8">
<link href="style.css" rel="stylesheet"/>
</head>
<body>
<h1>Bienvenue dans l'auberge.</h1>
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Mon super site!</title>
<meta charset="utf-8">
</head>
<body>
<h1>Bienvenue dans l'auberge.</h1>
<p>
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Mon super site!</title>
<meta charset="utf-8">
</head>
<body>
<h1>Bienvenue dans l'auberge.</h1>
</body>
@Tomy2e
Tomy2e / unseulcar.php
Created Aug 11, 2016
Ne garde qu'un seul exemplaire de chaque caractère parmi tous ceux donnés en entrée
View unseulcar.php
<?php
header('Content-type: text/html; charset=utf-8');
if(isset($_POST['entree']))
{
$car_exists = array();
$string = preg_split('//u', $_POST['entree'], null, PREG_SPLIT_NO_EMPTY);
View gist:12c981f1a70f068dfbb7
### Keybase proof
I hereby claim:
* I am Tomy2e on github.
* I am tomy2e (https://keybase.io/tomy2e) on keybase.
* I have a public key whose fingerprint is D6E0 5748 514E 0FD0 1B78 0071 5DA2 96AE 5D47 0F96
To claim this, I am signing this object: