FreezeJ' Blog

检测跨域的小代码

JavaScript
如果资源不存在,也可能会触发跨域提示(提示非常相似),请先确认资源能被直接请求到,再调试跨域问题! 利用chrome F12 DevTools的console,输入以下代码: 跨域访问不存在资源从简书跨域访问百度不存在的资源 let checkUrl = "https://ww ...
查看更多

用python fire模块快速构建CLI工具

Python
官方文档https://github.com/google/python-firehttps://github.com/google/python-fire/blob/master/docs/guide.md 写简单的命令行脚本,初学时使用sys.argv来抠命令行参数,需要很多判断并且 ...
查看更多

Docker常用命令(三)

Linux Docker
官方文档:https://docs.docker.com/engine/reference/commandline/docker/菜鸟教程:https://www.runoob.com/docker/docker-command-manual.html Docker的操作命令和可用参数非 ...
查看更多

Docker常用命令(二)

Linux Docker
官方文档:https://docs.docker.com/engine/reference/commandline/docker/菜鸟教程:https://www.runoob.com/docker/docker-command-manual.html Docker的操作命令和可用参数非 ...
查看更多

Docker常用命令(一)

Linux Docker
官方文档:https://docs.docker.com/engine/reference/commandline/docker/菜鸟教程:https://www.runoob.com/docker/docker-command-manual.html Docker的操作命令和可用参数非 ...
查看更多

python上下文管理器

在类里面实现__enter__和__exit__方法,用于实现上下文管理: class Manage(object): def __init__(self): print('init') def __enter__(self): ...
查看更多

python元类metaclass

参考文档:https://zhuanlan.zhihu.com/p/149126959https://www.cnblogs.com/tkqasn/p/6524879.htmlhttps://blog.csdn.net/a2011480169/article/details/8789175 ...
查看更多

设计模式简记

参考资料http://www.pythontip.com/pythonPatterns/https://www.runoob.com/design-pattern/design-pattern-tutorial.html 以前没了解过设计模式,最近了解一下,做个粗浅的笔记,慢慢深入理解补 ...
查看更多

编译安装git2.4.8

Linux git
在centos 6的机器上,使用默认yum安装的git克隆代码的时候,提示error: The requested URL returned error: 400 Bad Request while accessing,使用另一台centos 7高版本的git测试,同样的命令却不会报错,疑似 ...
查看更多

使用CGroup来限制程序

Linux
参考文档:https://www.sohu.com/a/252263523_609423https://blog.csdn.net/kongxx/article/details/98329891https://www.cnblogs.com/opama/p/4712139.html 官 ...
查看更多
Prev

第 7 页,共 145 篇文章

Next