#donotForgetAgain
set npm shell to be powershell 7+
npm config set script-shell pwsh --global
import { createServer } from 'node:http'; | |
import { execSync } from 'node:child_process'; | |
const server = createServer(async function (req, res) { | |
Object.entries({ | |
'Content-Type': 'application/json', | |
'Access-Control-Allow-Origin': '*', | |
'Access-Control-Allow-Methods': '*', |
import package from './package.json' with { type: "json" }; | |
let version = await fetch(`https://registry.npmjs.com/${package.name}/latest`).catch(_=>undefined).then(d => d?.json?.()).then(({version})=>version).catch(_=>undefined); | |
console.log(`Newest version is ${ version ?? 'unknown' }`); |
#donotForgetAgain
set npm shell to be powershell 7+
npm config set script-shell pwsh --global
JavaScript: node:parseEnv sucks really badly.
This is my version.
Loads all ENV vars to the process.env
#
)=
after the first is part of the value_
Bericht zur Seitenindexierung https://support.google.com/webmasters/answer/7440203#page_with_redirect
Do 404 errors hurt my site? https://developers.google.com/search/blog/2011/05/do-404s-hurt-my-site
Block Search indexing with noindex https://developers.google.com/search/docs/crawling-indexing/block-indexing?sjid=15450004683708556555-EU&visit_id=638747839262171346-635244115&rd=1
Make python use system certificates
python -m pip install pip-system-certs
Error was:
https: error: SSLError: HTTPSConnectionPool(host='wikipedia.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1018)'))) while doing a GET request to URL: https://wikipedia.com/
MyElement.vue
<template v-for="item in $slots.default?.()" :key="item">
<p>
<component :is="item" /> <!-- wrapps all child elements in default slot -->
</p>
</template>
main.vue
create a index.ts: