This file contains hidden or 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
// ==UserScript== | |
// @name Google Maps Tab | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-08-06 | |
// @description Restores the seamless integration of Google Maps with Google Search | |
// @author Artyom Yagovdik <artyom.yagovdik(at)gmail.com> | |
// @match https://www.google.com/search* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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 | |
use Magento\Framework\App\Bootstrap; | |
use Magento\Framework\App\State; | |
use Magento\Framework\ObjectManagerInterface; | |
require __DIR__ . '/app/bootstrap.php'; | |
class Test | |
{ |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{"openapi":"3.0.0","info":{"title":"Shopware Admin API","description":"This endpoint reference contains an overview of all endpoints comprising the Shopware Admin API.\n\nFor a better overview, all CRUD-endpoints are hidden by default. If you want to show also CRUD-endpoints\nadd the query parameter `type=jsonapi`.","version":"6.5.3.3"},"servers":[{"url":"https:\/\/shopware-6-demo.localhost\/api"}],"paths":{"\/acl-role":{"get":{"tags":["Acl Role"],"summary":"List with basic information of Acl Role resources","description":"Available since: 6.0.0.0","operationId":"getAclRoleList","parameters":[{"name":"limit","in":"query","description":"Max amount of resources to be returned in a page","schema":{"type":"integer"}},{"name":"page","in":"query","description":"The page to be returned","schema":{"type":"integer"}},{"name":"query","in":"query","description":"Encoded SwagQL in JSON","schema":{"type":"string"}}],"responses":{"200":{"description":"List of Acl Role resources.","content":{"application\/vnd.api+json":{"sc |
This file contains hidden or 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 | |
/** | |
* Script to import/update stocks/inventory/qty in bulk via CSV | |
* | |
* @author Artyom Yagovdik <artyom.yagovdik(at)gmail.com> | |
* @website https://artttj.github.io/ | |
*/ | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); |
This file contains hidden or 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 | |
MAILTO="[email protected],[email protected],[email protected],[email protected]" | |
USAGE=90 # inode usage - value in percent | |
dui=$(df -hi | sed -n '4p' |awk '{print $5}' | grep -v U|cut -d% -f1) | |
if [ $dui -gt $USAGE ] | |
then | |
echo "Inode usage on 52.52.52.135 is exceeded - $dui%" |mailx -s "Inode usage on $(hostname)" $MAILTO | |
fi |
This file contains hidden or 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
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
This file contains hidden or 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 | |
class Versions { | |
public function __construct() { | |
} | |
public static function create() { | |
return new self(); | |
} |
This file contains hidden or 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
SET FOREIGN_KEY_CHECKS=0; | |
DROP TABLE IF EXISTS `core_store`; | |
CREATE TABLE `core_store` ( | |
`store_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Store Id', | |
`code` varchar(32) DEFAULT NULL COMMENT 'Code', | |
`website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website Id', | |
`group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Group Id', | |
`name` varchar(255) NOT NULL COMMENT 'Store Name', | |
`sort_order` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Store Sort Order', |
This file contains hidden or 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
import urllib.request | |
import urllib.response | |
userName = "user" | |
passWord = "password" | |
top_level_url = "http://127.0.0.1/api/update" | |
# create an authorization handler | |
p = urllib.request.HTTPPasswordMgrWithDefaultRealm() | |
p.add_password(None, top_level_url, userName, passWord); |
This file contains hidden or 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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /home/me/domains/example; | |
index index.html index.php; | |
server_name example.dev; | |
## | |
# redirect to www |
NewerOlder