Skip to content

Instantly share code, notes, and snippets.

@rjrudin
rjrudin / dhf5-test-resources.gradle
Created July 23, 2019 16:19
Deploying test resources for a DHF 5 application
/**
* The below tasks are used for deploying and undeploying test resources for a DHF 5 application. Just copy everything below
* this comment into the build.gradle file in your DHF application - no properties need to be set for these tasks to work.
*
* The task "hubDeployTestResources" will deploy test versions of your staging and final databases and app servers. You
* can customize these tasks if you don't like the resource names and ports that are used by them. Note that mlDeploy
* does not depend on this task by default - you'll need to invoke it in order to create test resources.
*
* The task "hubUndeployTestResources" will undeploy any test resources that were created. mlUndeploy does depend on
* this task as there's typically no downside to undeploying these resources - if they don't exist, the task will
@prestonmcgowan
prestonmcgowan / tasks.json
Last active May 22, 2019 20:53
Visual Studio Code: Gradle Tasks
{
"_comment": [
"See https://go.microsoft.com/fwlink/?LinkId=733558",
"for the documentation about the tasks.json format"
],
"version": "2.0.0",
"tasks": [
{
"label": "mlDeploy",
"type": "shell",
@alisdair
alisdair / kill-sticky.js
Created May 29, 2013 13:43
Kill sticky headers.
(function () {
var i, elements = document.querySelectorAll('body *');
for (i = 0; i < elements.length; i++) {
if (getComputedStyle(elements[i]).position === 'fixed') {
elements[i].parentNode.removeChild(elements[i]);
}
}
})();
@jschementi
jschementi / git-tfs.md
Created January 26, 2010 08:35
Using TFS and GIT together

Using TFS and GIT together

What if your team uses TFS, but you want offline support? You can have a Git repo as well, but then getting your changes to TFS is burdensome. Here’s where a GIT to TFS bridge would be handy.

Setting up your repo

Here’s how to keep a TFS repository foo, and a GIT repository bar, in sync. First step is you need to create a new TFS workspace:

cd \

tf workspace /new /noprompt Foo