Skip to content

Instantly share code, notes, and snippets.

View sogouo's full-sized avatar
:octocat:
I may be slow to respond.

sogouo sogouo

:octocat:
I may be slow to respond.
View GitHub Profile
@ctolsen
ctolsen / curl_to_ab.py
Last active July 29, 2024 14:19
"Copy to cURL" in Chrome to Apache Bench command
#!/usr/bin/env python3
import sys
import os
def curl_to_ab(curl_cmd: list, num: int=200, cur: int=4) -> str:
"""
Translate a cURL command created by Chrome's developer tools into a
command for ``ab``, the ApacheBench HTTP benchmarking tool.
@eagleon
eagleon / .vimrc
Created December 26, 2012 01:18
MacVim环境文件配置。 brew install ctags
" =========
" 功能函数
" =========
" 获取当前目录
func GetPWD()
return substitute(getcwd(), "", "", "g")
endf
" =========
" 环境配置
" =========