This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="icon" type="image/png" href="favicon.png"> | |
This file contains 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/bash | |
MEM=`cat /proc/meminfo | egrep 'MemFree:' |tr -d '[[:space:]]' | sed '$s/..$//' | cut -d ":" -f2` | |
USER=`whoami` | |
PID=`ps -ly --User $USER --sort -rss | sed -n '2p' | tr -s [[:blank:]] | cut -d " " -f3` | |
NAME=`ps -ly --User $USER --sort -rss | sed -n '2p' | tr -s [[:blank:]] | cut -d " " -f13` | |
if [ $MEM -lt 102400 ]; then | |
DISPLAY=:0 notify-send "Low memory. #1 process in RAM usage: $NAME with PID: $PID" |
This file contains 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
http://www.pement.org/sed/sed1line.txt | |
http://www.pement.org/awk/awk1line.txt | |
http://www.catonmat.net/download/perl1line.txt | |
http://www.daemonology.net/papers/crypto1hr.pdf | |
http://www.deer-run.com/~hal/Unix_Command-Line_Kung_Fu_(SANS).pdf | |
https://wikitech.wikimedia.org/wiki/Portal:Wikitech | |
http://cb.vu/unixtoolbox.xhtml | |
http://thebuild.com/presentations/not-my-job-djangocon-us.pdf | |
https://lopsa.org/CodeOfEthics | |
http://postgresguide.com/ |
This file contains 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
set showcmd " Show (partial) command in status line. | |
set showmatch " Show matching brackets. | |
set ignorecase " Do case insensitive matching | |
set smartcase " Do smart case matching | |
set incsearch " Incremental search | |
set autowrite " Automatically save before commands like :next and :make | |
set hidden " Hide buffers when they are abandoned | |
set mouse=a " Enable mouse usage (all modes) | |
syntax on | |
set nocompatible |