Skip to content

Instantly share code, notes, and snippets.

View tsolar's full-sized avatar

Tomás Solar Castro tsolar

  • Santiago, Chile
View GitHub Profile
@tsolar
tsolar / gist:9d93d2e20304c9c7e52b59ca7ffa200a
Last active September 13, 2020 17:28
postgresql create database
su - postgres
psql
CREATE ROLE rolename WITH LOGIN PASSWORD 'password';
CREATE DATABASE databasename OWNER rolename;
# working 2020-09-13
sudo -u postgres -i
psql
CREATE ROLE tom WITH LOGIN PASSWORD 'password';
{
"editor.insertSpaces": true,
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"editor.formatOnType": false,
"editor.wordBasedSuggestions": false,
"editor.trimAutoWhitespace": false,
"gitlens.hovers.avatars": false,
"gitlens.hovers.currentLine.details": false,
@tsolar
tsolar / .fehbg
Last active March 1, 2021 03:54
change wallpaper with feh
feh --no-fehbg --bg-fill $(find "${HOME}/Pictures/wallpapers/" -type f -name *.jpg | shuf -n 1)
@tsolar
tsolar / elasticsearch.md
Created March 5, 2021 16:18 — forked from dominicsayers/elasticsearch.md
Configuring ElasticSearch to use less memory

What I actually did

/etc/security/limits.conf

elasticsearch hard memlock 100000

/etc/default/elasticsearch