This binding is for MQL4 Language (used by MetaTrader 4 Terminal) and MQL5 Language (used by MetaTrader 5 Terminal).
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
# -*- coding: utf-8 -*- | |
""" | |
Find duplicates in your bookmarks. | |
Usage: | |
python find_dup_bookmarks.py /path/to/your/Bookmarks | |
Chrome saves your bookmarks in a json file. | |
For macOS, it is `/Users/{your user name}/Libaray/Application Support/Chrome/Default/Bookmarks`. |
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
# to remove all keys matching a pattern in redis | |
# we could use the recommended way: redis-cli --scan --pattern 'abc:*' | xargs redis-cli del | |
# but this can be very slow if you have lots of data (like 8G redis cluster) | |
# we can use the following script to remove keys (considerably faster) | |
import time | |
import logging | |
from rediscluster import StrictRedisCluster | |
logger = logging.getLogger(__name__) |