This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| sudo rm -f /usr/local/bin/node | |
| sudo rm -f /usr/local/bin/npm | |
| ln -s $(which node) /usr/local/bin/node | |
| ln -s $(which npm) /usr/local/bin/npm |