This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"github.com/tarm/serial" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
curl -SsfL https://data.iana.org/TLD/tlds-alpha-by-domain.txt | sed '/^#/d' - | awk '{print tolower($0)}' |
the saddest guy trapped in dayz deer isle alcatraz, trying to get out of the water but can't. tries to get screenshots instead to feel useful while waiting to get respawned. 😂😂
 { }
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go mod init $(git remote -v | head -n 1 | sed -E 's/.*:([^\.]+)\..*/\1/' | awk '{print "github.com/"$1}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# basic | |
npx -p @angular/cli ng new myappshop | |
# create angular app in the current directory especially when the current folder is already a git repo | |
npx -p @angular/cli ng new $(basename "$PWD") --directory=./ --skip-git | |
# with scss and defaults | |
npx -p @angular/cli ng new $(basename "$PWD") --directory=./ --skip-git --style=scss --defaults | |
# with version 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ng serve --host $(hostname -I | cut -f1 -d' ') |