sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -y apache2
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 getAspectRatio(int $width, int $height) | |
{ | |
// search for greatest common divisor | |
$greatestCommonDivisor = static function($width, $height) use (&$greatestCommonDivisor) { | |
return ($width % $height) ? $greatestCommonDivisor($height, $width % $height) : $height; | |
}; | |
$divisor = $greatestCommonDivisor($width, $height); |
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 | |
/////////////////////////////// | |
// HOW TO SANITIZE RADIO BOX // | |
/////////////////////////////// | |
function theme_slug_customizer($wp_customize) { | |
//your section | |
$wp_customize->add_section( | |
'theme_slug_customizer_your_section', | |
array( | |
'title' => esc_html__('Your Section', 'theme_slug'), |
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
# Start Bad Bot Prevention | |
<IfModule mod_setenvif.c> | |
# SetEnvIfNoCase User-Agent ^$ bad_bot | |
SetEnvIfNoCase User-Agent "^12soso.*" bad_bot | |
SetEnvIfNoCase User-Agent "^192.comAgent.*" bad_bot | |
SetEnvIfNoCase User-Agent "^1Noonbot.*" bad_bot | |
SetEnvIfNoCase User-Agent "^1on1searchBot.*" bad_bot | |
SetEnvIfNoCase User-Agent "^3D_SEARCH.*" bad_bot | |
SetEnvIfNoCase User-Agent "^3DE_SEARCH2.*" bad_bot | |
SetEnvIfNoCase User-Agent "^3GSE.*" bad_bot |
ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
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 | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Remove Yoast SEO Dashboard Widget | |
* Credit: Unknown | |
* Last Tested: Sep 15 2022 using Yoast SEO 19.6.1 on WordPress 6.0.2 | |
*/ | |
add_action('wp_dashboard_setup', 'remove_wpseo_dashboard_overview' ); |
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
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 | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Change size for Yoast SEO OpenGraph image for all content | |
* Credit: Yoast Development team | |
* Last Tested: May 19 2020 using Yoast SEO 14.1 on WordPress 5.4.1 | |
* Accepts WordPress reserved image size names: 'thumb', 'thumbnail', 'medium', 'large', 'post-thumbnail' | |
* Accepts custom image size names: https://developer.wordpress.org/reference/functions/add_image_size/ | |
*/ | |
NewerOlder