Skip to content

Instantly share code, notes, and snippets.

View alekstrust's full-sized avatar

Javier Távara alekstrust

View GitHub Profile
@alekstrust
alekstrust / confluence-to-gdrive.sh
Last active August 26, 2017 03:01
Confluence to Google Drive
#!/bin/bash
# This is a script to take a MySQL dump and upload to Google Drive.
# Uses gdrive https://github.com/prasmussen/gdrive. See the gdrive readme first.
# The path to the gdrive binary
GDRIVE_BIN=/usr/sbin/gdrive
# Use "gdrive list" to get the id of the directory where you want to upload the files
BACKUP_DRIVE_DIR=
@alekstrust
alekstrust / mem.sh
Created October 3, 2016 16:34 — forked from sayem314/mem.sh
processs memory check on linux
#!/bin/bash
ps -C $1 -O rss | awk '{ count ++; sum += $2 }; END {count --; print "Number of processes =",count; print "Memory usage per process =",sum/1024/count, "MB"; print "Total memory usage =", sum/1024, "MB" ;};'