Create a spy
// "bare" spy
var spy = jasmine.createSpy('spyName');
// Mock object of spies: spy.next(), spy.current(), etc
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; | |
} |
# Required: an admin contact for errors, billing issues, and the like | |
admin_email: [email protected] | |
# Optional: timezone for when to send and how to format emails | |
# defaults to "Australia/Melbourne" | |
timezone: "Australia/Melbourne" | |
# Required: config for shipping news (notify on merged PRs) | |
shipping: | |
# Array of release notifications to send | |
- |
# You're looking at it! :) | |
help: | |
@makehelp < $(MAKEFILE_LIST) | |
.PHONY: help |
NOTE: this is out of date - refer to moby/moby#9694
Here is a preview build of two new features we’re working on concurrently: container grouping (docker groups
) and stack composition (docker up
). Together, they will eventually form a complete replacement for Fig.
This text explains how to create and deploy a Docker-based AWS Elastic Beanstalk site and how to control it using CloudFormation.
Please find the CloudFormation template at the end of this Gist.
We assume that you are familiar with AWS ElasticBeanstalk, AWS CloudFormation and Docker.
function! s:butt() abort | |
syn match cloud2butt "\<th\%(e cloud\>\)\@=" conceal cchar=m | |
syn match cloud2butt "\%(\<th\)\@<=e\%( cloud\>\)\@=" conceal cchar=y | |
syn match cloud2butt "\%(\<the \)\@<=c\%(loud\>\)\@=" conceal cchar=b | |
syn match cloud2butt "\%(\<the c\)\@<=l\%(oud\>\)\@=" conceal cchar=u | |
syn match cloud2butt "\%(\<the cl\)\@<=o\%(ud\>\)\@=" conceal cchar=t | |
syn match cloud2butt "\%(\<the clo\)\@<=ud\>" conceal cchar=t | |
endfunction |
require "strscan" | |
class LenientCSV | |
def initialize(source) | |
@scanner = StringScanner.new(source) | |
end | |
def each | |
until @scanner.eos? | |
yield scan_row |
I've been wanting to do a serious project in Go. One thing holding me back has been a my working environment. As a huge PyCharm user, I was hoping the Go IDE plugin for IntelliJ IDEA would fit my needs. However, it never felt quite right. After a previous experiment a few years ago using Vim, I knew how powerful it could be if I put in the time to make it so. Luckily there are plugins for almost anything you need to do with Go or what you would expect form and IDE. While this is no where near comprehensive, it will get you writing code, building and testing with the power you would expect from Vim.
I'm assuming you're coming with a clean slate. For me this was OSX so I used MacVim. There is nothing in my config files that assumes this is the case.
#!/bin/bash | |
set -e | |
version=$(VBoxManage --version) | |
filename="VirtualBox-${version//r/-}-OSX.dmg" | |
base=$(echo ${version//r/-} | cut -d- -f1) | |
echo "downloading installer (for uninstall tool)" | |
if ! [ -f ~/Downloads/$filename ]; then | |
curl -C - -L -o ~/Downloads/$filename \ |