Skip to content

Instantly share code, notes, and snippets.

View mateo08c's full-sized avatar
🦝
Focusing

Matéo mateo08c

🦝
Focusing
View GitHub Profile
<script lang="ts">
import {Button, ButtonGroup, Input, InputAddon, Spinner} from "flowbite-svelte";
import {onMount} from "svelte";
export let clientId = 'xxxxx.apps.googleusercontent.com';
let googleButtonWrapper: any;
let loading = false;
export let error;
@mateo08c
mateo08c / Bind9_GeoIP-MaxMind_Best_Distance.php
Created January 15, 2022 02:03
Automatic region generation based on country for bind9 and MaxMind
<?php
$jsonFile = file_get_contents("region.json");
$json = json_decode($jsonFile, true);
$eu = [];
$na = [];
$skip = [];
foreach ($json as $item){