This script creates a message command to archive discord messages to a WriteFreely instance.
- Create collections
- Create posts
- Change collection visibility
Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.
This script creates a message command to archive discord messages to a WriteFreely instance.
Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.
let code = ... | |
let DISCORD_CLIENT_ID; | |
let DISCORD_CLIENT_SECRET; | |
let DISCORD_REDIRECT_URI; | |
let code_exchange = await fetch("https://discordapp.com/api/oauth2/token", { | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded', |
This script likes all the songs in a Youtube Music Playlist at once.
https://music.youtube.com/playlist?list=...
ctrl
+ shift
+ j
. This opens the Developer Console.script.js
)Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.
This script votes for all the parts in a Wattpad Story at once.
ctrl
+ shift
+ j
. This opens the Developer Console.script.js
. Copy from whatever's convenient.)Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.
FROM node:20 | |
WORKDIR /build | |
COPY src/frontend/package*.json . | |
RUN rm -rf node_modules | |
RUN rm -rf build | |
RUN npm install | |
COPY src/frontend/. . | |
RUN npm run build | |
# Thanks https://stackoverflow.com/q/76988450 |
mozilla/pdf.js#12389 (comment)
It seems default import doesn't work, it works with namespace import import * as pdfjs from 'pdfjs-dist';.
My deepest appreciation to the author of this comment. Thanks man 🙏
Alright, back to the grind. Hope this was helpful
Assuming you have a folder beside your main.py
called ./routes
, in which you have your router files (must include a router
variable, which is likely your fastapi.APIRouter
instance.)
This main.py
script loads in all your routes.
Throwing it on here so I can find it later, might be helpful to you guys as well.
Files prefixed with nr_
, for example, nr_database.py
, are ignored by the script. nr
standing for not router
.
Code example for flow present in docs.
Leverages FastAPI, but not required. I had a tough time understanding the docs, I thought they meant query params lol (to retrieve the access token).
Anyway, I've made this gist to help you guys out, maybe save a few minutes.
TheOnlyWayUp © 2023
a[rel="noopener noreferrer"] { | |
background: url(get_sent_req_on_load_url); | |
background-color: slategray; | |
} | |
a[rel="noopener noreferrer"]:after { | |
background-color: blue; | |
content: '\AHi!'; | |
display: block; | |
} |