Skip to content

Instantly share code, notes, and snippets.

View fabianmieller's full-sized avatar
👨‍💻
#Coding

Fabian Mieller fabianmieller

👨‍💻
#Coding
View GitHub Profile
@nstanke
nstanke / enable_ws.sh
Last active March 5, 2024 14:43
Synology Bitwarden_rs Websocket setup without SSH
#!/bin/bash
LOC_DIR="/etc/nginx"
if [ ! -f $LOC_DIR/ws.locations ]; then
echo """
location /notifications/hub {
proxy_pass http://localhost:$3;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade";
@oliviagardiner
oliviagardiner / component.vue
Last active February 1, 2021 01:03
Nuxt.js + vue-moment
// components/component.vue
<template lang="pug">
div {{ new Date() | moment("dddd, MMMM Do YYYY, h:mm:ss a") }}
b-form-select(:value="locale" @change="changeLocale($event)")
option(v-for="lang in locales" :value="lang" :key="lang")
i(:class="'flag-icon-' + lang").flag-icon
</template>
<script>