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 | |
/** Disable XML-RPC - is a URL which hacher always used in first for Brute-Force attacks website with no using auth form */ | |
add_filter('xmlrpc_enabled', '__return_false'); | |
/** Hide username from comments */ | |
function remove_comment_author_class( $classes ) { | |
foreach( $classes as $key => $class ) { | |
if(strstr($class, "comment-author-")) { | |
unset( $classes[$key] ); |
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
<!DOCTYPE html> | |
<html lang="en" class="fonts-loading"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script type="text/javascript"> | |
// Lib: https://github.com/typekit/webfontloader | |
// Async font loading | |
WebFontConfig = { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script type="text/javascript"> | |
// Async custom or external scrips & styles loading | |
(function() { | |
var lazyLoaded = false; |
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
User-agent: * | |
Disallow: /cgi-bin | |
Disallow: /? | |
Disallow: /admin/ | |
Disallow: /login/ | |
Disallow: /wp- | |
Disallow: *?p= | |
Disallow: *?s= | |
Disallow: *&s= | |
Disallow: /search/ |
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
#!/bin/bash | |
# Chrome Repo | |
sudo apt-get install fonts-liberation xdg-utils libxss1 libappindicator1 libindicator7 | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome*.deb | |
sudo apt-get update | |
# Download |
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 | |
add_action('admin_init', function () { | |
// Redirect any user trying to access comments page | |
global $pagenow; | |
if ($pagenow === 'edit-comments.php') { | |
wp_redirect(admin_url()); | |
exit; | |
} |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.24; | |
interface IERC165 { | |
function supportsInterface(bytes4 interfaceID) | |
external | |
view | |
returns (bool); | |
} |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.24; | |
interface IERC20 { | |
function totalSupply() external view returns (uint256); | |
function balanceOf(address account) external view returns (uint256); | |
function transfer(address recipient, uint256 amount) | |
external | |
returns (bool); | |
function allowance(address owner, address spender) |
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
$.xhrPool = { | |
pool: [], | |
abortAll: function() { | |
$.each(this.pool, function(idx, jqXHR) { | |
jqXHR.abort(); | |
}); | |
this.pool = []; | |
}, | |
add: function(jqXHR) { | |
this.pool.push(jqXHR); |