Skip to content

Instantly share code, notes, and snippets.

View tgxn's full-sized avatar
👓
Hello, World!

Domenic Horner tgxn

👓
Hello, World!
View GitHub Profile
@tgxn
tgxn / whitelist.php
Created August 20, 2015 06:22
Whitelist Sites with CF Header
$whitelistCountries = array(
"NZ"
);
if(isset($_SERVER["HTTP_CF_IPCOUNTRY"])) {
$block = true;
for($whitelistCountries as $country) {
if($_SERVER["HTTP_CF_IPCOUNTRY"] == $country) {
$block = false;
}

Keybase proof

I hereby claim:

  • I am tgxn on github.
  • I am tgxn (https://keybase.io/tgxn) on keybase.
  • I have a public key whose fingerprint is 26FC 9725 6293 66E7 7849 445B 478B 5D86 EF61 5FF4

To claim this, I am signing this object:

var getElementByXpath = function(path) {
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
};
var mainUserElem = getElementByXpath("//html/body/div[1]/div/div/div/div/div/div/div[2]/div[2]/div[1]/div/div[2]");
var users = [];
for (var index in mainUserElem) {
if(index.indexOf('__reactEventHandlers') !== -1) {
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.