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

@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 / 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__)
@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

@kuyagic
kuyagic / 0_reuse_code.js
Created April 21, 2016 02:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console