Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Emmanuel G. Brandão egomesbrandao

🏠
Working from home
View GitHub Profile
View restore-mymachine.txt
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
cinst git.install
cinst greenshot
cinst vscode
cinst microsoft-edge-insider -y
cinst docker
cinst 7zip
cinst firefox
View keybase.md

Keybase proof

I hereby claim:

  • I am egomesbrandao on github.
  • I am egomesbrandao (https://keybase.io/egomesbrandao) on keybase.
  • I have a public key ASAIJxxQTbJbudie5AB86mKU3iDMSnTt9BcJSXf0hnu4bAo

To claim this, I am signing this object:

@egomesbrandao
egomesbrandao / NetConnectionSharing.psm1
Created Oct 25, 2016 — forked from igoravl/NetConnectionSharing.psm1
NetConnectionSharing (PowerShell Module)
View NetConnectionSharing.psm1
#Based on code from http://superuser.com/questions/470319/how-to-enable-internet-connection-sharing-using-command-line
Function Set-NetConnectionSharing
{
Param
(
[Parameter(Mandatory=$true)]
[string]
$InternetConnection,
View Print-StoriesOverview.ps1
Import-Module TfsCmdlets
Connect-TfsTeamProjectCollection http://vsalm:8080/tfs/TailspinToysCollection
Get-TfsWorkItem -Filter '[System.IterationPath] = "Tailspin Toys\Iteration 2" And [System.WorkItemType] = "User Story"'
View upload-tfs-files
@echo off
witadmin importcategories /collection:%1 /p:%2 /f:categories.xml
witadmin importprocessconfig /collection:%1 /p:%2 /f:process.xml
FOR /F "eol=, tokens=*" %%i in (wits.txt) DO witadmin importwitd /collection:%1 /p:%2 /n:"%%i" /f:"%%i".xml
View download-tfs-files
@echo off
witadmin exportcategories /collection:%1 /p:%2 /f:categories.xml
witadmin exportprocessconfig /collection:%1 /p:%2 /f:process.xml
witadmin listwitd /collection:%1 /p:%2 > wits.txt
FOR /F "eol=, tokens=*" %%i in (wits.txt) DO witadmin exportwitd /collection:%1 /p:%2 /n:"%%i" /f:"%%i".xml
@egomesbrandao
egomesbrandao / create-newproject.ps1
Last active Aug 29, 2015
Create new project with Team field to Team Foundation Server
View create-newproject.ps1
Param(
[parameter(Mandatory=$false)][string] $CollectionUrlParam = $(Read-Host -prompt "Collection URL"),
[parameter(Mandatory=$false)][string] $TeamProjectParam = $(Read-Host -prompt "Team Project"),
[parameter(Mandatory=$true)][String] $GlobalListName = $(Read-Host -prompt "Project List"),
[parameter(Mandatory=$true)][String] $GlobalEntryValue = $(Read-Host -prompt "New project name")
)
$pathToAss2 = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v2.0"
$pathToAss4 = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v4.5"
Add-Type -Path "$pathToAss2\Microsoft.TeamFoundation.Client.dll"
@egomesbrandao
egomesbrandao / gist:04848304ef9034543103
Created Mar 10, 2015
One Team Project... ou usando o campo Team field - Edit ProcessConfiguration
View gist:04848304ef9034543103
<TypeFields>
(...)
<TypeField refname="MinhaEmpresa.Team" type="Team" />
</TypeFields>
<RequirementBacklog category="Microsoft.RequirementCategory" parent="Microsoft.FeatureCategory" pluralName="Stories" singularName="User Story">
<AddPanel>
<Fields>
<Field refname="System.Title" />
<Field refname="MinhaEmpresa.Team" />
@egomesbrandao
egomesbrandao / gist:9e0ddfd879e2eee5a21e
Created Mar 10, 2015
One Team Project... ou usando o campo Team field - Export ProcessConfiguration
View gist:9e0ddfd879e2eee5a21e
witadmin exportprocessconfig /collection:"http://localhost:8080/tfs/DefaultCollection" /p:"Minha Empresa OTP" /f:c:\YTemp\TeamfieldCustom\ProcessConfiguration.xml
@egomesbrandao
egomesbrandao / gist:0320a6821e2aa88d29ce
Created Mar 10, 2015
One Team Project... ou usando o campo Team field - Export GlobalList
View gist:0320a6821e2aa88d29ce
witadmin exportgloballist /collection:"http://localhost:8080/tfs/DefaultCollection" /f:c\YTemp\TeamfieldCustom\globallist.xml
You can’t perform that action at this time.