Skip to content

Instantly share code, notes, and snippets.

View tabuz's full-sized avatar
💭
Feeling positive vibrations 😄

Hubert tabuz

💭
Feeling positive vibrations 😄
View GitHub Profile
@tabuz
tabuz / [...].ts
Last active June 12, 2025 09:17
Nuxt 3 server api proxy with generic body handling and cookie forwarding
export default defineEventHandler(async (event): Promise<any> => {
const { apiBaseUrl } = useRuntimeConfig();
if (!apiBaseUrl) {
throw new Error("Missing `runtimeConfig.apiBaseUrl` configuration.");
}
const { method, url, headers: originalClientHeaders } = event.node.req;
const headersForFetch: Record<string, string> = {};
if (originalClientHeaders) {
@tabuz
tabuz / [...].ts
Created June 12, 2025 09:13
Nuxt 3 server api proxy with generic body handling and cookie forwarding
export default defineEventHandler(async (event): Promise<any> => {
const { apiBaseUrl } = useRuntimeConfig();
if (!apiBaseUrl) {
throw new Error("Missing `runtimeConfig.apiBaseUrl` configuration.");
}
const { method, url, headers: originalClientHeaders } = event.node.req;
const headersForFetch: Record<string, string> = {};
if (originalClientHeaders) {
{
"editor.fontSize": 14,
"editor.formatOnPaste": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"files.autoSave": "off",
"files.exclude": {
"__pycache__": true,
"__pychache__": true,
"*.pyc": true,
@tabuz
tabuz / git-tag-delete-local-and-remote.sh
Created April 18, 2019 06:42 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@tabuz
tabuz / README.md
Created September 5, 2017 09:48 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet