Skip to content

Instantly share code, notes, and snippets.

View bankroft's full-sized avatar
💭
I may be slow to respond.

Bankroft bankroft

💭
I may be slow to respond.
View GitHub Profile
@lisez
lisez / hugo-auto-deoply.yml
Last active October 10, 2024 11:41
如何使用 Github Actions 自動部署 Hugo
# link: https://sujingjhong.com/posts/how-to-deploy-hugo-automatically-with-github-actions/
# author: lisez <[email protected]>
name: Auto publish to public site
# 只有推送到 master 才自動化
on:
push:
branches:
- master
@wbchn
wbchn / bbr.sh
Last active February 9, 2023 01:10
DONNOT USING. bbr install script for linux
#!/usr/bin/env bash
#
# Auto install latest kernel for TCP BBR
#
# System Required: CentOS 6+, Debian7+, Ubuntu12+
#
# Copyright (C) 2016-2017 Teddysun <[email protected]>
#
# URL: https://teddysun.com/489.html
#
@zeta709
zeta709 / bma_decode.py
Last active November 20, 2022 21:00
Battle.net Authenticator (Android) to TOTP
#!/usr/bin/env python
# Python port of https://gist.github.com/stbuehler/8616943
# Disclaimer
# There is absolutely no guarantee.
#
# Guide
# 0. Install Android SDK and Android Backup Extractor
# 1. Backup Battle.net Authenticator
# adb backup com.blizard.bma -f bma.ab
@dervn
dervn / re.py
Created March 8, 2011 02:08
Python中过滤HTML标签的函数
#用正则简单过滤html的<>标签
import re
str = "<img /><a>srcd</a>hello</br><br/>"
str = re.sub(r'</?\w+[^>]*>','',str)
print str