Skip to content

Instantly share code, notes, and snippets.

View ram-arrowebs's full-sized avatar

Ram Sundararaman ram-arrowebs

View GitHub Profile
@ram-arrowebs
ram-arrowebs / tmux-cheat-sheet.md
Last active August 17, 2025 09:52
tmux - cheat sheet

tmux - cheat sheet

Start new session

tmux

Detach from a session

Ctrl + b d

Attach to last session

tmux a

@ram-arrowebs
ram-arrowebs / ssh-screens.md
Created April 25, 2024 07:11
Using screen in Linux to Keep SSH Sessions Running

Using screen in Linux to Keep SSH Sessions Running

With screen you can create one or more sessions in your current SSH terminal which allows you to leave them (and the commands running) in the background should you disconnect from your session.

Just run screen to start it. This creates a screen session or window (although you don't see it as such) in your current SSH terminal:

Linux screen command started

Press Space or Return to get to the command prompt:

@ram-arrowebs
ram-arrowebs / Code.gs
Created January 31, 2024 05:59 — forked from benbjurstrom/Code.gs
PurgeOldEmails
/*
|--------------------------------------------------------------------------
| PurgeOldEmails
|--------------------------------------------------------------------------
| https://gist.github.com/benbjurstrom/00cdfdb24e39c59c124e812d5effa39a
|
*/
// Purge messages automatically after how many days?
var DELETE_AFTER_DAYS = 7
@ram-arrowebs
ram-arrowebs / clear_old_logs.sh
Created October 18, 2022 11:47
Delete the old logs from Code Ignitor 3 sites that get piling up all the time. Keep a few latest ones for review and possible fix!
#!/bin/bash
find /public_html/application/logs/log*.php -mtime +7 -exec rm {} \;