Skip to content

Instantly share code, notes, and snippets.

@kuyagic
kuyagic / docker-registry-mirrors.md
Created November 2, 2020 14:32 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

创建或修改 /etc/docker/daemon.json

Keybase proof

I hereby claim:

  • I am kuyagic on github.
  • I am kuyagic (https://keybase.io/kuyagic) on keybase.
  • I have a public key ASBI9UZ1i1iIY1Oq94h7NCa8iF6MJ-fXIECqE50ME-sSYgo

To claim this, I am signing this object:

@kuyagic
kuyagic / ifw-inh-qqtim-services.xml
Created November 17, 2018 15:04 — forked from shellexy/ifw-inh-qqtim-services.xml
将这个文件放入 /data/system/ifw/ 即可抑制 qq、tim、淘宝、支付宝、美团、高德等国产 app 的多余后台服务 ,同时保持 tim 能收到消息
<rules>
<service block="true" log="false">
<component-filter name="tv.danmaku.bili/tv.danmaku.bili.update.UpdateService" />
<component-filter name="tv.danmaku.bili/com.xiaomi.push.service.XMPushService" />
<component-filter name="tv.danmaku.bili/com.xiaomi.mipush.sdk.PushMessageHandler" />
<component-filter name="tv.danmaku.bili/com.xiaomi.mipush.sdk.MessageHandleService" />
<component-filter name="tv.danmaku.bili/com.evernote.android.job.v14.PlatformAlarmService" />
<component-filter name="com.tencent.mobileqq/com.tencent.mobileqq.qipc.QIPCServiceEx" />
<component-filter name="com.tencent.mobileqq/com.tencent.pluginloader.proxy.DownloadProxyService" />
<component-filter name="com.tencent.mobileqq/com.tencent.proxyinner.plugin.loader.NowQTServiceProxy" />
@kuyagic
kuyagic / upload_to_sogou.py
Last active February 14, 2018 14:03
upload image to sougou
import requests
import time
import bs4
from urllib.parse import urlparse, unquote
from flask import Blueprint, request, make_response, Response, send_file, redirect, stream_with_context, jsonify
@bp.route('/sougou/upload', methods=['POST'])
def upload_to_sougou():
if 'image' not in request.files:
return jsonify({
@kuyagic
kuyagic / ggdns.py
Created December 23, 2017 08:56
clean dns server
#!/usr/bin/env python3
# coding=utf-8
import binascii
import ipaddress
import time
import os
import hjson
import requests
import sys
import threading
@kuyagic
kuyagic / config-sample.md
Last active December 18, 2017 10:19
Shadowsocks-libev sample config

Shadowsocks-libev 最新版配置样例

{
  "server": "0.0.0.0",
  "server_port": 443,
  "local_address": "0.0.0.0",
  "local_port": 1080,
  "password": "sample-password",
  "timeout": 60,
 "plugin": "obfs-local",
@kuyagic
kuyagic / app.py
Created June 2, 2017 14:02 — forked from fanzeyi/app.py
Simple stream file proxy with Flask and Requests
# -*- coding: utf-8 -*-
from flask import Flask
from flask import Response
from flask import stream_with_context
import requests
app = Flask(__name__)

ベルセルク Ⅱ *

進撃の巨人Ⅱ *

冴えない彼女の育て方Ⅱ *

夏目友人帳六

ソード。オラトリア

[20170105][LKSUB]政宗くんのリベンジ
[20170107][LKSUB]亜人ちゃんは語りたい
[20170111][DMG]この素晴らしい世界に祝福を!2
[20170112][Sumisora]クズの本懐
[11/12]うらら迷路帖
[11/12]セイレン
[10/12]One Room
[11/12]CHAOS;CHILD
[11/13]AKIBA'S TRIP -THE ANIMATION-
[10/12]小林さんちのメイドラゴン
@kuyagic
kuyagic / uml-on-debian.md
Created February 19, 2017 05:41 — forked from gaoyifan/uml-on-debian.md
User Mode Linux on Debian Jessie

User Mode Linux on Debian Jessie

host kernel version: 3.16.36-1+deb8u2

target kernel version: 4.9-rc5

Build UML kernel

Preparation