First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.
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
// ========== | |
// =SETTINGS= | |
// ========== | |
// set to false if you want to filter text, link or posts without preview | |
const textPosts: boolean = true | |
const linkPosts: boolean = true | |
const noPicPosts: boolean = true | |
// DO NOT EDIT CODE BELOW UNLESS SAID OTHERWISE!!! |
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
[Unit] | |
Description=aria2 Daemon | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/aria2c --conf-path=%h/.config/aria2/aria2-server.conf | |
Restart=on-failure | |
[Install] |
If for some reason you want to run cron in last day of month you would likely need 3 separate cron schedule expressions:
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
// open https://twitter.com/settings/muted/all | |
// and keep tab opened until it finishes! | |
(async () => { | |
const sleep = async (ms) => new Promise((r) => setTimeout(r, ms)) | |
let el = document.querySelector('[aria-label^="Unmute "]') | |
while (el) { | |
el.scrollIntoView({ behavior: 'smooth', block: 'end' }) | |
el.click() |