sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| version: "3.3" | |
| services: | |
| ################################################ | |
| #### Traefik Proxy Setup ##### | |
| ############################################### | |
| traefik: | |
| image: traefik:v2.0 | |
| restart: always |
| //first part | |
| package main | |
| // second part | |
| import "fmt" | |
| // third part | |
| func main() { | |
| var message string = myMessage() // Here I'm declaring a variable and naming it "message" and telling it the type of thing it must collect. Strings. The code below shows a great simple application that prints hello world to the screen |
| #steps | |
| - copy your public ssh to clipboard | |
| - make the .ssh directory if it doesn't exist | |
| # mkdir -p ~/.ssh | |
| - Create and open the ~/.ssh/authorized_keys file for editing using a terminal-based text editor, like nano | |
| # nano ~/.ssh/authorized_keys | |
| - Paste the contents of your SSH key into the file by right-clicking in your terminal and choosing Paste or by using a keyboard shortcut like CTRL+SHIFT+V. Then, save and close the file | |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| class MainCommand extends Command | |
| { | |
| /** | |
| * The name and signature of the console command. |
| <?php | |
| // Converts a number into a short version, eg: 1000 -> 1k | |
| // Based on: http://stackoverflow.com/a/4371114 | |
| function number_format_short( $n, $precision = 1 ) { | |
| if ($n < 900) { | |
| // 0 - 900 | |
| $n_format = number_format($n, $precision); | |
| $suffix = ''; | |
| } else if ($n < 900000) { |