Skip to content

Instantly share code, notes, and snippets.

@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
@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
An invalid character was found in the mail header: '@'.
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>();
param (
[string]$range = '10.1.80'
)
# Usage:
# getcompnames.ps1 -range 'x.x.x'
# default range: 10.1.80
@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]

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

void Main()
{
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Warning()
.Enrich.FromLogContext()
.Enrich.WithProperty("url", "http://serilog.net/")
.WriteTo.Sink(new LingpadDumpSink())
.CreateLogger();
Log.Warning(
"Processing inside {@test}, something weird happened",
@andymac4182
andymac4182 / NpmInstallRecursive.js
Created August 1, 2016 02:32
NpmInstallRecursive
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
var walk = function(dir, done) {
var results = [];
fs.readdir(dir, function(err, list) {
if (err) return done(err);
var pending = list.length;
if (!pending) return done(null, results);