Skip to content

Instantly share code, notes, and snippets.

View Rajinsharwar's full-sized avatar
👋
Open to work

Rajin Sharwar Rajinsharwar

👋
Open to work
View GitHub Profile
@Rajinsharwar
Rajinsharwar / auto-login.php
Created October 11, 2023 01:32
A WordPress auto-login php script. Upload this file anywhere in your website, and simply login by visiting the file from your browser. For example, if you upload this file in your ROOT, visit "http://your-domain.com/auto-login.php" to automatically login to your WordPress dashboard.
<?php
require_once('wp-load.php');
$loginusername = 'admin'; //Replace your username for which user you want to login.
$user = get_user_by( 'login', $loginusername );
$user_id = $user->ID;
wp_set_current_user( $user_id, $loginusername );
wp_set_auth_cookie( $user_id );
do_action( 'wp_login', $loginusername, $user );
wp_redirect( admin_url() );
@Rajinsharwar
Rajinsharwar / css-to-be-pasted.css
Created October 4, 2023 02:08
Please paste the below CSS code by navigating under Appearance > Customizer
.wp-block-post-featured-image.alignfull img, .wp-block-post-featured-image.alignwide img {
border-radius: 10px !important;
}
.alignwide .wp-block-post-featured-image{
margin-top:25px!important;
}
.wp-block-post-template.is-flex-container.is-flex-container.columns-4>li {
width: 100% !important;
}
.has-x-large-font-size {
@Rajinsharwar
Rajinsharwar / debug.log
Created August 31, 2023 12:27
Ohona Theme Error
[31-Aug-2023 12:26:44 UTC] PHP Notice: Function WP_Block_Patterns_Registry::register was called <strong>incorrectly</strong>. Pattern content must be a string. Please see <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in C:\Users\Lenovo\Local Sites\wp-new\app\public\wp-includes\functions.php on line 5905
[31-Aug-2023 12:26:45 UTC] PHP Notice: Function WP_Block_Patterns_Registry::register was called <strong>incorrectly</strong>. Pattern content must be a string. Please see <a href="https://wordpress.org/documentation/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.5.0.) in C:\Users\Lenovo\Local Sites\wp-new\app\public\wp-includes\functions.php on line 5905
[31-Aug-2023 12:26:45 UTC] PHP Warning: Trying to access array offset on value of type bool in C:\Users\Lenovo\Local Sites\wp-new\app\public\wp-content\themes\Ohon
{
"apiKey": "7dabe9947fd22662ba87d3fe1fef699f",
"payloadVersion": "4.0",
"events": [
{
"metaData": {
"app": {
"name": "Platform"
},
"device": {
wp_enqueue_style( 'buddyboss-theme-bb-icons', get_template_directory_uri() . '/assets/icons/css/bb-icons' . $mincss . '.css', '', buddyboss_theme()->version() );
{
"apiKey": "7dabe9947fd22662ba87d3fe1fef699f",
"payloadVersion": "4.0",
"notifier": {
"name": "Bugsnag React Native",
"version": "7.17.3",
"url": "https://github.com/bugsnag/bugsnag-js",
"dependencies": [
{
"name": "Android Bugsnag Notifier",
.has-foreground-background-color {
background-color: #6fabac !important;
}
.wp-block-navigation__responsive-dialog {
background-color: white !important;
}
.wp-block-navigation .wp-block-navigation-item__content {
10.1.69.92 - - [06/May/2022:21:03:19 +0000] "POST /alfacgiapi/perl.alfa HTTP/1.1" 301 173 "www.google.com" "Mozlila/5.0 (Linux; Android 7.0; SM-G892A Bulid/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Moblie Safari/537.36" 0.000 "20.216.58.45, 10.1.69.92"
10.1.4.98 - - [06/May/2022:21:03:20 +0000] "POST /alfacgiapi/perl.alfa HTTP/1.1" 404 10478 "www.google.com" "Mozlila/5.0 (Linux; Android 7.0; SM-G892A Bulid/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Moblie Safari/537.36" 0.169 "20.216.58.45, 20.216.58.45, 10.1.4.98"
10.1.4.98 - - [06/May/2022:21:03:20 +0000] "GET /wp-content/plugins/apikey/apikey.php?test=hello HTTP/1.1" 404 10478 "-" "Mozlila/5.0 (Linux; Android 7.0; SM-G892A Bulid/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Moblie Safari/537.36" 0.155 "20.216.58.45, 20.216.58.45, 10.1.4.98"
10.1.0.152 - - [06/May/2022:21:03:22 +0000] "GET /plugins/content/apismtp/apismtp.php?test=hel
@Rajinsharwar
Rajinsharwar / nginx-access.log
Created April 14, 2022 04:13
Logs for binding 04d0fff620df47188b3e2c4bd3db3eb0 at Thu Apr 14 03:56:32 2022
10.1.4.124 - - [14/Apr/2022:00:01:27 +0000] "GET /node/33 HTTP/1.1" 200 10286 "-" "Mozilla/5.0 (compatible; Barkrowler/0.9; +https://babbar.tech/crawler)" 0.299 "154.54.249.204, 154.54.249.204, 10.1.4.124"
10.1.5.160 - - [14/Apr/2022:00:01:40 +0000] "GET /node/33 HTTP/1.1" 200 10287 "-" "Mozilla/5.0 (compatible; Barkrowler/0.9; +https://babbar.tech/crawler)" 0.288 "154.54.249.204, 154.54.249.204, 10.1.5.160"
10.1.69.73 - - [14/Apr/2022:00:03:07 +0000] "GET /node/34 HTTP/1.1" 200 10356 "-" "Mozilla/5.0 (compatible; Barkrowler/0.9; +https://babbar.tech/crawler)" 0.336 "154.54.249.204, 154.54.249.204, 10.1.69.73"
10.1.68.57 - - [14/Apr/2022:00:03:20 +0000] "GET /node/34 HTTP/1.1" 200 10361 "-" "Mozilla/5.0 (compatible; Barkrowler/0.9; +https://babbar.tech/crawler)" 0.308 "154.54.249.204, 154.54.249.204, 10.1.68.57"
10.1.5.221 - - [14/Apr/2022:00:04:47 +0000] "GET /node/76 HTTP/1.1" 200 10121 "-" "Mozilla/5.0 (compatible; Barkrowler/0.9; +https://babbar.tech/crawler)" 0.297 "154.54.249.204, 154.54.249.204, 1