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
services: | |
opensearch: | |
image: opensearchproject/opensearch:latest | |
container_name: opensearch | |
environment: | |
- discovery.type=single-node | |
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=1ASDF123Aa!# | |
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # Adjust heap size as needed | |
ulimits: |
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
function getNestedProperty(obj, path) { | |
let myObj = obj; | |
for (let name of path.split('.')) { | |
if (myObj) { | |
myObj = myObj[name]; | |
} else { | |
break; | |
} | |
} | |
return myObj; |
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 requests | |
import json | |
# 用来爬取国美在线店铺列表的python脚本 | |
provices = { | |
'11000000': '北京', | |
'12000000': '天津', | |
'13000000': '河北省', | |
'14000000': '山西省', | |
'15000000': '内蒙古', |
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
function getNestedProperty(obj, path) { | |
let myObj = obj; | |
for (let name of path.split('.')) { | |
if(myObj) { | |
myObj = myObj[name]; | |
} else { | |
break; | |
} | |
} | |
return myObj; |
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
sudo keytool -import -alias cacerts -keystore $(readlink -f /usr/bin/java | sed "s:bin/java::")lib/security/cacerts -file ca.crt |