This is a fairly common question, and there isn't a One True Answer.
These are the most common techniques:
| #!/usr/bin/env bash | |
| # | |
| # This script produces a complete tree structure for the directory | |
| # in which it is running. | |
| # | |
| # FROM | |
| # http://www.sun.com/bigadmin/scripts/submittedScripts/lstree.sh.txt | |
| # | |
| # Modifications by Adam Bachman | |
| # |
| #!/bin/sh | |
| # Build Zsh from sources on Ubuntu. | |
| # From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file. | |
| # Some packages may be missing | |
| sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo | |
| git clone git://zsh.git.sf.net/gitroot/zsh/zsh | |
| cd zsh |
| .DS_Store | |
| # editor temp files | |
| *~ | |
| tmp/**/* | |
| *.lock | |
| *.DS_Store | |
| *.swp | |
| *.out |
| <?php | |
| namespace My\Custom\Doctrine2\Function; | |
| /** | |
| * RandFunction ::= "RAND" "(" ")" | |
| */ | |
| class Rand extends FunctionNode | |
| { | |
| public function parse(\Doctrine\ORM\Query\Parser $parser) |
| set :shared_files, [app_path + "/config/parameters.yml"] | |
| namespace :symfony do | |
| namespace :configure do | |
| def shared_parameters_path | |
| "#{shared_path}/#{app_path}/config/parameters.yml" | |
| end | |
| def app_parameters_path | |
| "#{latest_release}/#{app_path}/config/parameters.yml" |
| #!/usr/bin/env python | |
| """ | |
| Copyright 2011 Domen Kozar. All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, are | |
| permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, this list of | |
| conditions and the following disclaimer. |
| <?php | |
| /* | |
| * This class will give us a simple interface to interact with Datatables | |
| * | |
| * Meant to work with Datatables v1.9 | |
| * | |
| * DO NOT FORGET TO ADD A GET() METHOD TO YOUR ENTITIES... | |
| * |
| /* Copyright (C) 2012-2014 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955 | |
| * | |
| * This mixin now has its own github repository: https://github.com/kurtmilam/underscoreDeepExtend | |
| * It's also available through npm and bower | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| * | |
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFR |
As configured in my dotfiles.
start new:
tmux
start new with session name: