Skip to content

Instantly share code, notes, and snippets.

@andymac4182
andymac4182 / register a myget feed.markdown
Created April 6, 2016 12:09 — forked from xavierdecoster/register a myget feed.markdown
Store MyGet credentials in your roaming user profile NuGet.config

Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey]. Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).

Store credentials in machine-level nuget.config (non-transferable)

nuget setapikey [apikey] -source [feedUrl]
nuget sources add|update -Name [name] -source [feedUrl] -User [username] -pass [password]
void Main()
{
var server = "";
var apiKey = "";
var endpoint = new OctopusServerEndpoint(server, apiKey);
var repository = new OctopusRepository(endpoint);
var projectList = repository.Projects.GetAll();
var dumpedVariables = new List<DumpedVariable>();
An invalid character was found in the mail header: '@'.
@andymac4182
andymac4182 / gist:7ccf1623017b3e6aa0f9
Created October 13, 2014 06:45
Hammer Setup 3s 5 inch props
Current Config: Copy everything below here...
aux 0 0
aux 1 1
aux 2 2
aux 3 0
aux 4 0
aux 5 0
aux 6 0
aux 7 0
aux 8 0
@andymac4182
andymac4182 / gist:df51e6ab72ed28da4158
Created October 6, 2014 00:00
Naze32 Hammer SS 2204 HQ5x4.5 Looptime 3500
Afro32 CLI version 2.3 Oct 1 2014 / 07:45:46Current Config: Copy everything below here...
aux 0 0
aux 1 1
aux 2 2
aux 3 0
aux 4 0
aux 5 0
aux 6 0
aux 7 0
aux 8 0
param (
[string]$range = '10.1.80'
)
# Usage:
# getcompnames.ps1 -range 'x.x.x'
# default range: 10.1.80