:<start>,<end>s/^/#/g
:1,10s/^/#/g
The important part is the ^
character which is the beginning of a line. The above example will comment out lines 1 - 10
{ | |
"name": "svelte-app", | |
"version": "1.0.0", | |
"private": true, | |
"scripts": { | |
"build": "rollup -c", | |
"dev": "rollup -c -w", | |
"start": "sirv public" | |
}, | |
"devDependencies": { |
worker_connections are not enough while connecting to upstream | |
nginx-- | |
worker_processes = 4 | |
worker_connections = 8192 | |
worker_rlimit_nofile 4096 | |
uwsgi -- | |
listen = 4096 | |
system -- | |
net.core.somaxconn = 32768 |
# this yaml file will have two key pairs. | |
foo: val | |
bar: val1 |
Ingredients:
1 ¼ cups buttermilk. I have not tried this yet with substituting vinegar + milk, but I will when I run out my current bottle of buttermilk.
1 ½ cups Quaker corn meal.
½ cup King Arthur all-purpose flour
1 ½ teaspoons baking powder. I’ve had trouble w/ generic store brands; name brand seems to work better.
In [19]: list2 = [("A", 2), ("B", 2), ("C", 3), ("D", 4), ("A", 1)] | |
In [20]: list2 | |
Out[20]: [('A', 2), ('B', 2), ('C', 3), ('D', 4), ('A', 1)] | |
In [21]: for i in list2: | |
...: print(i) | |
...: | |
('A', 2) | |
('B', 2) |
I hereby claim:
To claim this, I am signing this object:
import boto | |
#connect to s3 | |
c = boto.connect_s3() | |
#get bucket | |
bucket = c.get_bucket('bucket_name') | |
#files are keys |
import boto.ec2 | |
# Connect to region | |
ec2 = boto.ec2.connect_to_region('us-east-1') | |
# Get all disassociated IP addresses | |
addresses = ec2.get_all_addresses(filters={'instance-id':''}) | |
for address in addresses: |
python -c "import json;json_data=open('package.json');data=json.load(json_data);print data['version'];json_data.close()" |