Skip to content

Instantly share code, notes, and snippets.

Avatar

Etienne Baudry WebMaestroFr

View GitHub Profile
@olliefr
olliefr / gdmpydemo.py
Created Apr 4, 2017
Google Distance Matrix API Python client example
View gdmpydemo.py
# Google Distance Matrix Python Demo
# ==================================
#
# How to set up (Local part)
# --------------------------
#
# Must have Python (>= 3.4) installed with 'requests' library. On Windows, maybe try
# Anaconda Python? It has a 'conda' package manager, make sure 'requests' is installed.
#
# How to set up (Internet part)
@Lewiscowles1986
Lewiscowles1986 / adapter-passthrough
Last active Mar 11, 2019
Allows passthrough for bridges, wireless access-point's and range extenders
View adapter-passthrough
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
ADAPTER="eth0"
# Allow overriding from eth0 by passing in a single argument
@Lewiscowles1986
Lewiscowles1986 / rPi3-ap-setup.sh
Last active Aug 8, 2020
Raspberry Pi 3 access-point-setup
View rPi3-ap-setup.sh
#!/bin/bash
#
# This version uses September 2017 august stretch image, please use this image
#
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
@hofmannsven
hofmannsven / README.md
Last active Jul 31, 2020
Raspberry Pi Cheatsheet
View README.md
@wkjagt
wkjagt / remove_script_tags.php
Last active Apr 9, 2018
Remove script tags from html
View remove_script_tags.php
<?php
function removeDomNodes($html, $xpathString)
{
$dom = new DOMDocument;
$dom->loadHtml($html);
$xpath = new DOMXPath($dom);
while ($node = $xpath->query($xpathString)->item(0)) {
$node->parentNode->removeChild($node);
}
You can’t perform that action at this time.