Skip to content

Instantly share code, notes, and snippets.

View borekon's full-sized avatar

Alfonso borekon

View GitHub Profile
@borekon
borekon / testdns.sh
Last active May 5, 2021 11:57
DNS ping test for selecting the fastest
#!/usr/bin/env bash
# execute testdns.sh
command -v bc > /dev/null || { echo "bc was not found. Please install bc."; exit 1; }
{ command -v drill > /dev/null && dig=drill; } || { command -v dig > /dev/null && dig=dig; } || { echo "dig was not found. Please install dnsutils."; exit 1; }
NAMESERVERS=`cat /etc/resolv.conf | grep ^nameserver | cut -d " " -f 2 | sed 's/\(.*\)/&#&/'`
PROVIDERS="
1.1.1.1#cloudflare
4.2.2.1#level3
8.8.8.8#google
9.9.9.9#quad9
@borekon
borekon / guacavpn.sh
Last active May 12, 2020 07:37
Script from s4aur0n to install guacaVPN
#!/bin/bash
## Guacamole v1.1.0 (Debian Burst)
# CS3 Group by Pedro C. aka s4ur0n
# @NN2ed_s4ur0n
# info@cs3group.com
#
#
# Favorite tools
#
@borekon
borekon / fdupdate.php
Last active February 12, 2020 13:08
PHP script to update dynamic IP on afraid's freedns service. Works on PHP 7.0
<?php
/*************************************************************************/
/* Copyright (c) 2020 by Alfonso Vivancos */
/* Based on the work by Giovanni Derks (http://derks.me.uk/) */
/* https://vivancos.eu */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/*************************************************************************/