Skip to content

Instantly share code, notes, and snippets.

View WMcKibbin's full-sized avatar
💭
Something need doing? Work. Work.

W Scott McKibbin WMcKibbin

💭
Something need doing? Work. Work.
View GitHub Profile
@WMcKibbin
WMcKibbin / test.js
Last active April 14, 2020 22:26
A gist to explain mocking constructor
///////////////////////////////////////////////////////////////
//Dependency Injection
///////////////////////////////////////////////////////////////
/**
* Provides Inversion of Control interface wrapping Bottlejs
*/
class ApplicationContext {
/**
* Create a new ApplicationContext with a given name
@WMcKibbin
WMcKibbin / tmux-ssh.sh
Created August 12, 2019 15:07
Quick and dirty sync'd ssh to multiple servers
#!/bin/bash
# Assume session is 0
tmux attach-session -t 0
WINDOW=$(tmux display-message -p "#I")
FIRST_ARG=""
for arg in $*; do
if [[ $arg != *"%"* ]]; then
if [[ $FIRST_ARG == "" ]]; then
FIRST_ARG=$arg

Keybase proof

I hereby claim:

  • I am wmckibbin on github.
  • I am wsmckibbin (https://keybase.io/wsmckibbin) on keybase.
  • I have a public key ASD3cYL_oKgagQsJJOmWrTzlA5AcPy1QjWAV4AdmkHqMcwo

To claim this, I am signing this object:

@WMcKibbin
WMcKibbin / curl.md
Created May 10, 2019 03:21 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.