Can check if you're using swap with sudo swapon --show
and free -h
.
Useful for t2.micro and other instances with no access to instance store. Use this if you prefer not to mess with the root volume.
- Create the EBS volume e.g., 1 GB.
import pandas as pd | |
import itertools | |
import time | |
import multiprocessing | |
from typing import Callable, Tuple, Union | |
def groupby_parallel( | |
groupby_df: pd.core.groupby.DataFrameGroupBy, | |
func: Callable[[Tuple[str, pd.DataFrame]], Union[pd.DataFrame, pd.Series]], | |
num_cpus: int = multiprocessing.cpu_count() - 1, |
import argparse | |
from pyPdf import PdfFileWriter, PdfFileReader | |
def create_parsers(): | |
p = argparse.ArgumentParser( | |
prog='crop', | |
description='"%(prog)s" crop pdfs', |
<template> | |
<div class="container main"> | |
<section class="section"> | |
<article class="message"> | |
<div class="message-header is-info"> | |
<p>Register Form</p> | |
</div> | |
<div class="message-body"> | |
<form ref="form" @submit.prevent="onSubmit"> | |
<b-field |
Put the following directives in your server
block. nginx will then redirect URLs with double (or triple or multiple) slashes to the corresponding URL with a single slash.
merge_slashes off;
rewrite ^(.*?)//+(.*?)$ $1/$2 permanent;