This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| -------------------------------------------- | |
| Version: 1.45.1 | |
| Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a | |
| Date: 2020-05-14T08:33:47.663Z | |
| Electron: 7.2.4 | |
| Chrome: 78.0.3904.130 | |
| Node.js: 12.8.1 | |
| V8: 7.8.279.23-electron.0 | |
| OS: Darwin x64 18.5.0 | |
| ------------------------------------------- | 
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
Port to 2222 (or any other port above 1000)PasswordAuthentication to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restartOur goal here is to have one USB stick to rule them all. Objectives:
The last bullet is subject to interpretation, but I'm defining functional as:
| # If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer! | |
| export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " | |
| # This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty! | |
| # ~/code/web:beta_directory$ git checkout master | |
| # Switched to branch "master" | |
| # ~/code/web:master$ git checkout beta_directory | |
| # Switched to branch "beta_directory" |