start new:
tmux
start new with session name:
tmux new -s myname
| # one-liner for generating this: mysqldump --no-data -uroot magento1600 | nawk '{if(match($0, /CREATE TABLE `(.*)`/, matchesT)) { the_table = matchesT[1]; } if(match($0, /(CONSTRAINT .*),?/, matchesK) && the_table) { the_key = gensub(/,?$/, "", matchesK[1]); the_key = gensub(/^ */, "", the_key); print "ALTER TABLE `" the_table "` ADD", the_key ";"; }}' | |
| ALTER TABLE `admin_rule` ADD CONSTRAINT `FK_ADMIN_RULE_ROLE_ID_ADMIN_ROLE_ROLE_ID` FOREIGN KEY (`role_id`) REFERENCES `admin_role` (`role_id`) ON DELETE CASCADE ON UPDATE CASCADE; | |
| ALTER TABLE `api_rule` ADD CONSTRAINT `FK_API_RULE_ROLE_ID_API_ROLE_ROLE_ID` FOREIGN KEY (`role_id`) REFERENCES `api_role` (`role_id`) ON DELETE CASCADE ON UPDATE CASCADE; | |
| ALTER TABLE `api_session` ADD CONSTRAINT `FK_API_SESSION_USER_ID_API_USER_USER_ID` FOREIGN KEY (`user_id`) REFERENCES `api_user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE; | |
| ALTER TABLE `catalog_category_entity_datetime` ADD CONSTRAINT `FK_CAT_CTGR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID` FOREIGN KEY (`attribute_id |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # CUI Downloader of "Command Line Tools for Xcode" | |
| # by Akihiro Uchida, CC0 dedicated to the public domain | |
| # see http://creativecommons.org/publicdomain/zero/1.0/ | |
| import sys, os | |
| import urllib, urllib2, cookielib | |
| from getpass import getpass | |
| from HTMLParser import HTMLParser |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| VBoxManage list runningvms | |
| VBoxManage controlvm {foobar} poweroff |
| first |
| <?php | |
| /** | |
| * | |
| * Copyright (c) 2013 Studio Boz | |
| * | |
| * @project_name Studio Boz | |
| * @copyright Copyright (c) 2013 Studio Boz (http://studioboz.com.br) | |
| * @author Rick Benetti <[email protected]> | |
| * | |
| **/ |
| 1234 | |
| 0000 | |
| 1111 | |
| 2580 | |
| 1212 | |
| 5555 | |
| 2222 | |
| 6969 | |
| 7777 | |
| 5683 |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |