Home

UIScrollView

UIScrollView 先设置约束 在Xcode 11, ScrollView 提供了Content Layout Guide 和 Frame Layout Guide, 默认打开 , 可以在Size Inspector中关闭Content Layout Guides Content Layout Guide 和 Frame Layout Guide Frame Layout guide: 需要设置与父视图的约束 position (x, y) and size (width, height) Content Layout guide: 需要设置内容的大小约束 1. 拖个UIView到UIScrollView中, View到Content Layout gu...

Read more

UINavigationController 背景设置

UINavigationController 背景设置 # ios 13 前 self.navigationBar.barTintColor = C_THEME_2;//#2266EF; self.navigationBar.backgroundColor = C_THEME_2; self.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]; self.navigationBar.tintColor = [UIColor whiteColor]; self.navigatio...

Read more

Linux 常用命令

Linux 常用命令 ls cd pwd mkdir rm rmdir mv touch cat nl more less head tail locate find whereis which tar gzip chmod chgrp chown df du top free vmstat iostat lsof ifconfig ping traceroute netstat ss telnet rcp scp diff date ln cal grep wc ps watch at kill killall crontab wget file cksum, md5sum, sha1sum ld read expr ldd alias, unalias rz, sz sed un...

Read more

RESTful API

RESTful API Reference REST APIs RESTful Web Services - Introduction What is REST

Read more

OAuth 2.0

OAuth 2.0 用户通过服务器授于第三方服务访问用户自己数据的权限. Reference OAuth 2.0 的一个简单解释 OAuth 2.0 的四种方式

Read more

Shodan

Shodan Shodan搜索设备 * webcam * port:22 * net:61.135.169.121 * city:wuhan Command Line Interface * shodan host <ip> * shodan info * shodan myip * shodan honeyscore Python-shodan Reference Shodan Shodan Help Center python-shodan shodan-api

Read more

Git 信息泄漏

Git 信息泄漏 原理 1. 解析.git/index文件, 找到工程中所有的: (文件名, 文件sha1) 2. 去.git/objects/文件夹下下载对应的文件 3. zlib解压文件, 按原始的目录结构写入源代码 Reference lijiejie/GitHack

Read more

CDN 介绍

CDN 介绍 CDN的全称是Content Delivery Network,即内容分发网络。CDN是构建在现有网络基础之 上的智能虚拟网络,依靠部署在各地的边缘服务器,通过中心平台的负载均衡、内容分发、 调度等功能模块,使用户就近获取所需内容,降低网络拥塞,提高用户访问响应速度和命 中率。CDN的关键技术主要有内容存储和分发技术。 不同地区PING 网络 http://ping.chinaz.com/ https://viewdns.info/ ### Reference

Read more