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
// ==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 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 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
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 | |
/** | |
* 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 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="y@b.biz,e@b.biz,a@b.biz,t@b.com" | |
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 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 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 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 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 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