Skip to content

Instantly share code, notes, and snippets.

View chtitux's full-sized avatar

Théophile Helleboid - chtitux chtitux

View GitHub Profile
{
"32394": {
"actual end date": "2024-12-01 01:00:00 UTC",
"actual start date": "2024-09-23 16:30:00 UTC",
"address": null,
"detailed description": null,
"direction": null,
"disruption type": "road_works",
"geolocation": [
55.222181638432104,
@chtitux
chtitux / meteofrance-la-reunion-station.geojson
Created October 15, 2024 17:06
MétéoFrance stations in La Réunion on 2024-10-15
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
# Fail script if any command fails
set -e
function usage {
local script_name
script_name=$(basename "$0")
cat <<HELP
$script_name (options) <message>
@chtitux
chtitux / merge-master.sh
Created April 4, 2019 15:29
Merge master script
#!/bin/bash
# Example of the slack-usernames file:
# han.solo@gitlab.com @UABCDEF123
# Fail script if any command fails
set -e
GITLAB_HOST=${GITLAB_HOST:-gitlab.com}
GITLAB_UPSTREAM_NAMESPACE=${GITLAB_UPSTREAM_NAMESPACE:-mycorpcompany}
@chtitux
chtitux / amazon.md
Last active September 18, 2018 08:52
Amazon self-signed certificate in whois comments of 54.208.0.0/15 : https://rdap.arin.net/registry/ip/54.208.0.0/15

Whois of 54.208.0.0/15

$ whois 54.208.0.0
…
# start

NetRange:       54.208.0.0 - 54.209.255.255
CIDR:           54.208.0.0/15
NetName:        AMAZO-ZIAD4
NetHandle:      NET-54-208-0-0-2
Test made from 2a01:e35:2f07:1ce0:92a4:deff:feb5:74d7
I have no TCP answer from 2 IPv6 (out of 5) of sstatic.net.cdn.cloudflare.net.
chtitux@susie:~$ for i in $(dig AAAA sstatic.net.cdn.cloudflare.net. +short) ; do echo "Testing [$i]" && wget -O /dev/null http://[$i]/ --connect-timeout 2 --tries 1 -q && echo "[$i] OK" || echo "[$i] FAIL"; done
Testing [2400:cb00:2048:1::be5d:f43a] OK
Testing [2400:cb00:2048:1::be5d:f53a] OK
Testing [2400:cb00:2048:1::8d65:723b] FAIL
Testing [2400:cb00:2048:1::be5d:f73a] FAIL
#!/usr/bin/perl
use strict;
my $domain = $ARGV[0];
my @letters = split("", $domain);
sub bin2dec {
return unpack("N", pack("B32", substr("0" x 32 . shift, -32)));
}
#!/usr/bin/perl
use strict;
use File::stat;
use Time::localtime;
use List::MoreUtils 'any';
use Time::HiRes qw(usleep);
use XML::Simple;
use Data::Dumper;
use Gtk2::Notify;
// Actuellement sur http://www.afnic.fr/fr/produits-et-services/services/convertisseur-idn/
$(document).ready(function () {
$("#button_domain_translator_44_domain").click(function() {
$.fancybox.showActivity();
$.ajax({
url: "/ajax/domain-translator/",
data: {domain: $("#domain_translator_44_domain").val() },
success: function (data) {
$.fancybox(data);
}
<select name="zabpq">
<option>095007</option><option>095008</option><option>095009</option><option>095011</option><option>095012</option><option>095013</option><option>095014</option><option>095015</option><option>095016</option><option>095017</option><option>095018</option><option>095019</option><option>095040</option><option>095041</option><option>095042</option><option>095043</option><option>095044</option><option>095045</option><option>095046</option><option>095047</option><option>095048</option><option>095049</option><option>095054</option><option>095057</option><option>095058</option><option>095059</option><option>095080</option><option>095081</option><option>095082</option><option>095083</option><option>095084</option><option>095085</option><option>095086</option><option>095087</option><option>095088</option><option>095089</option><option>095090</option><option>095091</option><option>095092</option><option>095093</option><option>095094</option><option>095095</option><option>095096</option><option>0950