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
@FisherMS
FisherMS / dnspodsh.sh
Last active August 29, 2015 14:25 — forked from zrong/dnspodsh.sh
在bash中使用DNSPod的API接口实现DDNS客户端
#!/bin/bash
##############################
# dnspodsh v0.3
# 基于dnspod api构架的bash ddns客户端
# 作者:zrong(zengrong.net)
# 详细介绍:http://zengrong.net/post/1524.htm
# 创建日期:2012-02-13
# 更新日期:2012-03-11
##############################
@FisherMS
FisherMS / github_member_developer
Created August 27, 2016 16:20 — forked from belm/github_member_developer
GitHub 多人协作开发
GitHub 多人协作开发 三种方式:
一、Fork 方式 网上介绍比较多的方式(比较大型的开源项目,比如cocos2d-x)
开发者 fork 自己生成一个独立的分支,跟主分支完全独立,pull代码后,项目维护者可根据代码质量决定是否merge代码
此方式网上方法比较多,这里不详细描述
有两种常用的方法在GitHub上建立团队合作:
二、组织 – 组织的所有者可以针对不同的代码仓库建立不同访问权限的团队。
Accounts Settings => Organizations =>Create new Organizations 新建一个组织 然后添加项目成员,根据提示设置完毕即可。
新建一个Repository 新建完毕后 进入Repository的Settings =>Collaborators 在Teams下面点击刚创建的组织 比如eveloper-51/owners
@FisherMS
FisherMS / gist:c5ca01ed643b856647c18b9fbbca058f
Created September 7, 2016 09:19
很多时候都需要开一些线程队列来处理一些非常密集轻量的工作或对一些任务处理进行有效的限制,这个时候一般都会想到开启队列和线程来处理.下面分享一个无锁的队列作业调度器.
/// <summary>
/// 作业调度器
/// </summary>
public class Dispatch
{
/// <summary>
/// 构建作业调度器
/// </summary>
public Dispatch()
{
@FisherMS
FisherMS / gist:3689b22b0c4214026c8f38ea5cc3b58c
Created September 7, 2016 09:23
基于LRU算法的连接检测实现
/// <summary>
/// 基于LRU算法的连接检测
/// </summary>
public class LRUDetect:IDisposable
{
/// <summary>
/// 构建检测器
/// </summary>
/// <param name="timeout">超时时间以毫秒为单位</param>
@FisherMS
FisherMS / README.md
Created April 27, 2017 09:42 — forked from chuangbo/README.md
Python dynamic DNSPod DNS Script

替换上你的Email,密码,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获得domain_id可以用curl curl -k https://dnsapi.cn/Domain.List -d "login_email=xxx&login_password=xxx"

获得record_id类似 curl -k https://dnsapi.cn/Record.List -d "login_email=xxx&amp;login_password=xxx&amp;domain_id=xxx"

@FisherMS
FisherMS / git_toturial
Created February 7, 2018 03:41 — forked from guweigang/git_toturial
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远程仓库
@FisherMS
FisherMS / AccountController.cs
Created June 17, 2018 15:59 — forked from hikalkan/AccountController.cs
Adding a new property to session
//Add new property to claims on login
private async Task SignInAsync(User user, ClaimsIdentity identity = null, bool rememberMe = false)
{
if (identity == null)
{
identity = await _userManager.CreateIdentityAsync(user, DefaultAuthenticationTypes.ApplicationCookie);
}
identity.AddClaim(new Claim("Application_UserEmail", user.EmailAddress)); //SETTING NEW PROPERTY
@FisherMS
FisherMS / Deploy-AzureResourceGroup.ps1
Created September 17, 2021 05:03 — forked from DarqueWarrior/Deploy-AzureResourceGroup.ps1
Updated Deploy-AzureResourceGroup.ps1 to use Az PowerShell module
#Requires -Version 6.0
Param(
[string] [Parameter(Mandatory=$true)] $ResourceGroupLocation,
[string] $ResourceGroupName = 'AppServiceAndSql',
[switch] $UploadArtifacts,
[string] $StorageAccountName,
[string] $StorageContainerName = $ResourceGroupName.ToLowerInvariant() + '-stageartifacts',
[string] $TemplateFile = 'WebSiteSQLDatabase.json',
[string] $TemplateParametersFile = 'WebSiteSQLDatabase.parameters.json',
@FisherMS
FisherMS / Downloader Sample
Created March 11, 2022 07:41 — forked from ialex32x/Downloader Sample
C# simple http download sample
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;
using System.Net;
namespace ConsoleApplication1
{