ssh-add github_private_key
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed
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
| server { | |
| listen 80; | |
| # maps p8080.example.com -> localhost:8080 | |
| server_name ~^p(?<port>[^.]+)\.example\.com$; | |
| location / { | |
| proxy_pass http://localhost:$port; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; |
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
| import base64 | |
| def encode(key, clear): | |
| enc = [] | |
| for i in range(len(clear)): | |
| key_c = key[i % len(key)] | |
| enc_c = chr((ord(clear[i]) + ord(key_c)) % 256) | |
| enc.append(enc_c) | |
| return base64.urlsafe_b64encode("".join(enc).encode()).decode() | |
| def decode(key, enc): |
OlderNewer
