postgres=# SELECT pg_reload_conf();
pg_reload_conf
----------------
t
(1 row)
const zlib = require('zlib');
const buf = Buffer.from('hello world', 'utf-8');
zlib.gzip(buf, (err, compressed) => {
if (err) {
console.error(err);
}
docker kill $(docker ps -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q -a)
const today = new Date()
const tomorrow = new Date(today)
tomorrow.setDate(tomorrow.getDate() + 1)
// NOTE: If you also want to reset the time to "tomorrow at 00:00:00",
// you can do so by calling tomorrow.setHours(0,0,0,0).
// Simplified implementation
String(str).replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/"/g, '"');
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/usr/local/opt/[email protected]/sbin:$PATH"' >> ~/.zshrc
knex
.select()
.table('products')
.orderBy('name', 'desc')
.orderBy('id', 'asc')
PostgreSQL connection string / URL format
postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]