Skip to content

Instantly share code, notes, and snippets.

View huang5556019's full-sized avatar

绿箭薄荷味 huang5556019

  • 好笔头
  • 深圳
View GitHub Profile
#! /bin/bash
#在和脚本同目录下新建IPList.txt文件,并写入要测试的IP地址,保存后测试
for i in `cat ./IPList.txt`
do
ping=`ping -c 1 $i|grep loss|awk '{print $6}'|awk -F "%" '{print $1}'`
if [ $ping -eq 100 ];then
echo ping $i fail
else
echo ping $i ok
@huang5556019
huang5556019 / git_toturial
Created April 18, 2018 01: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远程仓库
#通过 Homebrew Cask 优雅、简单、快速的安装和管理 OS X 图形界面程序
#安装Homebrew Cask(可选 正常安装的Homebrew不需要)
brew tap caskroom/cask
brew install brew-cask
#卸载Homebrew Cask
#使用Homebrew Cask安装软件
brew cask install <appName>
#安装 默认已安装Xcode
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#卸载
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
#或者下面命令
cd `brew --prefix`
rm -rf Cellar
brew prune
@huang5556019
huang5556019 / 锐速命令大全
Created April 12, 2018 14:05
锐速安装及操作相关命令
#安装锐速
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder.sh && bash serverspeeder.sh
#备用
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh
#卸载
隐私政策
DualuxBT尊重并保护所有使用DualuxBT及DualuxBT提供的与本应用相关的官方网站、用户社区等服务(以下简称“产品”)的用户(以下简称“用户”或“你”)的个人隐私。DualuxBT隐私政策(以下简称“隐私政策”)规定和说明了DualuxBT收集、使用和披露个人隐私的政策及流程。
本隐私政策是服务协议的组成部分,下载、安装产品则视为对本隐私政策的同意。不同意本隐私政策的,不得下载、安装和使用产品,或应立即删除。
未得到用户的同意,DualuxBT不会有意将涉及用户个人隐私的内容透露给任何第三方,但本隐私政策另有说明的除外。
一、我们收集哪些信息
@huang5556019
huang5556019 / iosMacros.h
Created May 25, 2016 03:51 — forked from icleversoft/iosMacros.h
iOS Macros
// App Information
#define AppName [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"]
#define AppVersion [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]
#define AppDelegate(type) ((type *)[[UIApplication sharedApplication] delegate])
#define NSAppDelegate(type) ((type *)[[NSApplication sharedApplication] delegate])
#define SharedApp [UIApplication sharedApplication]
#define NSSharedApp [NSApplication sharedApplication]
#define Bundle [NSBundle mainBundle]
#define MainScreen [UIScreen mainScreen]
@huang5556019
huang5556019 / surge_ss.config
Last active September 18, 2016 05:34
surge config
[General]
loglevel = notify
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12,127.0.0.0/24,100.64.0.0/10
bypass-tun = 0.0.0.0/8, 1.0.0.0/9, 1.160.0.0/11, 1.192.0.0/11, 10.0.0.0/8, 14.0.0.0/11, 14.96.0.0/11, 14.128.0.0/11, 14.192.0.0/11, 27.0.0.0/10, 27.96.0.0/11, 27.128.0.0/9, 36.0.0.0/10, 36.96.0.0/11, 36.128.0.0/9, 39.0.0.0/11, 39.64.0.0/10, 39.128.0.0/10, 42.0.0.0/8, 43.224.0.0/11, 45.64.0.0/10, 47.64.0.0/10, 49.0.0.0/9, 49.128.0.0/11, 49.192.0.0/10, 54.192.0.0/11, 58.0.0.0/9, 58.128.0.0/11, 58.192.0.0/10, 59.32.0.0/11, 59.64.0.0/10, 59.128.0.0/9, 60.0.0.0/10, 60.160.0.0/11, 60.192.0.0/10, 61.0.0.0/10, 61.64.0.0/11, 61.128.0.0/10, 61.224.0.0/11, 100.64.0.0/10, 101.0.0.0/9, 101.128.0.0/11, 101.192.0.0/10, 103.0.0.0/10, 103.192.0.0/10, 106.0.0.0/9, 106.224.0.0/11, 110.0.0.0/7, 112.0.0.0/9, 112.128.0.0/11, 112.192.0.0/10, 113.0.0.0/9, 113.128.0.0/11, 113.192.0.0/10, 114.0.0.0/9, 114.128.0.0/11, 114.192.0.0/10, 115.0.0.0/8, 116.0.0.0/8, 117.0.0.0/9, 117.128.0.0/10, 118.0.0.0/11, 118.64.0.0/10, 118.128.0.0
@huang5556019
huang5556019 / 自己总结的iOS、mac开源项目及库
Created September 18, 2015 07:28
自己总结的iOS、mac开源项目及库
# TimLiu-iOS
========
自己总结的iOS、mac开源项目及库。 github排名 [https://github.com/trending](https://github.com/trending),github搜索:[https://github.com/search](https://github.com/search)
### 目录
- [UI](#UI)
- [下拉刷新](#下拉刷新)
- [模糊效果](#模糊效果)
- [AutoLayout](#AutoLayout)
- [富文本](#富文本)
@huang5556019
huang5556019 / gist:28adf8d4de0993b5945c
Created September 7, 2015 06:24
iOS开发教程、博客、工具、文档类站点收集整理
#国外iOS开发教程、博客、工具、文档类站点收集整理
http://www.sososwift.com/ 与Swift相关的博客汇总 ★★★★★
http://www.codingexplorer.com/ 一些不错的iOS博文内容涉及OC、Swift ★★★★★
http://www.ioscreator.com/ 赞赞赞★★★★★
http://www.appcoda.com/ 赞赞赞 ★★★★★
http://shrikar.com/ 个人技术类博客 ★★★★★
http://www.raywenderlich.com/ 这个不用说了吧 ★★★★★
http://swiftdoc.org/ 与Swift文档 ★★★★
http://www.swifttoolbox.io/ Swift开源类库整理 ★★★★★
http://swiftstub.com/ Swift Coding Online ★★★