###To laptop
Specify an IP address to eth0 (here 192.168.56.1)
sudo ifconfig eth0 192.168.56.1 netmask 255.255.255.0
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
# https://gist.github.com/xoxefdp/981df1776d2a653bc0ce5687142d0fa3 | |
# Check if argument for dhcp interface is present | |
if [ $# -lt 2 ]; then | |
printf "Supply arguments for CERTIFICATE_NAME, CERTIFICATE_SUBJ" | |
exit 1 | |
fi |
#--------------------------------------------------------------------------------- | |
#The sample scripts are not supported under any Microsoft standard support | |
#program or service. The sample scripts are provided AS IS without warranty | |
#of any kind. Microsoft further disclaims all implied warranties including, | |
#without limitation, any implied warranties of merchantability or of fitness for | |
#a particular purpose. The entire risk arising out of the use or performance of | |
#the sample scripts and documentation remains with you. In no event shall | |
#Microsoft, its authors, or anyone else involved in the creation, production, or | |
#delivery of the scripts be liable for any damages whatsoever (including, | |
#without limitation, damages for loss of business profits, business interruption, |
dynu.com | |
dyn.com | |
no-ip.com / noip.com | |
changeip.com | |
afraid.org | |
duckdns.org | |
dnsdynamic.org | |
duiadns.net | |
myonlineportal.com | |
dns4e.com |
#!/bin/sh | |
# EDIT this | |
[email protected] | |
PASSWORD=yoursecret | |
DOMAIN=example.dnsd.me | |
IP=`curl --silent -k https://myip.dnsdynamic.com/` | |
curl --silent --user "$EMAIL:$PASSWORD" -k "https://www.dnsdynamic.org/api/?hostname=$DOMAIN&myip=$IP" |
# https://success.docker.com/article/How_to_completely_remove_Docker_in_Windows_10 | |
$ErrorActionPreference = "SilentlyContinue" | |
kill -force -processname 'Docker for Windows', com.docker.db, vpnkit, com.docker.proxy, com.docker.9pdb, moby-diag-dl, dockerd | |
try { | |
./MobyLinux.ps1 -Destroy | |
} Catch {} |
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just