Skip to content

Instantly share code, notes, and snippets.

View TremiDkhar's full-sized avatar
🛸
Learning

Tremi Dkhar TremiDkhar

🛸
Learning
View GitHub Profile
@TremiDkhar
TremiDkhar / wp-svg.php
Last active March 2, 2023 12:20
wp-svg.php
<?php
final class SVG {
/**
* Setup the hooks.
*/
public static function setup_hooks() {
add_filter( 'wp_kses_allowed_html', array( __CLASS__, 'add_kses_svg_support' ), 10, 2 );
}

Keybase proof

I hereby claim:

  • I am tremidkhar on github.
  • I am tremidkhar (https://keybase.io/tremidkhar) on keybase.
  • I have a public key ASD_7WnPMvcuPc-DCJOhOYjahQd1vyKRb-lBWinz65hXkQo

To claim this, I am signing this object:

@TremiDkhar
TremiDkhar / scroll_twitter_followers.js
Created July 14, 2018 16:19 — forked from LoranKloeze/scroll_twitter_followers.js
Automatic scroll of Twitter followers, stop scrolling by hand...
/*
You know how Twitter never loads all the followers but you have to keep scrolling? Well,
this script automatically keeps scrolling to the end of the follower list.
30-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
Usage
- Go to https://www.twitter.com/twitter_handle/followers (change twitter_handle in i.e. realdonaldtrump)
- Open up the console (F12) (Firefox users: type 'allow pasting' if you haven't done so yet)
- Select the contents of this complete file and copy/paste it to the console and hit enter
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
function have_valid_gravatar( $email ) {
$header = @get_headers( 'http://www.gravatar.com/avatar/' . md5( strtolower( trim ( $email ) ) ) . '?d=404' );
if ( preg_match( "|200|", $header[0] ) ) {
$result = true;
} else {
$result = false;
}