- on the same IP
- on the same Port 80
Why?
coming...
Who?
| function! InsertTabWrapper(direction) | |
| let col = col('.') - 1 | |
| if !col || getline('.')[col - 1] !~ '\k' | |
| return "\<tab>" | |
| elseif "backward" == a:direction | |
| return "\<c-p>" | |
| else | |
| return "\<c-n>" | |
| endif | |
| endfunction |
| #!/usr/bin/env python | |
| """ | |
| Use pip to get a list of local packages to check against one or more package | |
| indexes for updated versions. | |
| """ | |
| import pip | |
| import sys, xmlrpclib | |
| from cStringIO import StringIO | |
| from distutils.version import StrictVersion, LooseVersion |
| #!/usr/bin/python | |
| file = open('0.txt', 'rb') | |
| lines = [] | |
| for line in file: | |
| lines.append(line) | |
| bigline = ''.join(lines) | |
| lines = bigline.split('\r') |
| server { | |
| listen 80; | |
| server_name %(name)s %(aliases)s; | |
| client_max_body_size 4G; | |
| keepalive_timeout 5; | |
| gzip on; | |
| gzip_static on; | |
| gzip_min_length 1000; | |
| gzip_types text/css text/plain text/javascript application/x-javascript application/x-json; |
| server { | |
| listen 80; | |
| server_name <url>; | |
| root /var/www/html; | |
| location / { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
| <title>Chronological Diagram of Asia</title> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
| <style type="text/css"> | |
| .chart { | |
| shape-rendering: crispEdges; | |
| } |
Tested only on Ubuntu 20.04, KDE Neon User Edition (based on Ubuntu 20.04) and OSX Mojave.
will probably work on other newer versions, with no changes, or with few changes in non-python dependencies (apt-get packages)
NOTE: Don't create a .sh file and run it all at once. It will not work. Copy, paste, and execute each command below manually. :-)
# DO NOT RUN THIS AS A ROOT USER