Skip to content

Instantly share code, notes, and snippets.

View Duboox's full-sized avatar
💭
Nothing is real.

Joshua Martinez Duboox

💭
Nothing is real.
View GitHub Profile
@Duboox
Duboox / cleanup_odoo_session.sh
Created August 26, 2021 20:02 — forked from shingonoide/cleanup_odoo_session.sh
Simple script to clean up Odoo session files
#!/bin/sh
# example
# add this to crontab -e of odoo user
# curl -sL https://gist.github.com/shingonoide/1947a97e3c00168372e950a6788ce9ad/raw/cleanup_odoo_session.sh > /tmp/cleanup_sessions.sh && sh /tmp/cleanup_sessions.sh 4
HOW_OLDER=${1:-6}
VERBOSE=${2:-0}
SESSION_FOLDER="$HOME/.local/share/Odoo/sessions"
TOTALFILES=$(find $SESSION_FOLDER -name '*.sess' | wc -l)
@Duboox
Duboox / nvmlink
Last active July 30, 2021 17:00 — forked from MeLlamoPablo/nvmlink
Creates a symlink to /usr/bin/node after using nvm