git

2020 年上半年互联网公司"死亡"名单!

﹥>﹥吖頭↗ 提交于 2020-11-26 13:46:06
2020 年上半年互联网公司"死亡"名单! 收录于话题 #乘风破浪的职场,人心险恶的江湖! 17个 点击上方“民工哥技术之路”,选择“设为星标” 回复“1024”获取独家整理的学习资料! 2019年年底的疫情,一直持续到2020年,全国的企业受其影响不小,特别是餐饮与旅游业,冲击更是巨大的。 民工哥,也在老家呆到了3月10号,才回霸都正式复工上班,其它时间都是在家远程办公,因环境、地点的限制多多少少都会影响工作效率。 老家邻居一见到我都调侃道:这个假放的够长的吧,着急了吧!!!!你说能不急吗?上有老下有小,中间还有房贷,三座大山压着,对于一个普通人来说,都是很大的压力,那么对于一个企业(无论大小)压力更是巨大的。 如果说2019年是互联网行业的"寒冬",那么2020年对互联网行业来说,算不算是"至暗时刻"呢????或许只有身处互联网行业的人才能懂得。 从IT桔子官方数据显示来看,截止2020年9月3日,今年总关闭/停业/倒闭的企业963家。从列表数据中可以看出,有的企业刚刚创立几个月的时间就走向了关闭、停业,也有长达几年时间的老牌企业。 在这份列表数据中,有很多名气比较大,或者我们都比较熟悉的企业,比如:OFO小黄车、巢客公寓、友客公寓、万达网络、百程旅行、美团云、兄弟连教育、钱牛牛、人人聚财网、美利金融、美利车金融、铜掌柜、爱贝信息、鼎有财、淘集集等。 更完整的数据

Git branch not returning any results

自古美人都是妖i 提交于 2020-11-26 13:44:27
问题 I'm trying to see what branch I'm on, but its not working... $ git checkout -b test Switched to a new branch 'test' $ git branch $ git branch -a $ 回答1: That's because you have not yet committed anything, when you do git checkout -b test , git modifies content of the .git/HEAD file from ref: refs/heads/master to ref: refs/heads/test , which actually points to nothing. Only after you make a commit will git create the test refs for you and you will find a .git/refs/heads/test file, which

Git branch not returning any results

别等时光非礼了梦想. 提交于 2020-11-26 13:44:07
问题 I'm trying to see what branch I'm on, but its not working... $ git checkout -b test Switched to a new branch 'test' $ git branch $ git branch -a $ 回答1: That's because you have not yet committed anything, when you do git checkout -b test , git modifies content of the .git/HEAD file from ref: refs/heads/master to ref: refs/heads/test , which actually points to nothing. Only after you make a commit will git create the test refs for you and you will find a .git/refs/heads/test file, which

Insight API开源项目分析

隐身守侯 提交于 2020-11-26 13:12:13
首先,在阅读本文以前假设您已经了解比特币Bitcoin基本原理。 Insight API是一个开源基于比特币Bitcoin blockchain的REST风格的API框架。Insight API运行于NodeJS环境,使用LevelDB做数据存储。使用Insight API可以开发基于Bitcoin的应用程序,如获取blockchain信息的钱包。这里我们介绍此刻最新版本2.7,它还有一个前端项目Insight。生产环境运行在这儿。 安装 以Ubuntu为环境。Windows环境问题较多,我们不介绍。它的依赖项目与组件: 第一步:bitcoind 下载安装Bitcoin Node.js v.010.x Node.js NPM 安装node时应该就有了 第二步:获取insight-api $ git clone https://github.com/bitpay/insight-api && cd insight-api 安装依赖组件,从package.json中我们可以看到依赖组件: "bitcore": "git://github.com/bitpay/bitcore.git#4d8af75ae9916984c52ee2eda1870d5980656341", "base58-native": "0.1.2", "async": "*", "leveldown": "*",

git之移除文件

生来就可爱ヽ(ⅴ<●) 提交于 2020-11-26 08:03:47
移除文件 a.从磁盘和暂存区中同时删除 要从 Git 中移除某个文件,就必须要从已跟踪文件清单中移除(确切地说,是从暂存区域移除),然后提交。 可以用 git rm 命令完成此项工作,并连带从工作目录中删除指定的文件,这样以后就不会出现在未跟踪文件清单中了。 结果: Changes not staged for commit: deleted: C.txt 如果删除之前修改过并且已经放到暂存区域的话,则必须要用强制删除选项 -f(译注:即 force 的首字母)。 这是一种安全特性,用于防止误删还没有添加到快照的数据,这样的数据不能被 Git 恢复。 示例 新建文件 D.txt echo 哈哈哈>D.txt 将D.txt添加到工作区 git add D.txt 删除文件 git rm D.txt 发生错误 : error: the following file has changes staged in the index: D.txt (use --cached to keep the file, or -f to force removal) 4.使用 git rm -f D.txt 进行删除 b.把文件从 Git 仓库中删除(亦即从暂存区域移除),但仍然希望保留在当前工作目录中。 换句话说,你想让文件保留在磁盘,但是并不想让 Git 继续跟踪 为达到这一目的,使用 -

