start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/sh | |
# | |
# This script will make WinMerge your default tool for diff and merge. | |
# It must run inside git bash (on Windows) | |
# | |
# | |
# If you experience path issues you should give a try to the gist | |
# created by markusobrist at https://gist.github.com/1010253 |
Veewee::Session.declare({ | |
:cpu_count => '1', :memory_size=> '384', | |
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', | |
:os_type_id => 'Ubuntu', | |
:iso_file => "ubuntu-10.04.4-server-i386.iso", | |
:iso_src => "http://releases.ubuntu.com/10.04.4/ubuntu-10.04.4-server-i386.iso", | |
:iso_md5 => "fc08a01e78348e3918180ea91a6883bb", | |
:iso_download_timeout => "1000", | |
:boot_wait => "10", :boot_cmd_sequence => [ | |
'<Esc><Esc><Enter>', |
## Options to set on the command line | |
d-i debian-installer/locale string en_GB | |
d-i console-setup/ask_detect boolean false | |
d-i console-setup/layout string "United Kingdom" | |
#d-i netcfg/get_hostname string dummy | |
d-i netcfg/get_hostname string unassigned-hostname | |
d-i netcfg/get_domain string unassigned-domain | |
# Continue without a default route |
file_to_disk = './tmp/large_disk.vdi' | |
Vagrant::Config.run do |config| | |
config.vm.box = 'base' | |
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] | |
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] | |
end |
#!/bin/bash | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
function Install-VisualStudio | |
{ | |
[CmdletBinding()] | |
param ( | |
[string] $ImagePath, | |
[string[]] $ArgumentList, | |
[string] $InstallPath, | |
[string] $ProductKey | |
) | |
Write-Verbose "Install Visual Studio 2012..." |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define "vagrant-windows" | |
config.vm.box = "windows2008r2" | |
# You should be using the vagrant-windows Vagrant Plugin! | |
# Admin user name and password | |
config.winrm.username = "Administrator" |
Patch mode allows you to stage parts of a changed file, instead of the entire file. This allows you to make concise, well-crafted commits that make for an easier to read history. This feature can improve the quality of the commits. It also makes it easy to remove parts of the changes in a file that were only there for debugging purposes - prior to the commit without having to go back to the editor.
It allows you to see the changes (delta) to the code that you are trying to add, and lets you add them (or not) separately from each other using an interactive prompt. Here's how to use it:
from the command line, either use
@ECHO OFF | |
SETLOCAL | |
GOTO:MAIN | |
REM | |
REM Info functions start | |
REM | |
REM Display version and copyright information | |
:VERSION |