Skip to content

Instantly share code, notes, and snippets.

View J05HI's full-sized avatar
💭
If no one laughs at your dreams, they're not big enough.

Joshua Ott J05HI

💭
If no one laughs at your dreams, they're not big enough.
  • Sagtis GmbH
  • Germany
View GitHub Profile
@phanan
phanan / MyList.vue
Last active February 2, 2023 17:10
Virtual scroller with Vue Composition API
<template>
<VirtualScroller v-slot="{ item }" :item-height="35" :items="myMassiveArray">
<div :item="item" :key="item.id">{{ item.details.i.guess? }}</div>
</VirtualScroller>
</template>
@emiliobondioli
emiliobondioli / magpie.js
Last active January 27, 2022 22:55
Nuxt Magpie module
const fs = require('fs')
const { URL } = require('url')
const { join } = require('path')
const axios = require('axios')
const consola = require('consola')
const defaults = {
path: '/_images', // dir where downloaded images will be stored
extensions: ['jpg', 'jpeg', 'gif', 'png', 'webp'],
baseUrl: '' // cms url
@tripflex
tripflex / HideEmail.vue
Created December 17, 2019 19:36
Hide/Obfuscate/Mask Email Address from Spam Bots (Vue.js Component)
<template>
<span class="reverse">{{reversedEmail}}</span>
</template>
<script>
export default {
name: 'hide-email',
props: [ 'email' ],
computed: {
reversedEmail(){
@sebastiansommer
sebastiansommer / adbToggleAirplane.sh
Created May 1, 2018 09:50
Toggle airplane mode with adb and restart personal hotspot.
adb shell settings put global airplane_mode_on 1 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
sleep 15
adb shell settings put global airplane_mode_on 0 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
adb shell am start -n com.android.settings/.TetherSettings
adb shell input keyevent 20
adb shell input keyevent 66
@DreaMinder
DreaMinder / A Nuxt.js VPS production deployment.md
Last active July 31, 2024 13:56
Deployment manual for a real-world project built with nuxt.js + koa + nginx + pm2

Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.

This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger than a landing page.

UPD: This manual now compatible with [email protected]. For older versions deployment, see revision history.


Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock: