Skip to content

Instantly share code, notes, and snippets.

View micdenny's full-sized avatar

Michael Denny micdenny

View GitHub Profile
@kekru
kekru / Docker connect to remote server.md
Last active April 15, 2024 16:26
Connect to another host with your docker client, without modifying your local Docker installation

Run commands on remote Docker host

This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.

Enable Docker Remote API

First be sure to enable the Docker Remote API on the remote host.

This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.

@KeithGillette
KeithGillette / MessageService.ts
Last active February 5, 2018 21:23
Simple TypeScript Message Bus (supporting Angular DI)
import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs/Rx';
import { filter, map } from 'rxjs/operators';
export interface IClassConstructor<T> {
new (...args: any[]): T;
}
export interface IMessage {
channel: Function;
#! /usr/bin/env python
import posixpath
import argparse
import urllib
import os
from SimpleHTTPServer import SimpleHTTPRequestHandler
from BaseHTTPServer import HTTPServer
@SimplyChris
SimplyChris / gist:dad867b3f1854528243f
Created May 19, 2014 02:12
Octodeploy Variables
Octopus.Acquire.MaxParallelism
Octopus.Action[Deploy Cardio API - Host].Azure.CertificateBytes
Octopus.Action[Deploy Cardio API - Host].Azure.CertificateThumbprint
Octopus.Action[Deploy Cardio API - Host].Azure.CloudServiceName
Octopus.Action[Deploy Cardio API - Host].Azure.Endpoint
Octopus.Action[Deploy Cardio API - Host].Azure.Slot
Octopus.Action[Deploy Cardio API - Host].Azure.StorageAccountName
Octopus.Action[Deploy Cardio API - Host].Azure.SubscriptionId
Octopus.Action[Deploy Cardio API - Host].Azure.SwapIfPossible
Octopus.Action[Deploy Cardio API - Host].Azure.UploadedPackageUri
@rheone
rheone / PostmanApiController.cs
Last active August 13, 2023 02:31
Generate JSON Postman Collections from a WebApi2 project using WebApi HelpPages
/// <summary>
/// Based on
/// http://blogs.msdn.com/b/yaohuang1/archive/2012/06/15/using-apiexplorer-to-export-api-information-to-postman-a-chrome-extension-for-testing-web-apis.aspx
/// </summary>
[RoutePrefix("api/postman")]
public class PostmanApiController : ApiController
{
/// <summary>
/// Produce [POSTMAN](http://www.getpostman.com) related responses
/// </summary>
@eznj
eznj / star_wars.ino
Last active September 26, 2023 18:24
Arduino Star Wars Song
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
const int b = 466;
const int cH = 523;
@afair
afair / tmux.cheat
Last active October 11, 2023 13:48
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New new -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@jongalloway
jongalloway / download-entries.ps1
Created November 29, 2011 21:38 — forked from mattpodwysocki/download-entries.ps1
Download entries from NuGet
# --- settings ---
$feedUrlBase = "http://go.microsoft.com/fwlink/?LinkID=206669"
# the rest will be params when converting to funclet
$latest = $true
$overwrite = $false
$top = 5000 #use $top = $null to grab all
$destinationDirectory = join-path ([Environment]::GetFolderPath("MyDocuments")) "NuGetLocal"
# --- locals ---
$webClient = New-Object System.Net.WebClient