Skip to content

Instantly share code, notes, and snippets.

@owlscatcher
owlscatcher / wireguard.md
Last active March 11, 2024 13:14
Инструкция по нрастройке своего VPN сервера на облаке DigitalOcean
@fabiolimace
fabiolimace / UUIDv6.sql
Last active April 30, 2024 06:04
Functions for generating UUIDv6 and UUIDv7 on PostgreSQL
/*
* MIT License
*
* Copyright (c) 2023-2024 Fabio Lima
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@acfatah
acfatah / index.js
Last active March 27, 2024 04:40
Quasar Vue Router Middleware Pipeline Example
// router/index.js
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
import middlewarePipeline from './middleware-pipeline'
Vue.use(VueRouter)
@webolizzer
webolizzer / Nginx ACME Challenge.txt
Last active July 17, 2022 00:59
Nginx configuration to enable ACME Challenge support on all HTTP virtual hosts
#@@@ nginx virtual server configuration
### make link
# $ ln -s /etc/nginx/sites-available/DOMAIN_NAME.TLD /etc/nginx/sites-enabled/
# $ nginx -t
# $ systemctl restart nginx
### letsencrypt
# $ cd /PATH_NAME/www
# $ mkdir _.letsencrypt
@FGRibreau
FGRibreau / console_patch.js
Created September 6, 2012 11:56
Add timestamp information to the JavaScript console
/**
* Patch the console methods in order to provide timestamp information
*
* Usage:
* > console.log('ok')
* 2012-09-06T11:52:56.769Z ok true
*
* Note:
* The patch will only be applied with the first call.
*