Skip to content

Instantly share code, notes, and snippets.

View jegj's full-sized avatar

Javier jegj

View GitHub Profile
@jegj
jegj / vagrant.md
Last active November 10, 2021 13:53

Vagrant Common Troubleshooting

vbox

vagrant plugin install vagrant-vbguest
vagrant vbguest
@jegj
jegj / PostgreSQL server image filesystem layout
Last active August 1, 2022 12:42
Basic Postgres Administration
/ root 50GB RAID 1 – Needs enough to have home directories and system logs not continually run out of space.
/data/postgresql/main RAID 10 – Sized according to the disk space
/data/postgresql/pg_wal RAID 1 – Sized according to bursts of WAL.
/data/postgresql/pg_tmp Raid not needed – Size according to the largest temp files generated
/data/postgresql/pg_logs RAID 1 – Sized to keep an appropriate amount of logging for postgresql for debugging.
# Commands
- Show a list of the rules with a byte counter
```sh
sudo iptables -vL
sudo ip6tables -vL
```
- Show a list of the current rules
```sh
{"version":1,"resource":"file:///home/jegj/projects/dealerbuilt/bidb/ref/BIDB-814/.manifest","entries":[{"id":"wOg8","timestamp":1650914879021}]}
@jegj
jegj / disk_handling.md
Last active October 25, 2021 18:57
Very handly to check partition with filled
const user2 = {
id: 200,
name: 'Vince Noir'
}
const user4 = {
id: 400,
name: 'Bollo',
quotes: ["I've got a bad feeling about this..."]
}
@jegj
jegj / tmux_cheatsheet.markdown
Last active April 25, 2019 13:21 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@jegj
jegj / comlog.nginx.conf
Last active July 22, 2021 12:48
Basic provision script for node js server(expressif) + nginx + postgres 10.x
upstream comlog {
server unix:/tmp/comlog.socket;
}
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/nginx/certs/dev.comlog.crt;
ssl_certificate_key /etc/nginx/certs/dev.comlog.key;