Skip to content

Instantly share code, notes, and snippets.

View herberthobregon's full-sized avatar
💻
Focusing

Herberth herberthobregon

💻
Focusing
View GitHub Profile
@herberthobregon
herberthobregon / Instruccions.md
Last active August 8, 2024 20:01 — forked from josefglatz/a-sshAndSwitch.sh
Synology cheatsheet: how to query internal Synology postgresql database

Login to the console of the Synology NAS, and make a copy of the PostgreSQL configuration, just to be sure:

sudo cp /etc/postgresql/pg_hba.conf /etc/postgresql/pg_hba.conf.orig

sudo cp /etc/postgresql/postgresql.conf /etc/postgresql/postgresql.conf.orig

Then open the following file:

sudo vim /etc/postgresql/postgresql.conf

@herberthobregon
herberthobregon / polymer-3-lit-template.js
Last active October 28, 2020 13:17
Polymer 3 Code Template for WebStom, PhpStorm, All JetBrains IDE
#set($CLASS_NAME = "")
#set($part = "")
#if($NAME.endsWith(".js"))
#set($end = $NAME.length() - 3)
#set($NAME = "$NAME.substring(0,$end)")
#end
#foreach($part in $NAME.split("-"))
#set($CLASS_NAME = "${CLASS_NAME}$part.substring(0,1).toUpperCase()$part.substring(1).toLowerCase()")
#end
import { LitElement, html } from 'lit-element/lit-element.js';