Skip to content

Instantly share code, notes, and snippets.

View hyoretsu's full-sized avatar

Aran Leite hyoretsu

View GitHub Profile
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
# Install OpenSSL for Prisma
RUN apt-get update && apt-get install -y openssl
RUN corepack enable
FROM base AS deps
This file has been truncated, but you can view the full file.
{"reqId":"Ux3ztDBGKUIV2zqiaW4P","level":3,"time":"2024-03-14T22:35:37+00:00","remoteAddr":"172.19.0.1","user":"hyoretsu","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/hyoretsu/.Hello/OnlySnap/Profiles/starryfawnn/Media/!Photos/2020","message":"An exception occurred while executing a query: SQLSTATE[HY000]: General error: 7 FATAL: terminating connection due to administrator command\nserver closed the connection unexpectedly\n\tThis probably means the server terminated abnormally\n\tbefore or while processing the request.","userAgent":"Mozilla/5.0 (Windows) mirall/3.12.1stable-Win64 (build 20240306) (Nextcloud, windows-10.0.22631 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.3.2","exception":{"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing a query: SQLSTATE[HY000]: General error: 7 FATAL: terminating connection due to administrator command\nserver closed the connection unexpectedly\n\tThis probably means the serv
[Sun Jan 21 2024 04:01:25 GMT+0000] starting 1337x scrape...
Scrapping 1337x Movies category page 1
Failed 1337x scrapping for [1] Movies due: Error: Failed browse request
at browse (/home/node/app/scrapers/1337x/1337x_api.js:66:27)
at /home/node/app/scrapers/1337x/1337x_api.js:79:23
Scrapping 1337x TV category page 1
Failed 1337x scrapping for [1] TV due: Error: Failed browse request
at browse (/home/node/app/scrapers/1337x/1337x_api.js:66:27)
at /home/node/app/scrapers/1337x/1337x_api.js:79:23
Scrapping 1337x Anime category page 1
@hyoretsu
hyoretsu / vaultwarden.sh
Created January 20, 2024 23:16
Self-hosting commands
sudo docker run -d --restart unless-stopped --name vaultwarden \
-p 32080:32080 -v /srv/vaultwarden/:/data/ \
-e ROCKET_PORT=32080 -e LOG_FILE=/data/vaultwarden.log \
-e SMTP_PORT=587 -e SMTP_SECURITY=starttls \
-e SMTP_HOST=smt-host.com \
-e [email protected] \
-e SMTP_USERNAME=your_username \
-e SMTP_PASSWORD=your_password \
-e DOMAIN=https://example.com \
vaultwarden/server:latest
@hyoretsu
hyoretsu / extensions.json
Created January 11, 2024 19:58
VSCode Settings
[
{
"identifier": {
"id": "vscode.bat"
},
"version": "1.0.0",
"preRelease": false,
"pinned": false
},
{
@hyoretsu
hyoretsu / mvpReminder.ts
Created January 6, 2024 03:00
Maple Helper's MVP Reminder Command (TTS in Voice Chat Example)
import {
AudioPlayerStatus,
VoiceConnectionStatus,
createAudioPlayer,
createAudioResource,
joinVoiceChannel,
} from "@discordjs/voice";
import { sleep } from "@hyoretsu/utils";
import { Guild, GuildMember, SlashCommandBuilder, VoiceChannel } from "discord.js";
import * as googleTTS from "google-tts-api";
@hyoretsu
hyoretsu / free-backend-hosting.md
Created December 8, 2022 21:20 — forked from bmaupin/free-backend-hosting.md
Free backend hosting
@hyoretsu
hyoretsu / free-database-hosting.md
Created December 8, 2022 21:20 — forked from bmaupin/free-database-hosting.md
Free database hosting
@hyoretsu
hyoretsu / utils.py
Created June 5, 2022 19:39
Various useful Python functions
import inspect
def get_var_name(var):
callers_local_vars = inspect.currentframe().f_back.f_locals.items()
return [var_name for var_name, var_val in callers_local_vars if var_val is var]
@hyoretsu
hyoretsu / https_in_wsl.MD
Last active May 30, 2021 18:19
How to run HTTPS in development with WSL2
  1. Download OpenSSL for Windows from https://slproweb.com/products/Win32OpenSSL.html
  2. Add whichever folder you selected for binaries to your PATH
  3. Create a file named example.conf and paste this
[req]
default_bits = 2048
prompt = no
default_md = sha256
x509_extensions = v3_req
distinguished_name = dn