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
@eagleon
eagleon / .vimrc
Created December 26, 2012 01:18
MacVim环境文件配置。 brew install ctags
" =========
" 功能函数
" =========
" 获取当前目录
func GetPWD()
return substitute(getcwd(), "", "", "g")
endf
" =========
" 环境配置
" =========
@ctolsen
ctolsen / curl_to_ab.py
Last active June 3, 2024 11:59
"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.