As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
package main | |
// run this file with `go run clientDoGzip.go, and then file tmp.out to verify body is gzipped | |
import "compress/gzip" | |
import "net/http" | |
import "fmt" | |
import "io" | |
import "log" | |
import "os" |
Typing vagrant
from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant up
-- starts vagrant environment (also provisions only on the FIRST vagrant up)vagrant status
-- outputs status of the vagrant machinevagrant halt
-- stops the vagrant machinevagrant reload
-- restarts vagrant machine, loads new Vagrantfile configurationvagrant provision
-- forces reprovisioning of the vagrant machineimport groovy.json.JsonSlurper | |
import org.springframework.test.web.servlet.MockMvc | |
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.* | |
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*; | |
import static org.springframework.http.HttpStatus.* | |
import spock.lang.Specification | |
/** | |
* A Spock Spring MVC Rest unit test that doesn't require a full spring context | |
*/ |
/* Groovy Usage: | |
The following example replaces: | |
the 1st occurrence of "James" in data.txt with "user1", | |
the 2nd occurrence of "James" in data.txt with "user2", | |
the 3rd occurrence of "James" in data.txt with "user3", | |
.. | |
the 9th occurrence of "James" in data.txt with "user9". | |
*/ | |
def myFile = new File("data.txt") |
Open TortoiseGit > Settings, and click on Diff Viewer.
Under the Configure the program used for comparing different revisions of files section, select External, and add the following into the text box.
WinMergeU.exe /r /e /x /u /wl %base %mine
Click on Merge Tool to the left, select External, enter the following.