Skip to content

Instantly share code, notes, and snippets.

View linhandev's full-sized avatar
🎯
Focusing

Lin Han linhandev

🎯
Focusing
View GitHub Profile
@Vispercept
Vispercept / delete_all_workflow_runs_of_workflow_id.sh
Created January 12, 2022 10:34
Delete all github-workflow runs of a given workflow_id to cleanup the actions-section
# ======================================================================================
# Delete all github-workflow runs of a given workflow_id to cleanup the actions-section
#
# original gist:
# https://gist.github.com/zulhfreelancer/a32bee3d37ffb90c93e00bf4b7fe26cf
#
# Requirements
# * gh CLI: https://cli.github.com (make sure you are logged-in to the CLI)
# * jq CLI: https://stedolan.github.io/jq
# ======================================================================================
@wangjiezhe
wangjiezhe / unzip3_gbk.py
Last active February 17, 2021 14:00
解决zip文件中文乱码问题
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
unzip3_gbk.py: Deal with zip files using encoding GB2312/GBK/GB18030
"""
import os
# import sys
import argparse
import zipfile