Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Linas juslintek

🎯
Focusing
Block or report user

Report or block juslintek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@juslintek
juslintek / rewrite_example.php
Created May 30, 2019
I've made this on one plugin
View rewrite_example.php
<?php
class Config {
public function __construct() {
add_action( 'init', array( $this, '_wpSoapGetEndPoint' ) );
add_action( 'template_redirect', array( $this, '_wpSoapGetEndPointData' ) );
}
/**
* Idnetify Soap Request Endpoint and Perform URL Pattern Rewrite Rules Validation Checks
@juslintek
juslintek / docker-compose-problem.md
Created Jul 3, 2018
docker-compose.yml problem
View docker-compose-problem.md

Hi, I get

ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

on

docker -v
Docker version 18.03.1-ce, build 9ee9f40
@juslintek
juslintek / blacklist.conf
Created Apr 10, 2018
Ka blokuoja servas
View blacklist.conf
map $http_user_agent $bad_bot {
default 0;
"~*Baidu" 1;
"~*slurp" 1;
"~*Spaidu" 1;
"~*YandexBot" 1;
"~*YandexImages" 1;
"~*80legs" 1;
"~*360Spider" 1;
"~*Aboundex" 1;
View uptime-monitor.js
(function ($) {
/**
* @var object uptimeArgs
* @var object monitor = {
* all_time_uptime_ratio: "100.000",
* average_response_time: "94.647",
* create_datetime: 1501761134,
* friendly_name: "Hostinger",
* http_password: "",
* http_username: "",
@juslintek
juslintek / hosting_companies_listing.php
Created Mar 1, 2018
LC module for outputting live-composer
View hosting_companies_listing.php
<?php
/**
* Plugin Name: Hosting Companies Listing
* Description: Lists Hostinger Post Types In Chosen Formats.
* Version: 1.0
*/
if ( defined( 'DS_LIVE_COMPOSER_URL' ) ) {
@juslintek
juslintek / file_sizes.log
Created Feb 26, 2018
Sizes of files to be stored in database
View file_sizes.log
This file has been truncated, but you can view the full file.
Juslintek-MAC:~ juslintek$ ssh amazon2 du -shc public_html/wp-content/uploads/*
164K public_html/wp-content/uploads/000webhost-main-1024x500.png
140K public_html/wp-content/uploads/000webhost-main-1024x500.png.webp
160K public_html/wp-content/uploads/000webhost-main-1024x500.webp
8.0K public_html/wp-content/uploads/000webhost-main-135x66.png
8.0K public_html/wp-content/uploads/000webhost-main-135x66.png.webp
8.0K public_html/wp-content/uploads/000webhost-main-135x66.webp
12K public_html/wp-content/uploads/000webhost-main-150x150.png
12K public_html/wp-content/uploads/000webhost-main-150x150.png.webp
@juslintek
juslintek / mysql-variables.log
Last active Feb 22, 2018
Live Composer problem having MySQL Variables
View mysql-variables.log
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value |
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@juslintek
juslintek / system.log
Created Jan 29, 2018
Log of Magento shop
View system.log
-bash-4.1$ cat system.log
2018-01-29T21:36:20+00:00 ERR (3): Warning: Invalid argument supplied for foreach() in /home/zaidimustalai/domains/zaidimustalai.lt/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 954
2018-01-29T21:36:20+00:00 ERR (3): Warning: Invalid argument supplied for foreach() in /home/zaidimustalai/domains/zaidimustalai.lt/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 954
2018-01-29T21:36:20+00:00 ERR (3): Warning: Invalid argument supplied for foreach() in /home/zaidimustalai/domains/zaidimustalai.lt/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 954
View Magento-shop-data.txt
+----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| name | value |
+----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Version | 1.9.3.7 |
| Edition | Enterprise
View Active modules on my shop
-bash-4.1$ magerun sys:modules:list --status=active
Magento Modules
+-----------+------------------------------+----------------+--------+
| codePool | Name | Version | Status |
+-----------+------------------------------+----------------+--------+
| core | Mage_Core | 1.6.0.7 | active |
You can’t perform that action at this time.