| HEADER | Meaning |
|---|---|
| UID | effective user ID. (alias uid). |
| PID | process ID number of the process. |
| PPID | parent process ID. |
| C | processor utilization. Currently, this is the integer value of the percent usage over the lifetime of the process. (see %cpu). |
| START/STIME | starting time or date of the process. Only the year will be displayed if the process was not started the same year ps was invoked, or "mmmdd" if it was not started the same day, or "HH:MM" otherwise. |
| TTY | controlling tty (terminal). (alias tt, tty). |
| STAT | multi-character process state. See section PROCESS STATE CODES for the different values meaning. See also s and state if you just want the first character displayed. |
| TIME | cumulative CPU time, "[dd-]hh:mm:ss" format. (alias cputime). |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xsl:stylesheet version="1.0" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
| <xsl:param name="ticket" select="__none__" /> | |
| <xsl:output encoding="utf-8" method="xml" indent="yes" /> | |
| <xsl:key use="concat(text(), substring-before(../../msg, ':'))" name="path-key" | |
| match="path" /> | |
| <xsl:template match="log"> |
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
| # Source this script in tcsh to setup shell completions | |
| # for git. Completions are activated by typing or Control-D | |
| # in the shell after entering a partial command. | |
| # | |
| # Usage: | |
| # source git-completion.tcsh (e.g. in ~/.cshrc) | |
| # | |
| # Supported completions: | |
| # git (lists git commands) | |
| # git help (lists git commands) |
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 python | |
| import os | |
| import tempfile | |
| import unittest | |
| import shutil | |
| from fabric.api import * | |
| from fabric.contrib.project import rsync_project | |
| class TestRsync(unittest.TestCase): |
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
| [antonio@localhost] rsync_project: rsync -pthrvz --rsh='ssh -p 22 ' /var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpJ0XIrt antonio@localhost:/var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpLUX7m_ | |
| [localhost] local: rsync -pthrvz --rsh='ssh -p 22 ' /var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpJ0XIrt antonio@localhost:/var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpLUX7m_ | |
| Password: | |
| building file list ... done | |
| tmpJ0XIrt/ | |
| tmpJ0XIrt/tmp7BuTNr | |
| sent 110 bytes received 48 bytes 45.14 bytes/sec | |
| total size is 0 speedup is 0.00 | |
| .[antonio@localhost] rsync_project: rsync -pthrvz --rsh='ssh -p 22 ' antonio@localhost:/var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmp4KS64r /var/folders/pq/xk94_z4910s0m0xyh5hyth_h0000gn/T/tmpnYN8AK |
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
| NORMAL=$(tput sgr0) | |
| GREEN=$(tput setaf 2; tput bold) | |
| YELLOW=$(tput setaf 3) | |
| RED=$(tput setaf 1) | |
| function red() { | |
| echo -e "$RED$*$NORMAL" | |
| } | |
| function green() { |
Here are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display to describe the state of a process.
| CODE | Meaning |
|---|---|
| D | Uninterruptible sleep (usually IO) |
| R | Running or runnable (on run queue) |
| S | Interruptible sleep (waiting for an event to complete) |
| T | Stopped, either by a job control signal or because it is being traced. |
| W | paging (not valid since the 2.6.xx kernel) |
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
| git config --global alias.ahead '!git log HEAD..origin/$(git symbolic-ref HEAD | sed "s:refs/heads/::g")' |
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
| git log <current branch>..origin/<current branch> |
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 ruby | |
| require 'test/unit' | |
| def flatten(array) | |
| f = [] | |
| if array.kind_of?(Array) | |
| array.each{ |e| f.concat(e.kind_of?(Array) ? flatten(e) : [e]) } | |
| else | |
| f = [array] |