├── README.md └── github-toc.php /README.md: -------------------------------------------------------------------------------- 1 | # simple-php-github-toc 2 | 3 | A simple script to create github toc 4 | 5 | 生成 Github Readme 文件 TOC 目录 的简单脚本 6 | 7 | ## Usage - 用法 8 | 9 | 10 | ```shell 11 | $ wget https://raw.githubusercontent.com/xingshaocheng/simple-php-github-toc/master/github-toc.php . 12 | $ php github-toc.php https://github.com/xingshaocheng/architect-awesome/blob/master/README.md 13 | ``` 14 | 15 | 16 | ``` 17 | 18 | * [数据结构](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据结构) 19 | * [队列](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#队列) 20 | * [集合](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#集合) 21 | * [链表、数组](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#链表数组) 22 | * [字典、关联数组](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#字典关联数组) 23 | * [栈](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#栈) 24 | * [树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#树) 25 | * [二叉树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#二叉树) 26 | * [完全二叉树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#完全二叉树) 27 | * [平衡二叉树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#平衡二叉树) 28 | * [二叉查找树(BST)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#二叉查找树bst) 29 | * [红黑树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#红黑树) 30 | * [B-,B+,B*树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#b-bb树) 31 | * [LSM 树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#lsm-树) 32 | * [BitSet](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#bitset) 33 | * [常用算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#常用算法) 34 | * [排序、查找算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#排序查找算法) 35 | * [选择排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#选择排序) 36 | * [冒泡排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#冒泡排序) 37 | * [插入排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#插入排序) 38 | * [快速排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#快速排序) 39 | * [归并排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#归并排序) 40 | * [希尔排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#希尔排序) 41 | * [堆排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#堆排序) 42 | * [计数排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#计数排序) 43 | * [桶排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#桶排序) 44 | * [基数排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#基数排序) 45 | * [二分查找](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#二分查找) 46 | * [Java 中的排序工具](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#java-中的排序工具) 47 | * [布隆过滤器](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#布隆过滤器) 48 | * [字符串比较](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#字符串比较) 49 | * [KPM 算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kpm-算法) 50 | * [深度优先、广度优先](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#深度优先广度优先) 51 | * [贪心算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#贪心算法) 52 | * [回溯算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#回溯算法) 53 | * [剪枝算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#剪枝算法) 54 | * [动态规划](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#动态规划) 55 | * [朴素贝叶斯](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#朴素贝叶斯) 56 | * [推荐算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#推荐算法) 57 | * [最小生成树算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#最小生成树算法) 58 | * [最短路径算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#最短路径算法) 59 | * [并发](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#并发) 60 | * [多线程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#多线程) 61 | * [线程安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#线程安全) 62 | * [一致性、事务](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#一致性事务) 63 | * [事务 ACID 特性](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#事务-acid-特性) 64 | * [事务的隔离级别](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#事务的隔离级别) 65 | * [锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#锁) 66 | * [Java中的锁和同步类](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#java中的锁和同步类) 67 | * [公平锁 & 非公平锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#公平锁--非公平锁) 68 | * [悲观锁 & 乐观锁 & CAS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#悲观锁--乐观锁--cas) 69 | * [ABA 问题](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#aba-问题) 70 | * [CopyOnWrite容器](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#copyonwrite容器) 71 | * [RingBuffer](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ringbuffer) 72 | * [可重入锁 & 不可重入锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#可重入锁--不可重入锁) 73 | * [互斥锁 & 共享锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#互斥锁--共享锁) 74 | * [死锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#死锁) 75 | * [操作系统](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#操作系统) 76 | * [计算机原理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#计算机原理) 77 | * [进程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#进程) 78 | * [线程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#线程) 79 | * [协程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#协程) 80 | * [Linux](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#linux) 81 | * [设计模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#设计模式) 82 | * [设计模式的六大原则](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#设计模式的六大原则) 83 | * [23种常见设计模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#23种常见设计模式) 84 | * [应用场景](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#应用场景) 85 | * [单例模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#单例模式) 86 | * [责任链模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#责任链模式) 87 | * [MVC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#mvc) 88 | * [IOC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ioc) 89 | * [AOP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#aop) 90 | * [UML](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#uml) 91 | * [微服务思想](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#微服务思想) 92 | * [康威定律](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#康威定律) 93 | * [运维 & 统计 & 技术支持](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#运维--统计--技术支持) 94 | * [常规监控](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#常规监控) 95 | * [APM](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#apm) 96 | * [统计分析](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#统计分析) 97 | * [持续集成(CI/CD)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#持续集成cicd) 98 | * [Jenkins](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#jenkins) 99 | * [环境分离](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#环境分离) 100 | * [自动化运维](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#自动化运维) 101 | * [Ansible](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ansible) 102 | * [puppet](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#puppet) 103 | * [chef](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#chef) 104 | * [测试](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#测试) 105 | * [TDD 理论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tdd-理论) 106 | * [单元测试](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#单元测试) 107 | * [压力测试](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#压力测试) 108 | * [全链路压测](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#全链路压测) 109 | * [A/B Test](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ab-test) 110 | * [虚拟化](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#虚拟化) 111 | * [KVM](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kvm) 112 | * [Xen](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#xen) 113 | * [OpenVZ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#openvz) 114 | * [容器技术](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#容器技术) 115 | * [Docker](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#docker) 116 | * [云技术](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#云技术) 117 | * [OpenStack](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#openstack) 118 | * [DevOps](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#devops) 119 | * [文档管理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#文档管理) 120 | * [中间件](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#中间件) 121 | * [Web Server](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#web-server) 122 | * [Nginx](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#nginx) 123 | * [OpenResty](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#openresty) 124 | * [Apache Httpd](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#apache-httpd) 125 | * [Tomcat](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tomcat) 126 | * [架构原理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构原理) 127 | * [调优方案](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#调优方案) 128 | * [Jetty](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#jetty) 129 | * [缓存](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#缓存) 130 | * [本地缓存](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#本地缓存) 131 | * [客户端缓存](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#客户端缓存) 132 | * [Memcached](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#memcached) 133 | * [Redis](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#redis) 134 | * [架构](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构) 135 | * [回收策略](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#回收策略) 136 | * [Tair](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tair) 137 | * [消息队列](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#消息队列) 138 | * [消息总线](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#消息总线) 139 | * [消息的顺序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#消息的顺序) 140 | * [RabbitMQ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rabbitmq) 141 | * [RocketMQ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rocketmq) 142 | * [ActiveMQ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#activemq) 143 | * [Kafka](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kafka) 144 | * [Redis 消息推送](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#redis-消息推送) 145 | * [ZeroMQ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#zeromq) 146 | * [定时调度](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#定时调度) 147 | * [单机定时调度](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#单机定时调度) 148 | * [分布式定时调度](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式定时调度) 149 | * [RPC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rpc) 150 | * [Dubbo](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#dubbo) 151 | * [Thrift](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#thrift) 152 | * [gRPC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#grpc) 153 | * [数据库中间件](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据库中间件) 154 | * [Sharding Jdbc](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#sharding-jdbc) 155 | * [日志系统](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#日志系统) 156 | * [日志搜集](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#日志搜集) 157 | * [配置中心](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#配置中心) 158 | * [API 网关](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#api-网关) 159 | * [网络](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#网络) 160 | * [协议](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#协议) 161 | * [OSI 七层协议](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#osi-七层协议) 162 | * [TCP/IP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tcpip) 163 | * [HTTP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#http) 164 | * [HTTP2.0](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#http20) 165 | * [HTTPS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#https) 166 | * [网络模型](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#网络模型) 167 | * [Epoll](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#epoll) 168 | * [NIO](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#nio) 169 | * [kqueue](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kqueue) 170 | * [连接和短连接](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#连接和短连接) 171 | * [框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#框架) 172 | * [零拷贝(Zero-copy)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#零拷贝zero-copy) 173 | * [序列化(二进制协议)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#序列化二进制协议) 174 | * [Hessian](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hessian) 175 | * [Protobuf](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#protobuf) 176 | * [数据库](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据库) 177 | * [基础理论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#基础理论) 178 | * [数据库设计的三大范式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据库设计的三大范式) 179 | * [MySQL](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#mysql) 180 | * [原理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#原理) 181 | * [InnoDB](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#innodb) 182 | * [优化](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#优化) 183 | * [索引](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#索引) 184 | * [聚集索引, 非聚集索引](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#聚集索引-非聚集索引) 185 | * [复合索引](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#复合索引) 186 | * [自适应哈希索引(AHI)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#自适应哈希索引ahi) 187 | * [explain](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#explain) 188 | * [NoSQL](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#nosql) 189 | * [MongoDB](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#mongodb) 190 | * [Hbase](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hbase) 191 | * [搜索引擎](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#搜索引擎) 192 | * [搜索引擎原理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#搜索引擎原理) 193 | * [Lucene](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#lucene) 194 | * [Elasticsearch](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#elasticsearch) 195 | * [Solr](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#solr) 196 | * [sphinx](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#sphinx) 197 | * [性能](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#性能) 198 | * [性能优化方法论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#性能优化方法论) 199 | * [容量评估](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#容量评估) 200 | * [CDN 网络](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#cdn-网络) 201 | * [连接池](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#连接池) 202 | * [性能调优](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#性能调优) 203 | * [流式计算](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#流式计算) 204 | * [Storm](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#storm) 205 | * [Flink](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#flink) 206 | * [Kafka Stream](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kafka-stream) 207 | * [应用场景](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#应用场景-1) 208 | * [Hadoop](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hadoop) 209 | * [HDFS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hdfs) 210 | * [MapReduce](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#mapreduce) 211 | * [Yarn](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#yarn) 212 | * [Spark](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#spark) 213 | * [安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#安全) 214 | * [web 安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#web-安全) 215 | * [XSS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#xss) 216 | * [CSRF](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#csrf) 217 | * [SQL 注入](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#sql-注入) 218 | * [Hash Dos](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hash-dos) 219 | * [脚本注入](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#脚本注入) 220 | * [漏洞扫描工具](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#漏洞扫描工具) 221 | * [验证码](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#验证码) 222 | * [DDoS 防范](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ddos-防范) 223 | * [用户隐私信息保护](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#用户隐私信息保护) 224 | * [加密解密](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#加密解密) 225 | * [对称加密](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#对称加密) 226 | * [哈希算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#哈希算法) 227 | * [非对称加密](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#非对称加密) 228 | * [服务器安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#服务器安全) 229 | * [数据安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据安全) 230 | * [数据备份](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据备份) 231 | * [网络隔离](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#网络隔离) 232 | * [内外网分离](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#内外网分离) 233 | * [登录跳板机](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#登录跳板机) 234 | * [授权](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#授权) 235 | * [RBAC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rbac) 236 | * [OAuth2.0](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#oauth20) 237 | * [常用开源框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#常用开源框架) 238 | * [开源协议](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#开源协议) 239 | * [日志框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#日志框架) 240 | * [Log4j、Log4j2](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#log4jlog4j2) 241 | * [Logback](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#logback) 242 | * [ORM](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#orm) 243 | * [网络框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#网络框架) 244 | * [Web 框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#web-框架) 245 | * [Spring 家族](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#spring-家族) 246 | * [工具框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#工具框架) 247 | * [分布式设计](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式设计) 248 | * [扩展性设计](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#扩展性设计) 249 | * [稳定性 & 高可用](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#稳定性--高可用) 250 | * [硬件负载均衡](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#硬件负载均衡) 251 | * [软件负载均衡](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#软件负载均衡) 252 | * [限流](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#限流) 253 | * [应用层容灾](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#应用层容灾) 254 | * [跨机房容灾](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#跨机房容灾) 255 | * [容灾演练流程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#容灾演练流程) 256 | * [平滑启动](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#平滑启动) 257 | * [数据库扩展](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据库扩展) 258 | * [读写分离模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#读写分离模式) 259 | * [分片模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分片模式) 260 | * [服务治理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#服务治理) 261 | * [服务注册与发现](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#服务注册与发现) 262 | * [服务路由控制](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#服务路由控制) 263 | * [分布式一致](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式一致) 264 | * [CAP 与 BASE 理论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#cap-与-base-理论) 265 | * [分布式锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式锁) 266 | * [分布式一致性算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式一致性算法) 267 | * [PAXOS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#paxos) 268 | * [Zab](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#zab) 269 | * [Raft](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#raft) 270 | * [Gossip](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#gossip) 271 | * [两阶段提交、多阶段提交](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#两阶段提交多阶段提交) 272 | * [幂等](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#幂等) 273 | * [分布式一致方案](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式一致方案) 274 | * [分布式 Leader 节点选举](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式-leader-节点选举) 275 | * [TCC(Try/Confirm/Cancel) 柔性事务](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tcctryconfirmcancel-柔性事务) 276 | * [分布式文件系统](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式文件系统) 277 | * [唯一ID 生成](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#唯一id-生成) 278 | * [全局唯一ID](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#全局唯一id) 279 | * [一致性Hash算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#一致性hash算法) 280 | * [设计思想 & 开发模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#设计思想--开发模式) 281 | * [DDD(Domain-driven Design - 领域驱动设计)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ddddomain-driven-design---领域驱动设计) 282 | * [命令查询职责分离(CQRS)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#命令查询职责分离cqrs) 283 | * [贫血,充血模型](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#贫血充血模型) 284 | * [Actor 模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#actor-模式) 285 | * [响应式编程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#响应式编程) 286 | * [DODAF2.0](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#dodaf20) 287 | * [Serverless](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#serverless) 288 | * [项目管理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#项目管理) 289 | * [架构评审](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构评审) 290 | * [重构](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#重构) 291 | * [代码规范](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#代码规范) 292 | * [RUP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rup) 293 | * [看板管理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#看板管理) 294 | * [SCRUM](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#scrum) 295 | * [极限编程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#极限编程) 296 | * [敏捷开发](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#敏捷开发) 297 | * [结对编程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#结对编程) 298 | * [通用业务术语](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#通用业务术语) 299 | * [技术趋势](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#技术趋势) 300 | * [架构师素质](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构师素质) 301 | * [团队管理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#团队管理) 302 | * [招聘](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#招聘) 303 | * [资讯](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#资讯) 304 | * [行业资讯](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#行业资讯) 305 | * [公众号列表](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#公众号列表) 306 | * [博客](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#博客) 307 | * [团队博客](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#团队博客) 308 | * [个人博客](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#个人博客) 309 | * [综合门户、社区](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#综合门户社区) 310 | * [问答、讨论类社区](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#问答讨论类社区) 311 | * [行业数据分析](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#行业数据分析) 312 | * [专项网站](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#专项网站) 313 | * [其他类](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#其他类) 314 | * [推荐参考书](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#推荐参考书) 315 | * [在线电子书](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#在线电子书) 316 | * [纸质书](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#纸质书) 317 | * [开发方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#开发方面) 318 | * [架构方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构方面) 319 | * [技术管理方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#技术管理方面) 320 | * [基础理论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#基础理论-1) 321 | * [工具方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#工具方面) 322 | * [大数据方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#大数据方面) 323 | * [技术资源](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#技术资源) 324 | * [开源资源](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#开源资源) 325 | * [手册、文档、教程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#手册文档教程) 326 | * [在线课堂](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#在线课堂) 327 | * [会议、活动](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#会议活动) 328 | * [常用APP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#常用app) 329 | * [找工作](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#找工作) 330 | * [工具](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#工具) 331 | * [代码托管](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#代码托管) 332 | * [文件服务](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#文件服务) 333 | * [综合云服务商](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#综合云服务商) 334 | 335 | ``` 336 | -------------------------------------------------------------------------------- /github-toc.php: -------------------------------------------------------------------------------- 1 | /iUs", $content, $anchor_arr); 17 | if(count($anchor_arr) > 0){ 18 | return $anchor_arr[1][0]; 19 | } 20 | return ""; 21 | } 22 | 23 | function get_title($content){ 24 | preg_match_all("/a\>(.*)$/iUs", $content, $title_arr); 25 | if(count($title_arr) > 0){ 26 | return trim($title_arr[1][0]); 27 | } 28 | return ""; 29 | } 30 | 31 | $content = file_get_contents($url); 32 | 33 | preg_match_all("//iUs", $content, $article); 34 | 35 | $article_html = $article[0][0]; 36 | 37 | preg_match_all("/(.*)<\/h[1-6]{1}>/iUs", $article_html, $each_head); 38 | 39 | $len = count($each_head[0]); 40 | for($i = 0;$i < $len; $i++){ 41 | $level = $each_head[1][$i]; 42 | $each_content = $each_head[2][$i]; 43 | $anchor = get_anchor($each_content); 44 | $title = get_title($each_content); 45 | echo str_repeat("\t",($level-1)),"* ","[${title}](${url}${anchor})\n"; 46 | } 47 | 48 | echo "\n TOC generated by [simple-php-github-toc](https://github.com/xingshaocheng/simple-php-github-toc) \n\n "; 49 | --------------------------------------------------------------------------------