create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # 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" |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
People
:bowtie: |
๐ :smile: |
๐ :laughing: |
|---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)##Windows users:
cmder will be refered as console
##Mac Os, Ubuntu and windows users continue here:
homestead utf8_general_ci| package math | |
| import "testing" | |
| func setupTestCase(t *testing.T) func(t *testing.T) { | |
| t.Log("setup test case") | |
| return func(t *testing.T) { | |
| t.Log("teardown test case") | |
| } | |
| } |
| #!/bin/bash | |
| # This installs alacritty terminal on ubuntu (https://github.com/jwilm/alacritty) | |
| # You have to have rust/cargo installed for this to work | |
| # Install required tools | |
| sudo apt-get install -y cmake libfreetype6-dev libfontconfig1-dev xclip | |
| # Download, compile and install Alacritty | |
| git clone https://github.com/jwilm/alacritty |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| // return channel for input numbers | |
| func getInputChan() <-chan int { | |
| // make return channel | |
| input := make(chan int, 100) |