This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Tools", | |
"url": "http://20.30.40.50:8080/tfs/DefaultCollection/Project/_git/Tools", | |
"description": "Internal developer tools", | |
"developers": [ | |
"Gert Lombard <[email protected]>" | |
], | |
"dependencies": [ | |
"http://20.30.40.50:8080/tfs/DefaultCollection/Other/_git/Libraries" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mkrepo () { | |
BBUSER=user | |
BBPASS=password | |
BBLOGIN=$BBUSER:$BBPASS | |
DIR=${PWD##*/} | |
echo "Making BitBucket repo '$DIR' ..." | |
git init | |
curl -u $BBLOGIN -X POST https://api.bitbucket.org/1.0/repositories/ -d "name=$DIR&is_private=1" -v | |
git remote add origin https://[email protected]/$BBUSER/$DIR.git | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see: https://github.com/boot2docker/boot2docker/pull/284 | |
URL=$(curl -s https://medium.com/boot2docker-lightweight-linux-for-docker/boot2docker-together-with-virtualbox-guest-additions-da1e3ab2465c | grep -io '"http://[^"]*iso"' | sed -E 's/"(.*)"/\1/' | head -1) | |
if [ -f ~/.boot2docker/boot2docker.iso ] && [ ! -f ~/.boot2docker/boot2docker-original.iso ] | |
then | |
echo Backup existing file to ~/.boot2docker/boot2docker-original.iso ... | |
mv ~/.boot2docker/boot2docker.iso ~/.boot2docker/boot2docker-original.iso | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See: https://www.npmjs.org/package/node-gyp | |
$vsVersion = "2012" | |
if (Test-Path HKLM:\Software\Microsoft\VisualStudio\12.0) { | |
$vsVersion = "2013" | |
} | |
npm.cmd config set msvs_version $vsVersion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Determine wireless device model (manufacturer 14e4 for Broadcom): | |
lspci -vvnn | grep 14e4 | |
# Install Broadcom STA driver for BCM43227: | |
sudo apt-get update | |
sudo apt-get install --reinstall linux-headers-generic build-essential dkms bcmwl-kernel-source | |
sudo modprobe -r b43 ssb wl brcmfmac brcmsmac bcma | |
sudo modprobe wl | |
# Connect (press Fn+F3 to enable wifi if necessary first): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ll='ls -FGlAhp' | |
function goweb () { | |
cd ~/src/MyProj | |
git up | |
ll | |
git status --short | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-ScriptPath { | |
$scritDir = Get-Variable PSScriptRoot -ErrorAction SilentlyContinue | ForEach-Object { $_.Value } | |
if (!$scriptDir) { | |
if ($MyInvocation.MyCommand.Path) { | |
$scriptDir = Split-Path $MyInvocation.MyCommand.Path -Parent | |
} | |
} | |
if (!$scriptDir) { | |
if ($ExecutionContext.SessionState.Module.Path) { | |
$scriptDir = Split-Path (Split-Path $ExecutionContext.SessionState.Module.Path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to add a new Git credential to the Credential Manager: | |
cmdkey /generic:LegacyGeneric:target=git:https://github.com /user:username /pass:"mypassword" | |
# to list all credentials: | |
cmdkey /list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@( | |
'Microsoft.TeamFoundation.Build.Client', | |
'Microsoft.TeamFoundation.Build.Common', | |
'Microsoft.TeamFoundation.Client', | |
'Microsoft.TeamFoundation.WorkItemTracking.Client' | |
) | % { | |
[Reflection.Assembly]::LoadWithPartialName($_) | Out-Null | |
} | |
$uri = [URI]"https://my-tfs-online.visualstudio.com/DefaultCollection/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE11-Win7&parts=4&filename=VMBuild_20131127/VirtualBox/IE11_Win7/Mac/IE11.Win7.For.MacVirtualBox.part{1.sfx,2.rar,3.rar,4.rar}" | |
brew install unrar | |
unrar x IE11.Win7.For.MacVirtualBox.part1.sfx | |
vboxmanage import "IE11 - Win7.ova" --vsys 0 --memory 2048 |