- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml- using inventory:
127.0.0.1 ansible_connection=local| # Markdown | |
| *.md linguist-vendored=false | |
| *.md linguist-generated=false | |
| *.md linguist-documentation=false | |
| *.md linguist-detectable=true | |
| # YAML | |
| *.y*ml linguist-vendored=false | |
| *.y*ml linguist-generated=false | |
| *.y*ml linguist-documentation=false |
| "editor.tokenColorCustomizations": { | |
| "textMateRules": [ | |
| { | |
| "scope": [ | |
| "comment", | |
| "comment.block", | |
| "comment.block.documentation", | |
| "comment.line", | |
| "constant", | |
| "constant.character", |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/base64" | |
| "fmt" | |
| "io/ioutil" | |
| "mime/multipart" | |
| "net/smtp" | |
| "os" |
| # on terminal | |
| VBoxManage list ostypes |
| package main | |
| import ( | |
| "log" | |
| "syscall" | |
| "unsafe" | |
| ) | |
| var ( | |
| kernel32 = syscall.NewLazyDLL("kernel32.dll") |
ansible-playbook --connection=local 127.0.0.1 playbook.yml127.0.0.1 ansible_connection=local| package main | |
| import ( | |
| "net/http" | |
| "os" | |
| "bytes" | |
| "path" | |
| "path/filepath" | |
| "mime/multipart" | |
| "io" |
A monad is a fancy word for a generic type of the form MyMonad<T> (a generic type of arity 1).
A monad is special because it adds 'special powers' to the T that it wraps.
These 'special powers' won't sound very special to an imperative programmer, so you have to squint to see them but bear with me.
IEnumerable<T> is a monad that gives values of type T the special power of nondeterminism, or the ability to 'be' multiple values at once.Nullable<T> is a monad that gives values of type T the special power of nullability, or the ability to be absent.Task<T> is a monad that gives values of type T the special power of asynchronicity, or the ability to be used before they are computed.The trick with monads comes when you want to play with the T values, because they are inside another type. C# introduced language changes to make dealing with values inside these monads easier:
Typing vagrant from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.Text.RegularExpressions; | |
| using System.Windows; | |
| using System.Windows.Interop; |