Skip to content

Instantly share code, notes, and snippets.

View gahabeen's full-sized avatar

Gabin Desserprit gahabeen

View GitHub Profile
@gahabeen
gahabeen / FormulateForm.js
Last active September 17, 2020 04:56
Extended FormulateSchema/FormulateForm Component as Plugin - for the amazing VueFormulate lib
import FormulateForm from './FormulateForm.vue'
export function plugin(instance) {
instance.extend({
components: {
FormulateForm,
},
})
}
@gahabeen
gahabeen / EventBus.js
Created June 29, 2020 20:16
EventBus - Vanilla JS
class EventBus {
registry = new Map()
constructor() {}
on(type, handler) {
const handlers = this.registry.get(type)
const added = handlers && handlers.push(handler)
if (!added) {
this.registry.set(type, [handler])
}
@gahabeen
gahabeen / 8base-with-Auth0-Passwordless.txt
Last active January 21, 2021 05:30
8base / Auth0 - Passwordless Login/Signup
# 8base / Auth0 - Passwordless Login/Signup
Follow the conversation over there: [https://community.8base.com/t/using-auth0-passwordless-email-connection/529/6](https://community.8base.com/t/using-auth0-passwordless-email-connection/529/6)
@gahabeen
gahabeen / 0__readme.txt
Last active March 13, 2021 14:45
NapBots - Dynamic Allocations v1
For updates, leave a comment below!
@gahabeen
gahabeen / migrate.sh
Created July 14, 2024 08:28 — forked from Geczy/readme.md
Migrate Coolify to a new server
#!/bin/bash
# This script will backup your Coolify instance and move everything to a new server. Docker volumes, Coolify database, and ssh keys
# 1. Script must run on the source server
# 2. Have all the containers running that you want to migrate
# Configuration - Modify as needed
sshKeyPath="$HOME/.ssh/your_private_key" # Key to destination server
destinationHost="server.example.com"