start new:
tmux
start new with session name:
tmux new -s myname
| <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.targets" /> | |
| <Target Name="BeforeBuild"> | |
| <TransformXml Source="Web.Base.config" Transform="Web.$(Configuration).config" Destination="Web.config" /> | |
| </Target> | 
| $ docker create --name gitlab-data --volume /d/docker/gitlab:/etc/gitlab gitlab/gitlab-ce:latest | |
| # Make sure Bridging is set on the VM in VirtualBox | |
| $ docker run --publish 8080:80 --publish 2222:22 --publish 4443:443 --name gitlab --restart always --volumes-from gitlab-data gitlab/gitlab-ce:latest | |
| Using docker 1.13.1 | 
| find . -type f -print0 | xargs -0 -n 1 -P 4 dos2unix | 
| <ruby> | |
| File.open("/root/workspaces.txt", "r") do |f| | |
| f.each_line do |line| | |
| run_single("workspace #{line}") | |
| run_single("db_export -f xml -a /root/msf_workspace_export/#{line}_export_13Aug2016.xml") | |
| run_single("db_export -f pwdump -a /root/msf_workspace_export/#{line}_export_13Aug2016.pwdump") | |
| end | |
| end | |
| </ruby> | 
| #!/usr/bin/env node | |
| try{ | |
| var webdriverio = require('webdriverio'); | |
| var options = { | |
| desiredCapabilities: { browserName: 'phantomjs' }, | |
| webStorageEnabled: true, | |
| logLevel: 'verbose' | |
| }; | 
| [alias] | |
| sub-init = "!init() { git checkout master && git pull && git submodule update --init --recursive; }; init" | |
| sub-up = "!up() { git submodule foreach git checkout master && git pull; }; up" | |
| sub-diff = "!diff() { git submodule foreach 'echo $path `git diff`'; }; diff;" | |
| springcleaning = for-each-ref --sort=-committerdate --format='%(refname:short) %(committerdate:short)' | |
| unstage = reset HEAD -- | |
| pu = !="git fetch origin -v; git fetch upstream -v; git merge upstream/master" | |
| vim = !.git/hooks/vim | 
| SELECT | |
| K_Table = FK.TABLE_NAME, | |
| FK_Column = CU.COLUMN_NAME, | |
| PK_Table = PK.TABLE_NAME, | |
| PK_Column = PT.COLUMN_NAME, | |
| Constraint_Name = C.CONSTRAINT_NAME | |
| FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS C | |
| INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS FK ON C.CONSTRAINT_NAME = FK.CONSTRAINT_NAME | |
| INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS PK ON C.UNIQUE_CONSTRAINT_NAME = PK.CONSTRAINT_NAME | |
| INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE CU ON C.CONSTRAINT_NAME = CU.CONSTRAINT_NAME | 
| ### PATH for MySQL | |
| ##export PATH=/usr/local/mysql/bin:$PATH | |
| ## | |
| ### PATH for MongoDB | |
| ##export PATH=/Applications/mongodb-osx-x86_64-2.0.0/bin:$PATH | |
| # | |
| export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH | |
| # Add home dir scripts to the path | 
| [user] | |
| name = Chris Blazek | |
| email = [email protected] | |
| [color] | |
| status = auto | |
| branch = auto | |
| diff = auto | |
| ui = auto |