ptt-alertor / ptt-alertor Goto Github PK
View Code? Open in Web Editor NEW:loudspeaker: Ptt 文章通知機器人!Notify Ptt Article in Realtime
Home Page: https://pttalertor.dinolai.com
License: Apache License 2.0
:loudspeaker: Ptt 文章通知機器人!Notify Ptt Article in Realtime
Home Page: https://pttalertor.dinolai.com
License: Apache License 2.0
With Terraform remote config, Terragrunt, S3, Dynamo DB.
GET
PUT
POST
DELETE(for security issue, abandon this)
https://www.golang-book.com/books/intro/10
Go Concurrency Patterns: Timing out, moving on
https://blog.golang.org/go-concurrency-patterns-timing-out-and
Visualizing Concurrency in Go
https://divan.github.io/posts/go_concurrency_visualize/
Go Currency Pattern
run every one minute
go run github.com\liam-lai\ptt-alertor\job\main.go
Boy-Girl there is a '-'. So register failed.
As title
https://developers.line.me/messaging-api/overview
Line Messaging API docs
https://devdocs.line.me/en/#messaging-api
Line Bot & Official Account Administrator
https://business.line.me/accounts
Try it.
Deploying Go servers with Docker
https://blog.golang.org/docker
Docker — 从入门到实践
https://yeasy.gitbooks.io/docker_practice/content/
Uninstall
https://golang.org/doc/install#uninstall
Install
https://golang.org/dl/
Use the Travis CI to GET S3 configure file to Docker directory.
Configure file include:
SNS account/password
Redis account/password
ECS, VPC, Security Group, AutoScaling, Task, Load Balance
How to save
AWS Certificate Manager – Deploy SSL/TLS-Based Apps on AWS
https://aws.amazon.com/blogs/aws/new-aws-certificate-manager-deploy-ssltls-based-apps-on-aws/
AWS Certificate Manager
https://aws.amazon.com/certificate-manager/
AWS run docker container
[爬蟲實戰] 如何告訴PTT我已滿18並順利抓取八卦版的文章 ?
https://www.youtube.com/watch?v=G5MDpnGsE-k
Offcial Website
https://www.mailgun.com/
mailgun for golang
https://github.com/mailgun/mailgun-go
Get Started
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/getting-started.html
AWS SDK for GO API, SES section
http://docs.aws.amazon.com/sdk-for-go/api/service/ses/#example_SES_SendEmail
Amazon AWS Simple Email Service (SES) client for Go
https://github.com/sourcegraph/go-ses
Travis CI with AWS CodeDeploy
https://docs.travis-ci.com/user/deployment/codedeploy/
Write by Autohotkey
Reference
https://github.com/julienschmidt/httprouter#basic-authentication
Logstash -> ElasticSearch -> Kibana
https://www.elastic.co/products
Issue: cronjob error message:
ls
-rw-r--r-- 1 root root 2 Feb 20 04:03 cron.log
root@6bb90a1bb415:/var/log# tail -f cron.log
tail: unrecognized file system type 0x794c7630 for 'cron.log'. please report this to [email protected]. reverting to polling
a fixed hostname or IP to attach instances
It's a problem has to be discussed.
if we create multi app's container, All of them will execute main.go and run the code below, it will send duplicate email many times.
Golang Client
https://redis.io/clients#go
laiyichengdeMacBook-Pro:1.8 icbruce$ docker run --name go3 -d -p 8080:8080 icbruce
ca4d4202d374e011546a54a63d59296ed8a76d1dddf9302e81fbf5f37a962047
laiyichengdeMacBook-Pro:1.8 icbruce$ docker exec -it go3 bash
Error response from daemon: Container ca4d4202d374e011546a54a63d59296ed8a76d1dddf9302e81fbf5f37a962047 is not running
<div>Icons made by <a href="http://www.flaticon.com/authors/madebyoliver" title="Madebyoliver">Madebyoliver</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>
Flow
Semantic UI
http://semantic-ui.com/
Bootstrap: UI Framework
http://getbootstrap.com/
Debugging Go code using VS Code
https://github.com/Microsoft/vscode-go/wiki/Debugging-Go-code-using-VS-Code
laiyichengdeMacBook-Pro:ptt-alertor icbruce$ docker stats
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Create an organization for us and transfer this repo to there?
https://help.github.com/articles/transferring-a-repository-owned-by-your-personal-account/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.