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
const nodeList = [ | |
{"id":1,"parentId":0,"name":"AA"}, | |
{"id":2,"parentId":1,"name":"BB"}, | |
{"id":3,"parentId":1,"name":"CC"}, | |
{"id":4,"parentId":3,"name":"DD"}, | |
{"id":5,"parentId":3,"name":"EE"}, | |
{"id":6,"parentId":2,"name":"FF"}, | |
{"id":7,"parentId":2,"name":"GG"}, | |
{"id":8,"parentId":4,"name":"HH"}, | |
{"id":9,"parentId":5,"name":"II"} |
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
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; |
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
ssh-keygen -f ~/.ssh/known_hosts -R xxx.com |
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 subprocess | |
# if the script don't need output. | |
subprocess.call("php /path/to/your/script.php") | |
# if you want output | |
proc = subprocess.Popen("php /path/to/your/script.php", shell=True, stdout=subprocess.PIPE) | |
script_response = proc.stdout.read() |