Skip to content

Instantly share code, notes, and snippets.

View qwe7002's full-sized avatar
๐Ÿ˜ƒ
I may be fast to respond.

qwe7002 qwe7002

๐Ÿ˜ƒ
I may be fast to respond.
View GitHub Profile
@qwe7002
qwe7002 / reresolv-dns.sh
Last active February 3, 2025 10:23
A patch for reresolv-dns.sh on macos bash
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
#
# Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
set -e
shopt -s nocasematch
shopt -s extglob
export LC_ALL=C
### Keybase proof
I hereby claim:
* I am qwe7002 on github.
* I am qwe7002 (https://keybase.io/qwe7002) on keybase.
* I have a public key whose fingerprint is 0528 B669 E283 A486 F341 5080 6059 7C22 A782 B239
To claim this, I am signing this object:
FROM alpine:latest
ENV LANG C.UTF-8
WORKDIR /home/oneanime/
RUN sed -i s/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g /etc/apk/repositories \
&& apk add --no-cache python3 \
&& pip3 install Pillow -i https://mirrors.ustc.edu.cn/pypi/web/simple
@qwe7002
qwe7002 / SilverBlog_DockerFile
Last active October 28, 2017 11:39
SilverBlog_DockerFile
FROM alpine:latest
ENV LANG C.UTF-8
WORKDIR /home/SilverBlog/
RUN apk add --no-cache python3 git nano vim bash uwsgi uwsgi-python3 newt \
&& apk add --no-cache --virtual .build-deps musl-dev gcc python3-dev \
&& pip3 install flask hoedown pypinyin pyrss2gen gitpython watchdog \
&& apk del --purge .build-deps