Skip to content

Instantly share code, notes, and snippets.

View Anduin2017's full-sized avatar

Anduin Xue Anduin2017

View GitHub Profile
@zulhfreelancer
zulhfreelancer / show-all-docker-build-logs.md
Created June 1, 2023 08:25
How to show all `docker build` logs?

How to show all docker build logs?

docker build -t YOUR-USER-NAME/YOUR-REPO:<YOUR-IMAGE-TAG> --no-cache --progress=plain .
@1715173329
1715173329 / mirror.py
Created August 12, 2020 07:45 — forked from hvnsweeting/mirror.py
mirror a PPA
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''
PPA=$1
if [ -z $PPA ] then;
echo "PPA is required. E.g:
fi
DIRECTORY=${2:-ubuntu}
@imba-tjd
imba-tjd / IMBALIST.TXT
Last active July 12, 2024 01:40
🚫 我的uBO屏蔽列表以及HE规则
[Adblock Plus 2.0]
! Title: IMBALIST
! Homepage: https://gist.github.com/imba-tjd/2c9817233ac6798d4f2bfe057f781ca5
! Expires: 10 days
! 使用方法:将 https://gist.githubusercontent.com/imba-tjd/2c9817233ac6798d4f2bfe057f781ca5/raw/IMBALIST.TXT 添加到uBO的规则列表中
! humblebundle领取key页面
www.humblebundle.com##.download-mosaic
www.humblebundle.com##.coupon.whitebox-redux
www.humblebundle.com##.js-subproduct-whitebox-holder > .whitebox-redux
@Anduin2017
Anduin2017 / limitIp.cs
Last active September 4, 2019 17:00
Limit IP request frenquency
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
namespace Aiursoft.Pylon.Attributes
{
public class LimitPerMin : ActionFilterAttribute
@Anduin2017
Anduin2017 / suspect.md
Created January 23, 2019 09:18
How to repair suspect SQL Server

如何修正Suspect状态的SQL Server

出现数据库Suspect状态后,不要慌。让我来拯救你吧。

Suspect状态是什么

SQL Server本身会以多种方式存储最终份的数据库。包括事务方法、快照方法等。SQL Server会在启动时检查多种方式存储的最终数据的结果,一旦发现任何数据不一致的形态,都会导致数据库无法启动。

所以,遇到这种情况,不要慌。基本上数据都能恢复过来,只是最后恢复起来以后可能不是和当初一致的内容。

@tterb
tterb / README-badges.md
Last active July 3, 2024 13:47
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release

@dotStart
dotStart / MinecraftService.md
Last active March 28, 2024 12:39
Systemd services for Minecraft Servers

Minecraft systemd Services

This gist contains service descriptors which may be used to automatically start and re-start Minecraft servers using systemd. This allows proper control of your server startup on modern Linux distributions and will automatically manage all required tasks on startup for you.

Requirements