gitlab

How to resolve “Function calls are not supported in decorators but 'StoreModule' was called.”

て烟熏妆下的殇ゞ 提交于 2020-12-04 05:02:21
问题 I've an angular (7) project. In my package.json, I've a command defined: { "name": "xxx", "version": "0.1.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "build-prod": "ng build --prod", "test": "ng test", "test-ci": "ng test --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox", "e2e-ci": "ng e2e --protractor-config=e2e/protractor.conf.js", "deploy": "firebase deploy --token $FIREBASE_TOKEN --non-interactive", "lint": "ng lint", "e2e": "ng e2e" }, [...] } When I

How to resolve “Function calls are not supported in decorators but 'StoreModule' was called.”

和自甴很熟 提交于 2020-12-04 05:00:14
问题 I've an angular (7) project. In my package.json, I've a command defined: { "name": "xxx", "version": "0.1.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "build-prod": "ng build --prod", "test": "ng test", "test-ci": "ng test --no-watch --no-progress --browsers=ChromeHeadlessNoSandbox", "e2e-ci": "ng e2e --protractor-config=e2e/protractor.conf.js", "deploy": "firebase deploy --token $FIREBASE_TOKEN --non-interactive", "lint": "ng lint", "e2e": "ng e2e" }, [...] } When I

涨姿势了!汇总了拓展视野的几个国外网站

别来无恙 提交于 2020-12-02 22:10:23
Python实战社群 Java实战社群 长按识别下方二维码, 按需求添加 扫码关注添加客服 进Python社群▲ 扫码关注添加客服 进Java社群 ▲ 作者丨青春美好张阿姨 来源丨Java建设者(ID:javajianshe) 程序员的工作和日常生活非常的枯燥,这里给大家推荐一些程序员经常使用的网站,也是我经常上的一些网站,我将会从多个角度、多个层面、分别为你整理归纳这些网站和论坛。 项目类 项目是一个面试官非常看重的点,也是拓展视野、挖掘轮子一个的地方,下面就为你推荐几个程序员都应该 mark 的项目类网站 Github 代码托管 https://github.com 作为开源代码库以及版本控制系统,Github 拥有140多万开发者用户。随着越来越多的应用程序转移到了云上,Github 已经成为了管理软件开发以及发现已有代码的首选方法。代码托管必备。 Github 也有非常多好的项目可以推荐,比如我自己的 github (逃了) https://github.com/crisxuan/bestJavaer 还有其他非常多优秀的 Github ,比如 CS-notes、JavaGuide、mall 商城项目 Gitlab https://about.gitlab.com/ 对于有些人,提到GitHub就会自然的想到Gitlab,Gitlab支持无限的公有项目和私有项目

Gitlab:Peer's Certificate issuer is not recognized

随声附和 提交于 2020-12-02 06:53:27
问题 I get this error on a fresh install of gitlab. The message looks like: fatal: unable to access 'https://gitlab-ci- token:xxxxxxxxxxxxxxxxxxxx@gitlab.example.com/something.git/': Peer's Certificate issuer is not recognized.ERROR: Job failed: exit status 1 Any suggestions on how to fix it? 回答1: Had faced the same problem after enabling verbose mode by following command export GIT_CURL_VERBOSE=1 and found the following issue: NSS error -8179 (SEC_ERROR_UNKNOWN_ISSUER) Found this following site

BUG赏金 | 无效的API授权导致的越权

不打扰是莪最后的温柔 提交于 2020-11-30 20:56:42
图片来源于网络 大家好,我想分享一下我是如何在某邀请项目中发现一个简单的API授权错误的,该错误影响了数千个子域,并允许我在无需用户干预的情况下使用大量不受保护的功能,从帐户删除到接管甚至于泄漏部分信息(姓名,电子邮件和雇主)。 要点: 服务器没有检查(发起请求的)授权token是属于普通用户还是超级用户。 这是一个邀请项目,因此将删除一些敏感信息,我将其称为 target.com 。 我在使用dirsearch对网站进行扫描的同时,通过浏览 academy.target.com 对网站的功能做了大致了解,我注意到一个有趣的端点,如: academy.target.com/api/docs 此类端点就像是个金矿,因为它列出了API文档并指定了请求和响应的结构。 在浏览到端点时,我发现页面与Swagger UI非常相似(尽管此站点未使用swagger)。 它还有一个名为“ Authenticate (验证)”的按钮,单击该按钮可导航到登录页面,但是如果我尝试登录,则会提示“ Account not authorized (账户未授权)”。 有一些有趣的端点,例如: / poweruser / add / poweruser / delete / user / delete / user / create / user / user_logged_in / user / profile

Forking Git repository from GitHub to GitLab

不打扰是莪最后的温柔 提交于 2020-11-30 02:10:46
问题 Suppose that I would like to implement a fix to a project of someone else. That project resides on GitHub. I could create a fork on GitHub and implement the fix. However, I would like to create my fork on GitLab rather than on GitHub. Is that possible? How? I have read this article: https://about.gitlab.com/2016/12/01/how-to-keep-your-fork-up-to-date-with-its-origin/ Anyway, I am not sure what should I do in my case. Should I just create a fork on GitLab of the project from GitHub somehow? Or

Forking Git repository from GitHub to GitLab

陌路散爱 提交于 2020-11-30 02:08:15
问题 Suppose that I would like to implement a fix to a project of someone else. That project resides on GitHub. I could create a fork on GitHub and implement the fix. However, I would like to create my fork on GitLab rather than on GitHub. Is that possible? How? I have read this article: https://about.gitlab.com/2016/12/01/how-to-keep-your-fork-up-to-date-with-its-origin/ Anyway, I am not sure what should I do in my case. Should I just create a fork on GitLab of the project from GitHub somehow? Or

GItlab CI :- How to create the multiple apk(like development, staging and production) in Android using the Gitlab-CI?

吃可爱长大的小学妹 提交于 2020-11-25 03:58:33
问题 I am able to create the single build(apk) like debug.apk using the Gitlab-CI by below approach in Gitlab. Inside my .gitlab-ci.yml , I have done this entry.Please check it once, image: jangrewe/gitlab-ci-android stages: - build before_script: - export GRADLE_USER_HOME=$(pwd)/.gradle - chmod +x ./gradlew cache: key: ${CI_PROJECT_ID} paths: - .gradle/ build: stage: build tags: - dev-ci script: - ./gradlew assembleDebug artifacts: paths: - app/build/outputs/ And I have created the docker image

同一电脑登录多个github账号

≡放荡痞女 提交于 2020-11-24 02:29:22
使用场景 不知道大家有没有遇到这种场景,在公司连着公司gitlab仓库,你自己本人也有个github仓库。我就遇到这种问题, 在一台电脑上同时向gitlab、github分别提交代码。一台电脑可以生成多个sshkey,然后根据sshkey的不同来区分不同的仓库。 也就是一个sshkey 是唯一的,只要保证这个唯一你就可以愉快的提交代码了。 同一用户提交,比如gitlab 和github 用同一个sshkey,只用tonyOffice生成一个sshkey 不同用户提交,比如gitlab 用github 用不同的sshkey,一个tonyOffice生成,一个用tonyHome生成 第一种举例用tonyOffice生成sshkey 比如我要连接github,本来我的电脑连接的是公司的gitlab的仓库。 执行如下命令 ssh-keygen -t rsa -C "tonyOffice" , 这个tonyOffice是别名你可以随便取,生成好之后去 cd /Users/tonyyang/.ssh ,找到对应的目录。 查看 cat id_rsa.pub 将密钥拷贝好。 将密钥粘贴到github的sshkey栏中 此刻你去你自己的github中拷贝需要下载的仓库,拷贝以SSH key方式的路径。 这个时候你idea 里可以通过git下载远程的仓库了。 HTTPS 方式连接

持续集成(一):什么是持续集成(CI)、持续交付(CD)和持续部署(CD)

北战南征 提交于 2020-11-23 08:08:24
持续集成、持续交付和持续部署 持续集成 Continuous Integration:持续集成,简称CI,是软件开发周期的一种实践,把代码仓库(Gitlab或者Github)、构建工具(如Jenkins)和测试工具(SonarQube)集成在一起,频繁的将代码合并到主干然后自动进行构建和测试。简单来说持续集成就是一个监控版本控制系统中代码变化的工具,当发生变化是可以自动编译和测试以及执行后续自定义动作。 其实这里最关键的是自动化测试,这个是最难的,因为测试涉及内容很多。 持续交付 Continuous Delivery:持续交付,简称CD,是在CI的基础进行了扩展,在CI环节完成了软件构建和测试工作并形成了新的版本,那么接下来就要进行交付,而这里的交付并不是交付到生产环境,而是类生产环境(STAGING),我们可以理解为灰度环境或者预发环境,进而接受部分真实流量的测试。如果没有问题的话则通过手动的方式部署到生产环境。如下图所示: 持续部署 Continuous Deployment:持续部署,简称CD,它是在持续交付的基础上打通最后一公里的工作,就是把手动部署到生产环境的方式升级为自动部署。看下图和上图在最后部署到生产环境中的区别。 总结 持续集成、持续交付和持续部署其目的是减少代码改动到投入生产的所需时间,提早发现风险、减少QA的测试时长、减少运维的人工干预