pushover

如何为你的作品选择一份许可证

偶尔善良 提交于 2020-08-10 17:57:22
前言 人们经常问我们,为他们的项目向他们推荐什么许可证。我们过去已经公开地写了关于这个的文章,但信息在不同的文章、FAQ 条目和许可证注释之间分散开了。这篇文章收集所有的信息至一个单一的来源中,让人们更简单地跟着做并可以参考。 这些推荐是用于那些被设计来做实用工作的作品的。这包括了软件、文档和一些其他的东西。艺术作品、以及表达观点的作品,则不一样;GNU项目对它们该怎么发布没有通用的立场,除了它们应该在没有非自由软件的情况下可以使用(特别是 没有DRM )。然而,对于和某个程序在一起的艺术作品,你可能需要听从这些推荐。 这些推荐可以用于许可一个你创建的作品——不论是已有作品的修改版还是原创作品。它们不能解决结合已有不同许可证的材料的问题。如果你在寻求那方面的帮助,请查看 GPL FAQ 。 在你看了我们的推荐之后,如果你想要建议,你可以写邮件到 <licensing@gnu.org> 。注意许可证小组的回信可能需要几个星期;如果你在一个月内没有得到回复,请再写一次。 贡献到一个已有的项目 当你贡献到一个已有的项目时,你通常应该在和原作品相同的许可证之下发布你修改过的版本。和项目的维护者合作是件好事,而为你的修改使用不同的许可证经常会让合作变得困难。你只应在有强大理由支持的时候才那样做。 一种可以合理使用不同许可证的情形是,你在非 copyleft 许可证下的作品上做出了主要修改

Python实现发票自动校核微信机器人的方法

梦想与她 提交于 2020-08-07 06:37:23
制作初衷: 外地开了票到公司后发现信息有错误,无法报销; 公司的行政和财务经常在工作日被问及公司开票信息,影响心情和工作; 引入相应的专业APP来解决发票问题对于一般公司成本较高; 看到朋友孟要早睡写过脚本来解决这个问题,但因为公司场景不相同,无法复用,所以新写了一个 本代码使用简单的封装方法,并做了比较走心的注释,希望能给初学Python的小伙伴提供一些灵感,也能让有实际需求的人可以快速修改、使用。 源码地址: https://github.com/yc2code/WechatInvoiceParser P.S. 工具基于微信网页版,因为微信官方对于账号有限制,新建的账号可能无法使用,会报: KeyError: 'pass_ticket' ,如图: 所以工具只能使用注册时间较早的账号 发票自动校核微信机器人代码部分 1. 工具文件 – Utils 包含三个部分:发票校核类 Invoice、解析数据类 DataParser 和推送日志类 Pushover Invoice 调用的百度API,上传图片信息,得到解析数据; DataParser 对得到的解析数据进行整理,得到发送给用户的信息; Pushover 出现调用问题时,第一时间相关信息推送到维护者的设备上。 # -*- coding: utf-8 -*- # Utils.py import base64 import csv

Python实现发票自动校核微信机器人的方法

最后都变了- 提交于 2020-08-05 12:13:14
制作初衷: 外地开了票到公司后发现信息有错误,无法报销; 公司的行政和财务经常在工作日被问及公司开票信息,影响心情和工作; 引入相应的专业APP来解决发票问题对于一般公司成本较高; 看到朋友孟要早睡写过脚本来解决这个问题,但因为公司场景不相同,无法复用,所以新写了一个 本代码使用简单的封装方法,并做了比较走心的注释,希望能给初学Python的小伙伴提供一些灵感,也能让有实际需求的人可以快速修改、使用。 源码地址: https://github.com/yc2code/WechatInvoiceParser P.S. 工具基于微信网页版,因为微信官方对于账号有限制,新建的账号可能无法使用,会报: KeyError: 'pass_ticket' ,如图: 所以工具只能使用注册时间较早的账号 发票自动校核微信机器人代码部分 1. 工具文件 – Utils 包含三个部分:发票校核类 Invoice、解析数据类 DataParser 和推送日志类 Pushover Invoice 调用的百度API,上传图片信息,得到解析数据; DataParser 对得到的解析数据进行整理,得到发送给用户的信息; Pushover 出现调用问题时,第一时间相关信息推送到维护者的设备上。 # -*- coding: utf-8 -*- # Utils.py import base64 import csv

curl -F line break not interpreted correctly

我的梦境 提交于 2019-12-21 17:26:58
问题 I'm trying to send a notification via pushover using curl in a bash script. I cannot get curl -F to interpret the line break correctly though. curl -s \ -F "token=TOKEN" \ -F "user=USER" \ -F "message=Root Shell Access on HOST \n `date` \n `who` " \ https://api.pushover.net/1/messages.json > NUL I've tried: \n \\\n %A0 I'd rather push the message out directly, not through a file. 回答1: curl doesn't interpret backslash escapes, so you have to insert an actual newline into the argument which

curl -F line break not interpreted correctly

落爺英雄遲暮 提交于 2019-12-04 10:52:47
I'm trying to send a notification via pushover using curl in a bash script. I cannot get curl -F to interpret the line break correctly though. curl -s \ -F "token=TOKEN" \ -F "user=USER" \ -F "message=Root Shell Access on HOST \n `date` \n `who` " \ https://api.pushover.net/1/messages.json > NUL I've tried: \n \\\n %A0 I'd rather push the message out directly, not through a file. curl doesn't interpret backslash escapes, so you have to insert an actual newline into the argument which curl sees. In other words, you have to get the shell ( bash in this case) to interpret the \n , or you need to

Best way to implement push notifications with Firebase

可紊 提交于 2019-11-30 12:28:00
问题 I am an iPhone app coder, and I'm using Firebase as my backend server. Firebase doesn't support Push Notifications, so I've been trying to figure out how to include them in my app. I've read this question: How to send an alert message to a special online user with firebase but it seems like more of a work-around than an actual solution. Is there an answer on how to do this? Are there third parties or APIs that might seemlessly implement this functionality? One solution I have tried is to use

Best way to implement push notifications with Firebase

蓝咒 提交于 2019-11-30 03:52:33
I am an iPhone app coder, and I'm using Firebase as my backend server. Firebase doesn't support Push Notifications, so I've been trying to figure out how to include them in my app. I've read this question: How to send an alert message to a special online user with firebase but it seems like more of a work-around than an actual solution. Is there an answer on how to do this? Are there third parties or APIs that might seemlessly implement this functionality? One solution I have tried is to use Zapier to connect Firebase to Pushover. At this point, I've been able to observe events in the app that