57 Commits

Author SHA1 Message Date
ekzyis
6cc87ceac4
Update welcome script (#2317) 2025-07-23 20:34:59 +02:00
ekzyis
de01d9493f
Fix missing cast to number (#2254) 2025-06-30 00:09:11 +02:00
k00b
4034755410 vibe in award payment enhancements: option to consolidate + use alt receive method 2025-06-19 17:35:57 -05:00
soxa
d9213c39e7
local DNS server via dnsmasq (#2168)
* Use dnsmasq to create virtual hosts and mock DNS management for custom domains

- dnsmasq docker image
- dnsmasq network bridge
- point *.sndev to 127.0.0.1
- set-dnsmasq script
- -- add/remove/list dns records in dnsmasq.conf
- add 'domains' to sndev
- 'sndev domains dns' referencing set-dnsmasq script

* restart dnsmasq if add/remove succeeded

* add domain to /etc/hosts; cleanup

* tell if the command needs sudo permission

* add directions for dnsmasq DNS server usage

* add --no-hosts flag to skip asking to edit /etc/hosts

* add domains command to README.md

* add dnsmasq instructions to README.md

* correct exit on usage function; final cleanup and comments

* portable bash; use default network for dnsmasq; set a version for dnsmasq image

* POSIX compliance, add env var to .env.development, adjust README

* ignore dnsmasq.conf edits, use template instead

* use extra configs for dnsmasq, more POSIX compliance

* fix --no-hosts flag recognition, light cleanup

* shift 4 only if the command has enough args; more error messages; adjust TXT type only on list

* different sed syntax for macOS
2025-05-21 13:06:19 -05:00
ekzyis
8ba572d5f1
Add question to welcome post (#2174) 2025-05-20 15:38:06 -05:00
m0wer
f12c03198d
Exact search (#2135)
* feat: add exact search for quoted phrases/words

* feat: get some highlighting for exact search

* feat: Add exact search for title and text fields in OpenSearch

* simplify and make it work with nlp script

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2025-05-15 09:11:58 -05:00
ekzyis
52365c32ed
Wallet badges (#2040)
* Remove gun+horse streak

* Add wallet badges

* Fix empty recv wallet detected as enabled

* Resolve badges via columns and triggers

* Fix backwards compatibility by not dropping GQL fields

* Gun+horse notifications as streaks via triggers

* Fix error while computing streaks

* Push notifications for horse+gun

* Move logic to JS via pgboss job

* Fix argument to notifyNewStreak

* Update checkWallet comment

* Refactor notification id hack

* Formatting

* Fix missing update of possibleTypes

This didn't cause any bugs because the added types have no field resolvers.

* Add user migration

* Fix missing cast to date

* Run checkWallet queries inside transaction
2025-04-09 15:29:44 -05:00
Edward Kung
5f2c8bf380
Nlp setup quick fix (#2081)
* quick fix to set default search pipeline

* remove extraneous testing lines
2025-04-08 09:02:06 -05:00
Edward Kung
e4a2228d7c
NLP startup script + opensearch fixes (#2070)
* fix opensearch startup

* nlp setup script

* nlp setup documentation

* move script to ./scripts and update docs

---------

Co-authored-by: k00b <k00b@stacker.news>
2025-04-07 17:08:37 -05:00
ekzyis
2cf0f1d268
Update NDK to v2.12.2 (#2041)
* Update NDK to v2.12.2

* Fix NWC with @nostr-dev-kit/ndk-wallet

* Add test for nip-57 zap receipts
2025-04-02 17:20:47 -05:00
k00b
75a8828eeb add pay awards script 2025-04-02 13:31:33 -05:00
ekzyis
71e06f09e3 Automate more stuff 2025-04-02 19:32:19 +02:00
ekzyis
93608019cd Assert bios in fetch function 2025-04-02 19:32:19 +02:00
ekzyis
0f1818c9b9 Refactor welcome script with utils 2025-04-02 19:32:19 +02:00
k00b
8d4f99ea8d fill db seed with real text/titles/urls 2025-03-29 18:19:52 -05:00
k00b
39d0c55124 vibe coded twitter link extracting - meh 2025-03-29 15:22:15 -05:00
ekzyis
501bf1609b Make limit "configurable" in welcome script 2025-03-25 15:47:14 -05:00
ekzyis
0801191b9e Fix fetching of user items in welcome script 2025-03-09 23:06:50 -05:00
k00b
19e3b65edd store extracted links 2025-03-06 18:14:10 -06:00
k00b
b7130b68fd sort notes 2025-03-06 18:14:10 -06:00
k00b
4e113c267b moar link extraction vibe coding: config file, batching, log level 2025-02-28 11:35:41 -06:00
k00b
43edef55eb vibe coded nostr link extractor script 2025-02-27 11:58:02 -06:00
ekzyis
a913c2d452 Fix NaN in welcome script 2025-02-10 01:39:13 +01:00
ekzyis
34aadba352 Fix bios missed in welcome script 2025-02-10 01:32:30 +01:00
ekzyis
ee2d076d1b
Welcome series script update (#1848)
* Parse args in welcome script

* Refactor welcome script

* Show sats/ccs

* Add sat standard
2025-01-27 15:14:03 -06:00
ekzyis
c6de7a1081 Script for welcome series 2025-01-19 23:56:19 +01:00
ekzyis
5261c83f4d
Add FAQ to version control (#1799)
* Add FAQ to version control

* Add script to deploy markdown content

* Move faq.md into docs/user
2025-01-08 13:47:34 -06:00
k00b
4262189c91 fix week interval in newsletter 2024-12-28 15:50:17 -06:00
ekzyis
3ead4db8dc
Use new LND node as routing node (#1700)
* Use same naming scheme between ln containers and env vars

* Add router_lnd container

* Only open channels to router_lnd

* Use 1sat base fee and 0ppm fee rate

* Add script to test routing

* Also fund router_lnd wallet

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-12-10 10:52:17 -06:00
ekzyis
570c842934
Wallet send+recv status derived from logs (#1559)
* Derive wallet status from logs

* Add send/recv icons

* Set status individually for send and recv

* Move status logic into own function

* Add LNbits, Blink, CLN, LND, phoenixd logo

* Fix wallet.status.any not using Status enum

* Fix WebLN being weird

* Use phoenixd logo with text

* Also use wallet logo on config page

* Also poll logs for wallet status

* Use logger.info for logs not relevant for wallet status

* Remove no longer used wallet badges

* Crop LND logo like other logos

* Fix all wallets show 'configure'

* Fix wallet status not respecting enabled

* Fix wallet.def.requiresConfig undefined

* Fix banner shown for WebLN

* Fix attach shown when configured

* Filter by context.status to determine wallet status

* Fix +- shown without context

* Fix missing theme support for wallet logos
2024-11-18 16:46:24 -06:00
k00b
73df5e0308 improve newsletter import 2024-11-16 16:52:08 -06:00
Riccardo Balbo
9c55f1ebe2
Implement deposit as receive paidAction (#1570)
* lnurlp paid action

* lnurlp has 10% sybil fee

* fix merge issue

* Update pages/settings/index.js

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>

* fix notifications

* fix destructure

* pass lud18Data to lnurlp action

* minor cleanup

* truncate invoice description to permitted length

* remove redundant targetUserId

* lnurlp paidAction -> receive paidAction

* remove redundant user query

* improve determining if peer is invoiceable

* fix inconsistent relative imports

* prevent paying self-proxied invoices and better held invoice cancellation

* make gun/horse streak zap specific

* unique withdrawal hash should apply to confirmed payments too

* prevent receive from exceeding wallet limits

* notifications

* fix notifications & enhance invoice/withdrawl page

* notification indicator, proxy receive based on threshold, refinements

---------

Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
Co-authored-by: k00b <k00b@stacker.news>
2024-11-15 18:38:14 -06:00
Keyan
245419185f
wallet streaks (#1468)
* wallet streaks backend

* notifications and badges

* reuseable streak fragment

* squash migrations

* push notifications

* update cowboy notification setting label text
2024-10-11 19:14:18 -05:00
k00b
b6dcee4f26 add booosts to newsletter script 2024-09-22 12:05:03 -05:00
k00b
83458fdc9e add amas to newsletter script 2024-09-21 14:44:17 -05:00
Keyan
5f0494de30
rethinking boost (#1408)
* reuse boost for jobs

* wip

* allow job stopping

* restore upvote.js

* expire boost

* boost beyond edit window

* fix boost bolt styling

* rank comments with boost

* no random sort for jobs

* top boost for month at top of territory

* boost hints

* more boost help

* squash migrations

* for same boost, prioritize older

* show ad only if active

* fix itemCreate/Update boost expiration jobs

* fix fee button precedence
2024-09-19 13:13:14 -05:00
k00b
88eea9ca94 newsletter script: search for bounties on @sn account 2024-09-14 13:44:57 -05:00
k00b
f42344497e update newsletter script 2024-08-31 14:04:49 -05:00
ekzyis
cc003a9a3e
Phoenixd send+recv (#1322)
* Add genwallet script

* Add phoenixd as send+recv wallet

* phoenixd passwords are 64 hex chars
2024-08-26 18:20:45 -05:00
keyan
87e198cc04 add this day in stacker news to newsletter 2024-06-22 15:23:30 -05:00
ekzyis
91192025e5
Remove NWC script (#1182) 2024-05-17 20:27:47 -05:00
ekzyis
f0403a2bbe
Add script to use NWC with stacker lnd (#1151) 2024-05-06 15:05:06 -05:00
keyan
13eda4c120 add geninvites script 2024-04-24 13:30:08 -05:00
keyan
fa5adac297 improve newsletter top stories format 2024-04-21 14:12:29 -05:00
keyan
45f90bd3f9 update newsletter script with new search filters 2024-03-30 15:27:51 -05:00
SatsAllDay
7087647cc0
Add top stackers, spender, and cowboys to newsletter (#954)
* Add top cowboys, stackers, and spenders to newsletter

* Rearrange to match the issue title

* fix top spenders `by` variable

* Update user resolver for top users `spending` `by` value

* wrap in try catch to not have errors break the script execution

return the array as defined whenever an error occurs
2024-03-23 12:23:31 -05:00
keyan
a3842a9af3 newsletter script meme monday search fix 2024-01-21 13:25:10 -06:00
keyan
efc566c3da improve newsletter script 2024-01-11 13:08:37 -06:00
SatsAllDay
cb076eca77
add link to email signup page for newsletter in newsletter signature (#737) 2024-01-07 10:43:00 -06:00
keyan
69004168e0 improve newsletter script 2023-12-17 13:20:22 -06:00