Skip to content

Instantly share code, notes, and snippets.

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

Fisher FisherMS

💭
I may be slow to respond.
View GitHub Profile
@Kuri-su
Kuri-su / openwrt.md
Last active May 19, 2023 09:21
#access the server under the second layer network in OpenWrt route system

{"title":"access the server under the second layer network in OpenWrt route system","type":"blogGist","show":true,"description":"在 OpenWrt 下, 访问 二层网络下的服务器","tag":["openwrt"]}

在 OpenWrt 下, 访问 二层网络下的服务器

基于 静态路由

$x$

背景

@DanielLarsenNZ
DanielLarsenNZ / SwaggerConfig.cs
Last active December 9, 2022 06:38
SwaggerConfig.cs for OAuth2 in ASP.NET Web API to enable Swagger UI auth with Azure AD
/*
The MIT License (MIT)
Copyright (c) 2016 Daniel Larsen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
@DanielSWolf
DanielSWolf / Program.cs
Last active July 30, 2024 15:46
Console progress bar. Code is under the MIT License: http://opensource.org/licenses/MIT
using System;
using System.Threading;
static class Program {
static void Main() {
Console.Write("Performing some task... ");
using (var progress = new ProgressBar()) {
for (int i = 0; i <= 100; i++) {
progress.Report((double) i / 100);
@guweigang
guweigang / git_toturial
Last active July 23, 2024 08:39
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库
@19WAS85
19WAS85 / powershell-web-server.ps1
Last active July 7, 2024 11:25
A simple web server built with powershell.
# This is a super **SIMPLE** example of how to create a very basic powershell webserver
# 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity.
# Http Server
$http = [System.Net.HttpListener]::new()
# Hostname and port to listen on
$http.Prefixes.Add("http://localhost:8080/")
# Start the Http Server