mirror of
https://github.com/linkedin/school-of-sre
synced 2026-01-09 10:08:02 +00:00
Remove shell prompt so shell commands are easier to read
This fixes this issue #83 I made this commit by running a find replace with the pattern '^.*spatel1\$' and replaced it with '$'
This commit is contained in:
committed by
Sanket Patel
parent
6100c9af50
commit
a605e72695
@@ -47,14 +47,14 @@ Well, Java's compiler is more strict and sophisticated. As you might know Java i
|
||||
|
||||
```bash
|
||||
# Create a Hello World
|
||||
spatel1-mn1:tmp spatel1$ echo "print('hello world')" > hello_world.py
|
||||
$ echo "print('hello world')" > hello_world.py
|
||||
|
||||
# Making sure it runs
|
||||
spatel1-mn1:tmp spatel1$ python3 hello_world.py
|
||||
$ python3 hello_world.py
|
||||
hello world
|
||||
|
||||
# The bytecode of the given program
|
||||
spatel1-mn1:tmp spatel1$ python -m dis hello_world.py
|
||||
$ python -m dis hello_world.py
|
||||
1 0 LOAD_NAME 0 (print)
|
||||
2 LOAD_CONST 0 ('hello world')
|
||||
4 CALL_FUNCTION 1
|
||||
|
||||
@@ -83,13 +83,13 @@ OUTPUT:
|
||||
|
||||
===> SHORTENING
|
||||
|
||||
spatel1-mn1:tmp spatel1$ curl localhost:5000/shorten -H "content-type: application/json" --data '{"url":"https://linkedin.com"}'
|
||||
$ curl localhost:5000/shorten -H "content-type: application/json" --data '{"url":"https://linkedin.com"}'
|
||||
Shortened: r/a62a4
|
||||
|
||||
|
||||
===> REDIRECTING, notice the response code 302 and the location header
|
||||
|
||||
spatel1-mn1:tmp spatel1$ curl localhost:5000/r/a62a4 -v
|
||||
$ curl localhost:5000/r/a62a4 -v
|
||||
* Uses proxy env variable NO_PROXY == '127.0.0.1'
|
||||
* Trying ::1...
|
||||
* TCP_NODELAY set
|
||||
|
||||
Reference in New Issue
Block a user