start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # prerequisites : | |
| # sudo apt-get install nmap | |
| # | |
| # nmap.py | |
| # Network Radar | |
| # | |
| # | |
| # This program is free software; you can redistribute it and/or modify |
| #!/bin/bash | |
| # | |
| # Watch current directory (recursively) for file changes, and execute | |
| # a command when a file or directory is created, modified or deleted. | |
| # | |
| # Written by: Senko Rasic <[email protected]> | |
| # | |
| # Requires Linux, bash and inotifywait (from inotify-tools package). | |
| # | |
| # To avoid executing the command multiple times when a sequence of |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #!/usr/bin/env python | |
| # found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000> | |
| # simple example of a tray icon application using PyGTK | |
| import gtk | |
| def message(data=None): | |
| "Function to display messages to the user." | |
| #!/bin/bash | |
| # Uses a PID file to add daemon-like behavior to an arbitrary program. | |
| ################################################################################ | |
| usage() { | |
| echo "Usage: `basename $0` PROGRAM {start|stop|restart|force-stop|force-restart|status} [PIDFILE|PID]" >&2 | |
| echo "Where: PROGRAM is an executable file." >&2 | |
| echo " PIDFILE is the file that contains (or will contain) the PID." >&2 | |
| echo " PID is a process id to use in place of a PIDFILE." >&2 | |
| } |