The order that files appear within Project Explorer is really, really important. If you want to use module A from module B, A.fs has to appear before B.fs. Use the keyboard shortcut of ALT+UP and ALT+DOWN to reorganize the order of modules. For more information about…

Create Azure Automation service within Azure. Create Username that the automation will run as within Azure Active Directory. Change password of Username that the automation will run under (by default the password provided is "Expired" and needs changing. Create a linked credential asset in the Automation service that contains the…

.fsx is designed to be standalone and require no other files, so everything needed to run must be specified in that file. External assemblies will need to be referenced using #r "../packages/assembly/assembly.dll" .fs is part of a project and if the assemblies are referenced in the project…

Download, install and link Dropbox as per the official instructions then create /etc/init.d/dropbox with the following contents and modify the DROPBOX_USERS variable as appropriate: #!/bin/sh # dropbox service DROPBOX_USERS="ghuntley" DAEMON=.dropbox-dist/dropboxd start() { echo "Starting dropbox..." for dbuser in $DROPBOX_USERS; do HOMEDIR=`getent…

Assuming a network configuration as follows whereby both servers are on the same switch/tun without any firewalls in between: # ifconfig tun0 addr:192.168.XXX.XXX Bcast:192.168.255.255 Mask:255.255.0.0 On Server A: ghuntley@servera:~# netcat -l -u -p 54321 On Server B:…

To upgrade all NuGet packages in a solution: Update-Package To upgrade all NuGet packages in a particular solution: Update-Package -Project ProjectName By default, the update command upgrades packages to the latest version in the feed. Recently a new featured called -Safe was added which allows for a more conservative upgrade…

Example snippet how to POST a application/json payload to a rest service and specify the return response should be application/json using Microsoft.Net.Http: using (var client = new HttpClient()) { client.DefaultRequestHeaders.TryAddWithoutValidation("Content-Type", "application/json"); client.DefaultRequestHeaders.TryAddWithoutValidation("Accept", "*/*"); var url = String.Format("https://{0}/rest/obm/1.…

The following snippet will automatically convert all disks which are RAW and partition and format them to NTFS volumes: Get-Disk | Where partitionstyle -eq 'raw' | Initialize-Disk -PartitionStyle MBR -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel "DATA" -Confirm:$false Never, ever run this script on a clustered system with shared storage…