start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/bash | |
| # Source: http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/ | |
| # Install stuff # | |
| ################# | |
| # Install development tools and some misc. necessary packages | |
| yum -y groupinstall "Development tools" | |
| yum -y install zlib-devel # gen'l reqs |
| function Get-Uptime | |
| { | |
| [CmdletBinding()] | |
| param | |
| ( | |
| [Parameter(ValueFromPipeline=$true, | |
| ValueFromPipelineByPropertyName=$true)] | |
| [Alias('hostname')] | |
| [Alias('cn')] | |
| [string[]]$ComputerName = $env:COMPUTERNAME |
| import logging | |
| import logging.handlers | |
| log = logging.getLogger(__name__) | |
| log.setLevel(logging.DEBUG) | |
| handler = logging.handlers.SysLogHandler(address = '/dev/log') | |
| formatter = logging.Formatter('%(module)s.%(funcName)s: %(message)s') |
| #!/bin/sh | |
| # ================================================================ | |
| # | |
| # Convert a mysql database dump into something sqlite3 understands. | |
| # | |
| # Adapted from | |
| # http://stackoverflow.com/questions/489277/script-to-convert-mysql-dump-sql-file-into-format-that-can-be-imported-into-sqlit | |
| # | |
| # (c) 2010 Martin Czygan <[email protected]> |
| Davide Zipeto wrote: | |
| > Is is possible jsut to write the < pre> tag on a line by disabling temporarly the textile markup engine ? I cannot find any tricks with that... | |
| A neat trick (AFAIK not officially supported by Redmine (nor RedCloth)) can be the use of Redmine's inline code markup. | |
| With a nifty syntax the following results can be achieved: <@pre@>, [@[links]@], <@/code@>, <@/pre@>, <@code@>, @h1.@ and @_italic_@. | |
| I've posted the source of this reply to a gist to easily show the syntax I've used for the examples: <PasteGistURL>. | |
| |