Skip to content

Instantly share code, notes, and snippets.

View aramisf's full-sized avatar

Aramis Fernandes aramisf

View GitHub Profile
@aramisf
aramisf / introrx.md
Created October 4, 2015 11:37 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@aramisf
aramisf / psgrep.sh
Last active August 29, 2015 14:19 — forked from eddy85br/psgrep.sh
#!/bin/bash
################################################################################
## Similar to run: ps aux | grep "RegExp" ##
## Script that receives a list o keywords and search then in "ps aux" command ##
## and returns ps's header and processes that where found with keywords. ##
## Accepts grep options, like '-c' to count number of matched processes. ##
################################################################################
options=''
@aramisf
aramisf / swapgrep.sh
Last active August 29, 2015 14:19 — forked from eddy85br/swapgrep.sh
#!/bin/bash
# Get current swap usage for all running processes
# Erik Ljungstrom 27/05/2011
#
## Adapted by Jhonatan Piffer Siqueira and Eduardo Lemons Francisco (eddy85br).
OVERALL=0
PROGLIST=$(ps axw -o pid,args --no-headers)
while read PID ARGS; do