$ dig screego.ashishjullia.com +short
172.67.199.112
104.21.76.188
$ nc -vzw 1 172.64.80.1 3478
172.64.80.1 3478 (stun): Connection timed out
$ nc -vzw 1 104.21.76.188 3478
104.21.76.188 3478 (stun): Connection timed out
$ nc -vzw 1 172.64.80.1 80
172.64.80.1 80 (http) open
You can use regular expressions.
- Open your code in Visual Studio Code
- From Edit Menu, select Replace or use a short cut key (command + Option + F on Mac or Ctrl + H on Windows)
- In the find box type
^(\s)*$\n
- Leave the replace box empty
- Make sure the 'Use Regular Expression' is selected
- Select the 'Replace All' button
sed ':a;N;$!ba;s/\n/\\n/g' certificate_file_name_or_key_file_name | sed 's/^[ \t]*//;s/[ \t]*$//'
Let's break it down step by step.
1. sed ':a;N;$!ba;s/\n/\\n/g' certificate_file_name_or_key_file_name
:
:a
: Define a label called 'a'.N
: Append the next line of input to the current pattern space (with an embedded newline).
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"eks:AccessKubernetesApi", | |
"eks:DescribeCluster", | |
"eks:ListClusters", |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": [ | |
"arn:aws:iam::<account-number>:user/<username>" | |
] | |
}, |
NewerOlder