From 1faadf4845dab00c430a9bd4d01a8f196780120e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 1 Sep 2021 14:34:07 -0500 Subject: [PATCH] CLEAN: rename files Signed-off-by: Jeff Carr --- .gitignore | 1 + Makefile | 2 ++ {example-aminal => broken/example-aminal}/Makefile | 3 +++ {example-aminal => broken/example-aminal}/config.go | 0 {example-aminal => broken/example-aminal}/logger.go | 0 {example-aminal => broken/example-aminal}/main.go | 0 broken/example-sshd/Makefile | 5 +++++ {example-sshd => broken/example-sshd}/main.go | 0 {example-sshd => broken/example-sshd}/sshd.go | 0 example-ssh/Makefile | 3 +++ example-ssh/ed25519.go | 2 ++ example-ssh/scp.go | 2 ++ example-ssh/ssh-client.go | 2 ++ example-ssh/ssh-ed25519.go | 2 +- example-ssh/with-passwd.go | 2 ++ 15 files changed, 23 insertions(+), 1 deletion(-) rename {example-aminal => broken/example-aminal}/Makefile (78%) rename {example-aminal => broken/example-aminal}/config.go (100%) rename {example-aminal => broken/example-aminal}/logger.go (100%) rename {example-aminal => broken/example-aminal}/main.go (100%) create mode 100644 broken/example-sshd/Makefile rename {example-sshd => broken/example-sshd}/main.go (100%) rename {example-sshd => broken/example-sshd}/sshd.go (100%) diff --git a/.gitignore b/.gitignore index 264b9c9..a067d2e 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ example-lookupAAAA/example-lookupAAAA example-nohup/example-nohup example-pprof/example-pprof example-shell/example-shell +example-ssh/example-ssh example-systray/example-systray example-ui-controlgallery/example-ui-controlgallery example-ui-radiobutton/example-ui-radiobutton diff --git a/Makefile b/Makefile index 9286f5d..39e7a8d 100644 --- a/Makefile +++ b/Makefile @@ -29,12 +29,14 @@ build: # misc cd example-lookupAAAA; go install # nslookup cd example-json-decode; go install # raw golang byte handling + cd example-ssh; go install # scp example # golang things cd example-pprof; go install # dump out go process internals prep: make -C example-nohup prep + make -C example-sshd prep sub-make: # shell things diff --git a/example-aminal/Makefile b/broken/example-aminal/Makefile similarity index 78% rename from example-aminal/Makefile rename to broken/example-aminal/Makefile index 40646b7..4a55204 100644 --- a/example-aminal/Makefile +++ b/broken/example-aminal/Makefile @@ -5,3 +5,6 @@ build: build-windows: env GOOS=windows GOARCH=amd64 go build + +prep: + go get -v -t -u . diff --git a/example-aminal/config.go b/broken/example-aminal/config.go similarity index 100% rename from example-aminal/config.go rename to broken/example-aminal/config.go diff --git a/example-aminal/logger.go b/broken/example-aminal/logger.go similarity index 100% rename from example-aminal/logger.go rename to broken/example-aminal/logger.go diff --git a/example-aminal/main.go b/broken/example-aminal/main.go similarity index 100% rename from example-aminal/main.go rename to broken/example-aminal/main.go diff --git a/broken/example-sshd/Makefile b/broken/example-sshd/Makefile new file mode 100644 index 0000000..2ed1d98 --- /dev/null +++ b/broken/example-sshd/Makefile @@ -0,0 +1,5 @@ +all: + go install + +prep: + go get -v -t -u . diff --git a/example-sshd/main.go b/broken/example-sshd/main.go similarity index 100% rename from example-sshd/main.go rename to broken/example-sshd/main.go diff --git a/example-sshd/sshd.go b/broken/example-sshd/sshd.go similarity index 100% rename from example-sshd/sshd.go rename to broken/example-sshd/sshd.go diff --git a/example-ssh/Makefile b/example-ssh/Makefile index 35f6334..49dac79 100644 --- a/example-ssh/Makefile +++ b/example-ssh/Makefile @@ -1,3 +1,6 @@ +all: + go build + scp: go run scp.go diff --git a/example-ssh/ed25519.go b/example-ssh/ed25519.go index 624180d..e103863 100644 --- a/example-ssh/ed25519.go +++ b/example-ssh/ed25519.go @@ -1,3 +1,5 @@ +// +build ignore + package main import ( diff --git a/example-ssh/scp.go b/example-ssh/scp.go index c19f144..e7e40cc 100644 --- a/example-ssh/scp.go +++ b/example-ssh/scp.go @@ -1,3 +1,5 @@ +// +build ignore + package main import "bufio" diff --git a/example-ssh/ssh-client.go b/example-ssh/ssh-client.go index a54f5e3..40791e9 100644 --- a/example-ssh/ssh-client.go +++ b/example-ssh/ssh-client.go @@ -1,3 +1,5 @@ +// +build ignore + package main import ( diff --git a/example-ssh/ssh-ed25519.go b/example-ssh/ssh-ed25519.go index bfbe81b..6be2c6e 100644 --- a/example-ssh/ssh-ed25519.go +++ b/example-ssh/ssh-ed25519.go @@ -13,7 +13,7 @@ import "golang.org/x/crypto/ssh" func main() { - host := "mirrors.wit.com" + host := "mirrors.wit.org" port := "22" username := "jcarr" pass := "tryme" diff --git a/example-ssh/with-passwd.go b/example-ssh/with-passwd.go index c0c1c6d..6507e10 100644 --- a/example-ssh/with-passwd.go +++ b/example-ssh/with-passwd.go @@ -1,3 +1,5 @@ +// +build ignore + package main import (