-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated away from using lein-env parameters in favor of lein-environ plugin (#56) Renamed snapshots to higlights Imported join Upgraded dependencies, added lein plugin Suggest configurable parameters Rename list symbol Make arguments optional when none is required Renamed aggregate to members list Updated korma (SQL library) Migrated away from using lein-env parameters in favor of lein-environ plugin Print stack trace in debug mode only Upgraded all deps Move dependencies links to markdown document Updated tests workflow Removed distributed lein-env examples Removed extra step dedicated to password placeholder substitution Revised git exclude rules Removed org.slf4j/slf4j-simple dependency Revised dependencies reference doc Exported Timbre vars Removed unused import Use timbre error Configured Timbre vars Replaced logging library Preserve log capture Improve throttling (#58) Added documentation about database requirements Stop copying lein-env configuration file (#59) Bugfix: Caught rate limite exceeded exception earlier on (#60) Bugfix: Caught bad authentication exception (#61)
- Loading branch information
1 parent
c6ad5aa
commit 66f709e
Showing
43 changed files
with
383 additions
and
335 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
DEBUG=1 | ||
WORKER='highlights.example.org' | ||
WORKER_UID=1000 | ||
WORKER_GID=101 | ||
DATABASE_CHARSET='utf8' | ||
DATABASE_HOST='127.0.0.1' | ||
DATABASE_NAME='highlights_test' | ||
DATABASE_USER='highlights' | ||
DATABASE_PASSWORD='test' | ||
DATABASE_PORT='5433' | ||
DATABASE_READ_CHARSET='utf8' | ||
DATABASE_READ_HOST='127.0.0.1' | ||
DATABASE_READ_NAME='highlights_test' | ||
DATABASE_READ_USER='highlights' | ||
DATABASE_READ_PASSWORD='test' | ||
DATABASE_READ_PORT='5433' | ||
DATABASE_ARCHIVE_CHARSET='utf8' | ||
DATABASE_ARCHIVE_HOST='127.0.0.1' | ||
DATABASE_ARCHIVE_NAME='highlights_test' | ||
DATABASE_ARCHIVE_USER='highlights' | ||
DATABASE_ARCHIVE_PASSWORD='test' | ||
DATABASE_ARCHIVE_PORT='5433' | ||
RABBITMQ_USER='update_me' | ||
RABBITMQ_PASSWORD='update_me' | ||
RABBITMQ_HOST='update_me' | ||
RABBITMQ_VHOST='update_me' | ||
RABBITMQ_QUEUE_PUBLICATIONS='update_me' | ||
LIST_MAIN='update_me' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Dependencies | ||
|
||
- [adamwynne/twitter-api](https://github.com/adamwynne/twitter-api) | ||
- [clojure.org](https://clojure.org/releases/downloads) | ||
- [clojure/data.json](https://github.com/clojure/data.json) | ||
- [korma/Korma/tree/v0.4.3](https://github.com/korma/Korma/tree/v0.4.3) | ||
- [clojure/math.numeric-tower](https://github.com/clojure/math.numeric-tower) | ||
- [michaelklishin/langohr](https://github.com/michaelklishin/langohr) | ||
- [mudge/php-clj](https://github.com/mudge/php-clj) | ||
- [ptaoussanis/timbre](https://github.com/ptaoussanis/timbre) | ||
- [weavejester/environ](https://github.com/weavejester/environ) | ||
- [xsc/pandect](https://github.com/xsc/pandect) | ||
- [https://danlentz.github.io/clj-uuid/](https://danlentz.github.io/clj-uuid/) | ||
- [https://clojure.github.io/tools.logging/](https://clojure.github.io/tools.logging/) | ||
- [https://search.maven.org/artifact/org.postgresql/postgresql/42.4.0/jar](https://search.maven.org/artifact/org.postgresql/postgresql/42.4.0/jar) | ||
- [https://mvnrepository.com/artifact/org.slf4j/slf4j-api](https://mvnrepository.com/artifact/org.slf4j/slf4j-api) | ||
- [https://mvnrepository.com/artifact/org.slf4j/slf4j-reload4j](https://mvnrepository.com/artifact/org.slf4j/slf4j-reload4j) | ||
- [https://mvnrepository.com/artifact/org.slf4j/slf4j-simple](https://mvnrepository.com/artifact/org.slf4j/slf4j-simple) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## Requirements | ||
|
||
Make sure the targeted public members list exists in the database | ||
|
||
```SQL | ||
INSERT INTO public.publishers_list ( | ||
name, | ||
screen_name, | ||
locked, | ||
locked_at, | ||
unlocked_at, | ||
list_id, | ||
public_id, | ||
total_members, | ||
total_statuses, | ||
deleted_at, | ||
created_at | ||
) | ||
VALUES ( | ||
'MEMBERS_LIST_NAME', | ||
'', | ||
false, | ||
null, | ||
now(), | ||
'1', | ||
gen_random_uuid(), | ||
0, | ||
0, | ||
null, | ||
now() | ||
) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
# @see https://stackoverflow.com/a/38841004/282073 | ||
# Root logger option | ||
log4j.rootLogger=INFO, stdout | ||
|
||
# Direct log messages to stdout | ||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
log4j.appender.stdout.Target=System.out | ||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n | ||
log4j.appender.FILE.File=./var/log/highlights.log | ||
log4j.appender.FILE.ImmediateFlush=true | ||
log4j.appender.FILE.Append=true | ||
|
||
|
||
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n |
Oops, something went wrong.