Category: Uncategorized

14
Jun
2023

Docker 常用命令行

停止并删除所有docker container: sudo docker-compose down 列出所有的docker container: sudo docker ps -a 编辑 Dockerfile文件 sudo vim Dockerfile 编辑 docker-compose.yml文件 sudo vim docker-compose.yml 重启nginx container sudo docker exec...

12
Jun
2023

Nginx常用命令

拷贝目录: $ cp –r 源文件夹/ 目标文件夹 启动nginx: sudo service nginx start 重启nginx: sudo service nginx restart 停止nginx: sudo service nginx stop nginx状态: sudo service nginx status...

10
Jun
2023

Docker nodejs

https://www.cnblogs.com/weiqinl/p/docker_node.html 删除image and container: https://www.freecodecamp.org/news/how-to-remove-images-in-docker/

24
May
2023

Facebook Scraper

https://github.com/kevinzg/facebook-scraper/blob/master/README.md import json from facebook_scraper import get_posts def export_posts_as_json(posts, file_path):     with open(file_path, ‘w’, encoding=’utf-8′) as file:         json.dump(posts, file, ensure_ascii=False, indent=4)...

19
May
2023

读取GA4 report by using Google analytics data api

Reference url: https://github.com/tanyazyabkina/GA4_API_python/blob/main/GA4%20Python%20Report.ipynb GA4 Python Report.ipynb https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqazFnLUdacVZjTTgyTHRkd0VMSkduZ1BGT1FYQXxBQ3Jtc0tuMVYzRlFHTVpSOV9paGNKSVU1UjVHNzFiRHhDVjdDeXd6djRNZGpCeFV5YkNxcUNIeTZsT3pyQjdHcjFZN3VuZDZ0ZEpfN3pPZE5TM1llaGhpTGxTSnl3bmxkd05wSjQ5cFg0TGRuNEp4UDNKdlM0NA&q=https%3A%2F%2Fdevelopers.google.com%2Fanalytics%2Fdevguides%2Freporting%2Fdata%2Fv1%2Fapi-schema&v=HbxIXEfl-Hs https://jupyter.org/try-jupyter/lab/ https://github.com/googleapis/python-analytics-data/tree/main/samples/snippets Google API github code 参考 Step 1: https://developers.google.com/analytics/devguides/reporting/data/v1/quickstart-cli?hl=zh-cn to Create a service account, download the json file...

02
May
2023

Add ftp to ubuntu 20.04

https://www.linode.com/docs/guides/vsftpd-on-ubuntu-2004-installation-and-configuration/ sudo useradd -m arj sudo passwd arj Ideait2023**&& 遇到问题 permission: 解决方法chown 目标文件夹:sudo chown -R arj(用户) arj(文件夹目录)