pi@raspberrypi:~ $ echo -e "dtparam=i2c_arm=on\ndtparam=spi=on" | sudo tee -a /boot/config.txt
pi@raspberrypi:~ $ echo -e "i2c-dev" | sudo tee -a /etc/modules-load.d/modules.conf
pi@raspberrypi:~ $ sudo dtparam i2c_arm=on
pi@raspberrypi:~ $ sudo modprobe i2c-bcm2708
pi@raspberrypi:~ $ sudo reboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function is_curl(){ | |
$regex_match="/curl/"; | |
return isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE']) or preg_match($regex_match, strtolower($_SERVER['HTTP_USER_AGENT'])); | |
} | |
if(is_curl()) { | |
echo 'status=0'; | |
} else { | |
header( "HTTP/1.1 301 Moved Permanently"); | |
header("Location: https://sdrotg.com"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const protocol = window.location.protocol; | |
const hostname = window.location.hostname; | |
if (protocol === "https:" && hostname.includes("sdrotg.com")) { | |
location.replace(`http:${location.href.substring(location.protocol.length)}`); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bypassing KiwiSDR extension restrictions | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author ttyUSB0 | |
// @run-at document-end | |
// @match * | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=kiwisdr.com | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2019 NXP | |
* | |
* 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, or (at your option) any later version. | |
*/ | |
/dts-v1/; |