scrapyd和scrapyd-client使用教程

一笑奈何 提交于 2020-11-26 07:26:59
原文地址:http://blog.wiseturtles.com/posts/scrapyd.html Tags scrapyd scrapy scrapyd-client By crazygit On 2015-10-29 scrapyd是一个用于部署和运行scrapy爬虫的程序,它允许你通过 JSON API来部署爬虫项目和控制爬虫运行 概览 项目和版本 scrapyd可以管理多个项目,并且每个项目允许有多个版本,但是只有最新的版本会被用来运行爬虫. 最方便的版本管理就是利用 VCS工具来记录你的爬虫代码,版本比较不是简单的通过字母排序,而是通过智能的算法,和 distutils 一样,例如: r10比r9更大. 工作原理 scrapyd是一个守护进程,监听爬虫的运行和请求,然后启动进程来执行它们 启动服务 # 注意,启动scrapyd的目录会保存整个scrapyd运行期间生成的log, item文件,所以请选择合适的位置运行该命令 $ scrapyd 调度爬虫运行 $ curl http://localhost:6800/schedule.json -d project =myproject -d spider =spider2 { "status": "ok", "jobid": "26d1b1a6d6f111e0be5c001e648c57f8" } web接口 http

What does git sync do in VSCode

北城以北 提交于 2020-11-26 04:59:00
问题 What commands are actually run when you Synchronise Changes in Visual Studio Code? 回答1: From the VSCode online help: Given that your repository is connected to some remote and that your checked out branch has an upstream link to a branch in that remote, VS Code offers you useful actions to push, pull and sync that branch ( the latter will run a pull command followed by a push command ). It appears that if you run synchronize changes on a given branch, it will do the following: git pull origin

What does git sync do in VSCode

风格不统一 提交于 2020-11-26 04:58:05
问题 What commands are actually run when you Synchronise Changes in Visual Studio Code? 回答1: From the VSCode online help: Given that your repository is connected to some remote and that your checked out branch has an upstream link to a branch in that remote, VS Code offers you useful actions to push, pull and sync that branch ( the latter will run a pull command followed by a push command ). It appears that if you run synchronize changes on a given branch, it will do the following: git pull origin

libimobiledevice --Mingw32交叉编译

风格不统一 提交于 2020-11-26 04:54:01
本文只描述 windows环境下的使用情况,linux平台基本雷同 。 一、配置编译环境. (1)操作系统 :Windows10 (64bit). (2)类unix环境:Cygwin(64bit) 下载路径: https://www.cygwin.com/setup-x86_64.exe 。 (3)安装Cygwin , 注意:为防止有API Hook的行为导致 Cygwin出现异常,请在干净环境下使用。 流程如下: 网易开源镜像站 : http://mirrors.163.com /,找到cygwin并添加路径 安装 autoconf相关工具 安装mngw32环境 下一步,等待安装完成, 如果要安装cygwin自带的一些bash命令也可以按此方法行事(如:lynx、wget、apt-cyg、cmake等), 二、使用 cygwin自带的 i686-w64-mingw32 编译 libimobiledevice ( https://github.com/libimobiledevice ) 以下工程的 默认安装目录都是在 /usr/local /目录下 , 如需改动可以使用 configure的--prefix 自行配置 编译顺序:(由库之间的依赖性决定) 1、 libzip:由于Cygwin当前版本自带的包对于处理大于2G的文件有bug,所以我们要自己编译安装libzip.  (1

Nikto主动扫描神器!!!

拜拜、爱过 提交于 2020-11-26 04:04:26
Perl语言开发的开源web安全扫描器 Nikto只支持主动扫描:可扫描web服务器类型是不是最新版本(分析先版本与新版相比有哪些漏洞) 针对: 1.软件版本、2.搜索存在安全隐患的文件、3.服务器配置漏洞、4.避免404误判、5.WEB application层面的安全隐患 注意4: 很多服务器不遵守RFC标准,对于不存在的对象返回200响应码    依据响应文件内容判断,不同扩展名的文件404响应内容不同     去除时间信息后的内容取MD5值     -no404 使用后直接向服务器发请求,不会使用404误判,提高性能的同时减去准确性     nikgo -list-plugins查看插件     nikto -update 更新数据库以及插件 或者进入网址下载 http://cirt.net/nikto/UPDATES 注意: 大多数因被墙,无法更新, 可以通过Linux发行版的软件包管理器进行安装。 之后,转到您想要的Nikto存储库并输入(放入“Nikto2”目录): git clone https://github.com/sullo/nikto.git Nikto2 之后,您的nikto.pl将在Nikto2 / program /目录(随意浏览文档目录)。 更新Nikto:只需转到repo(s)中的目录并输入: git pull 可指定多个目标: nikto