This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GitHUB 访问代理: | |
软件功能简介: | |
· 域名纯净IP解析:提供无污染的域名解析服务,增强访问质量。 | |
· IP测速与选择:自动测速并选择连接最快的IP地址。 | |
· CDN资源替换:用于google CDN资源,解决部分国外网站的js和css加载问题。 | |
· 非翻墙安全性:保持网络连接安全且干净,不记录用户信息。 | |
Linux临时网络配置: | |
设置临时的HTTP和HTTPS代理(解决github releases,wget,curl等操作中可能出现的网络问题): | |
export https_proxy=http://git.iizone.com.cn:32222 | |
export http_proxy=http://git.iizone.com.cn:32222 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Endpoints = require("eris/lib/rest/Endpoints"); | |
Object.defineProperties(Eris.Client.prototype, { | |
fetchChannel: { | |
value: function(channelID) { | |
return this.requestHandler.request("GET", Endpoints.CHANNEL(channelID), true).then((channel) => { | |
if (channel.type === 0) { | |
return new Eris.TextChannel(channel, null, this.options.messageLimit); | |
} else if (channel.type === 1) { | |
return new Eris.PrivateChannel(channel, this); | |
} else if (channel.type === 2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MBProgressHUD+Additions.h | |
// Caremobile | |
// | |
// Created by Victor Ilyukevich on 4/13/16. | |
// Copyright © 2016 Care Zone Inc. All rights reserved. | |
// | |
@interface MBProgressHUD (Additions) | |
- (BOOL)hasFinished; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------- | |
-- HTTP Accept-Language header handler -- | |
-- @originalAuthor: f.ghibellini@gmail.com -- | |
-- @originalRepository: https://github.com/fghibellini/nginx-http-accept-lang-- | |
-- @modifiedBy: marian.hello@mapilary.com -- | |
-- @gist: https://gist.github.com/mauron85/47ed1075262d9e020fe2 -- | |
-- @license: MIT -- | |
-- @requires: -- | |
-- @description: -- | |
-- returns language with greatest quality -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
target_branch="production" | |
working_tree="PATH_TO_DEPLOY" | |
while read oldrev newrev refname | |
do | |
branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |