Skip to content

Instantly share code, notes, and snippets.

View DavidObando's full-sized avatar
:octocat:

David Obando DavidObando

:octocat:
View GitHub Profile
@DavidObando
DavidObando / docker-ubuntuvm-hyperv.md
Created October 17, 2016 19:13
Docker on Ubuntu VM on Hyper-V

There's network issues from inside of the containers if you don't do this. If you are deploying containers on Ubuntu VM on Hyper-V, then:

  • run nm-tool on the Ubuntu VM and pick any one of the DNS addresses in the output

  • sudo vi /etc/default/docker and add the DNS ip to DOCKER_OPTS parameter.

  • sudo service docker restart

git checkout master
git checkout -b mybranch
git add myfile
git commit -m "add myfile"
git format-patch master --stdout > addmyfile.patch
~~~
git checkout master
git checkout -b myotherbranch
cat addmyfile.patch | git am --signoff
public class LFSR
{
int _n;
// provide seed value which determines the sequence
public LFSR(int n)
{
_n = n;
}
$HOST.UI.RawUI.BackgroundColor
= "DarkBlue"
$HOST.UI.RawUI.ForegroundColor
= "White"