#vim
shift V
select line, up or down select linesshift >
shift select block or line outshift <
shift select block or line ind
to delete highlighted text and copy to cliboardD
delete everything after cursor to end of liney
to copy (yank)
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from os import walk, rename, unlink, mkdir, remove | |
from os.path import isdir, exists | |
from sys import argv, exit, getfilesystemencoding | |
from shutil import copyfile | |
import shutil | |
conversion = { |
# Get your files that Gmail block. Warning message: | |
# "Anti-virus warning - 1 attachment contains a virus or blocked file. Downloading this attachment is disabled." | |
# Based on: http://spapas.github.io/2014/10/23/retrieve-gmail-blocked-attachments/ | |
# Go to your emails, click the arrow button in the top right, "Show original", save to the same directory as this script. | |
import email | |
import sys | |
import os | |
if __name__ == '__main__': |
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |
if ($request_method = OPTIONS) { | |
# Handle OPTIONS method | |
add_header Content-Length 0; | |
add_header Content-Type text/plain; | |
return 204; | |
} | |
# Headers get added no matter the request method | |
more_set_headers "Access-Control-Allow-Credentials: true"; | |
more_set_headers "Access-Control-Allow-Methods: GET, POST, PUT, DELETE"; |
upstream api_hosts { | |
server 127.0.0.1:59000; | |
} | |
server { | |
listen 80; | |
location / { | |
root /opt/ui/ui-dist; |
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