This file contains hidden or 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
[variable] | |
name='speed' | |
value=''+[DataCorePlugin.TurboLevel]+'%' | |
[variable] | |
name='currentGear' | |
value=[DataCorePlugin.GameData.NewData.Gear] | |
[variable] | |
name='label' |
This file contains hidden or 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
import React, { useState, useEffect } from 'react' | |
import Layout from '../components/layout' | |
import withAuth from '../util/withAuth'; | |
import { Routes, Roles } from '../constants'; | |
import Sidebar from '../components/sidebar'; | |
import noop from 'lodash/noop'; | |
import { authHeader } from '../api/common'; | |
import deepmerge from 'deepmerge'; | |
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'; |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Wayback machine downloader | |
#TODO: Remove redundancy (download only newest files in given time period - not all of them and then write over them) | |
############################ | |
clear | |
#Enter domain without http:// and www. | |
domain="google.com" | |
#Set matchType to "prefix" if you have multiple subdomains, or "exact" if you want only one page | |
matchType="domain" |
This file contains hidden or 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
#!/usr/bin/php | |
<?php | |
namespace ecoreng; | |
class HostsEditor | |
{ | |
// linux [run as root] | |
protected $hosts = '/etc/hosts'; | |
This file contains hidden or 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
function CreditCardCompany($ccNum) | |
{ | |
/* | |
* mastercard: Must have a prefix of 51 to 55, and must be 16 digits in length. | |
* Visa: Must have a prefix of 4, and must be either 13 or 16 digits in length. | |
* American Express: Must have a prefix of 34 or 37, and must be 15 digits in length. | |
* Diners Club: Must have a prefix of 300 to 305, 36, or 38, and must be 14 digits in length. | |
* Discover: Must have a prefix of 6011, and must be 16 digits in length. | |
* JCB: Must have a prefix of 3, 1800, or 2131, and must be either 15 or 16 digits in length. | |
*/ |
This file contains hidden or 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 | |
if ($_SERVER['REMOTE_ADDR'] == 'My.IP.address.!') { | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
// do stuff | |
} | |
?> |