Drone

那些你不知道运用Javascript能做出的惊人技术

非 Y 不嫁゛ 提交于 2020-01-07 01:18:09
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 自2009年Node.js问世以来,JavaScript的用途便不再局限于编写浏览器脚本,Node.js使它可以在服务端运行。不知是不是受到Node.js的启发,如今有很多技术拓展了JavaScript的用途,JS的新鲜玩法有很多,本文将给大家介绍其中最酷的5个惊人技术。 一、JavaScript控制机器人   最近越来越多的开发者开始折腾硬件,使用类似Arduino这样的单片机开发板来设计机器人。有很多JavaScript社区热衷于机器人的制作,贡献了很多不错的技术。Nodebots就是其中之一。它举办了很多汇集了全世界各地开发者的集会,便于他们交流经验、互相学习,共同探索更酷的玩法。 二、JS控制无人机   如果机器人不是你的菜,但是热衷于用JavaScript来控制现实世界的东西的话,那么你可能会对NodeCopter感兴趣。NodeCopter是一个开发者的集会,汇集了多个热衷于Parrot 2.0无人机的开发者团体。用JavaScript来控制无人机并不难,只需要在NPM里下载ar-drone包,编写几行代码,你的无人机就可以上天啦。 三、虚拟现实   虚拟现实这么酷的技术也能用JavaScript来实现?当然!你可能觉得设计出适用于VR的3D图像非常复杂,实则不然。开源框架A

Creating spark cluster with drone.yml not working

六月ゝ 毕业季﹏ 提交于 2019-12-22 01:31:44
问题 I have docker-compose.yml with below image and configuration version: '3' services: spark-master: image: bde2020/spark-master:2.4.4-hadoop2.7 container_name: spark-master ports: - "8080:8080" - "7077:7077" environment: - INIT_DAEMON_STEP=setup_spark spark-worker-1: image: bde2020/spark-worker:2.4.4-hadoop2.7 container_name: spark-worker-1 depends_on: - spark-master ports: - "8081:8081" environment: - "SPARK_MASTER=spark://spark-master:7077" here the docker-compose up log ---> https://jpst.it

Drone.io build locally without pushing to the repo

对着背影说爱祢 提交于 2019-12-14 02:12:19
问题 io team and lovers. I tested Drone.io in a locally way and I like it. Is there a way to use Drone.io locally without pushing to a repository?. I would like to use it on developer environments, that means the developers can test their code before pushing to the repository. It's possible to do that? 回答1: You can run: drone exec It requires the drone cli tools. 回答2: Though you can run drone exec to run the build locally it does not make sense to do so and not having a CI server. The nature of a

Building privately-hosted base image [drone.io]

天大地大妈咪最大 提交于 2019-12-13 03:46:59
问题 I am trying to deploy a web service using Drone and the docker plugin. My image takes about an hour to build, due to a number of large dependencies. To speed up build times, I would like to place a number of my service's dependencies (that are not going to change often) in a base image, and just build my actual code (a python flask app) on top of this base when deploying. I am hosting the base image in a private repository, with the following line in my Dockerfile: FROM: my_private_repo.com

how to configure hard memory limit for builds in drone.io

◇◆丶佛笑我妖孽 提交于 2019-12-11 16:03:35
问题 Perhaps I am missing it, but I see no method to control the the hard memory limit for any given build (I have builds being murdered because of it). Is the build memory limit based on the build params supplied by the client (this means a single client can bring down everything) or is there someplace I can configure the service to only allow 512mb (for example) per build? 回答1: You can limit the max amount of memory per-container by setting the global DRONE_LIMIT_MEM variable (with the server).

Gogs + Drone getsockopt: connection refused

孤者浪人 提交于 2019-12-11 05:08:25
问题 In the Gogs/webhooks interface when i click the test delivery button i got this error; Delivery: Post http://localhost:8000/hook?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoidG9tL2Ryb255IiwidHlwZSI6Imhvb2sifQ.UZdOVW2IdiDcLQzKcnlmlAxkuA8GTZBH634G0K7rggI: dial tcp [::1]:8000: getsockopt: connection refused This is my docker-compose.yml file version: '2' services: gogs: image: gogs/gogs ports: - 3000:3000 - 22:22 links: - mysql mysql: image: mysql expose: - 3306 environment: -

GOGS secret key

坚强是说给别人听的谎言 提交于 2019-12-06 16:04:57
I'm trying to integrate the Drone CI server with the GOGS Git server. There's a pretty clear document on how to do so here: http://readme.drone.io/setup/config/gogs/ ...which indicates I need the following configuration: [gogs] url = "http://gogs.drone.io" secret = "c0aaff74c060ff4a950d" Where does this secret come from? I can't seem to find it in GOGS anywhere. VonC That secret key " c0aaff74c060ff4a950d " seems to be the same all over the doc. In config/github , you can see that key generated through a registration process. Similarly, the OP Steve comments : looks like tokens can be

how to create a drone secret file?

喜夏-厌秋 提交于 2019-12-05 00:48:01
问题 the docs show how to set a file to a secret envvar http://readme.drone.io/0.5/secrets/ is there a convenient way to do the opposite? e.g. have this ssh key be available in .ssh/id_rsa with all the correct permissions. And by "convienient" I obviously mean without having to type mkdir , > or chmod 回答1: If you want to use an ssh key as part of your build, you can add the ssh key to the secret store using the following command: drone secrets add --image=<image> <repo> SSH_KEY @/path/to/.ssh/id

how to create a drone secret file?

余生颓废 提交于 2019-12-03 15:41:57
the docs show how to set a file to a secret envvar http://readme.drone.io/0.5/secrets/ is there a convenient way to do the opposite? e.g. have this ssh key be available in .ssh/id_rsa with all the correct permissions. And by "convienient" I obviously mean without having to type mkdir , > or chmod Brad Rydzewski If you want to use an ssh key as part of your build, you can add the ssh key to the secret store using the following command: drone secrets add --image=<image> <repo> SSH_KEY @/path/to/.ssh/id_rsa Note that the @ notation is similar to curl. The reason this feature exists is because

Blackarch工具学习记录--工具分类

大兔子大兔子 提交于 2019-11-29 04:53:15
一、起因 Blackarch是一个基于archlinux集成了安全工具集的linux发行版。我也是因为遇到一个系统因为存在漏洞需要重现,接解到这个linux发行版。也在一点一点的学习,因此将学习的过程记录下来,方便自已也方便他人。所学习的东西,也是结合自已的知识和理解,如果有不当之处,还请留言指正,不胜感谢! 二、工具分类 按照发行版的资料描述,blackarch中集成了1900种安全工具(没想到有这么多)。安照系统中的工具来看,作者对工作都进行了分类,但是分类都是英文的,没头绪,不知道从哪下手啊!看来第一步,是需要先把工具的分类搞清楚,没办法英语水平不行,还是一查一下比较靠谱! anti-forensic == 反取证 automation == 自动化 automobile == 自动(移动网络),百度翻译是汽车,但个人理解应该是移动网络类顺,暂时先记为这样。 backdoor == 后门类 binary == 二进制类,这个概念也不清楚,应该是针对二进制类文件时行分析的工具分类吧,暂时先记为这样。 forensic == 取证类, 这个与第一个相反,应该是取证类的 bluetooth == 蓝牙类, 这个应该是与蓝牙相关的工具分类 code-audit == 代码审计类,应该代码审查,审计类的工具 cracker == 破解类 crypto == 密码类