Pork's Prague TripAdvisor
Marina Ristorante Italian TripAdvisor
John Lennon wall Google Maps
Cafe cafe TripAdvisor
Reduta Jazz club Website
# Export these as environment variables either in this file or elsewhere | |
VERCEL_BYPASS_TOKEN='<deployment bypass token found in Vercel settings>' | |
CRON_SECRET='<cron secret set up as environment variable>' | |
function callVercelCron() { | |
# Function documentation | |
local usage=" | |
Usage: callVercelCron <URL> | |
Makes an HTTP GET request to the specified URL with a bearer token provided in the script. |
--- | |
# Basic configuration | |
name: awesome-nodejs-project # The project's name | |
provider: aws # Which cloud provider to use | |
region: eu-central-1 # The default region to deploy to | |
# Terraform state storage | |
state: | |
bucket: project-name # Use a private, encrypted S3 bucket to store the state |
# You can use a docker daemon via SSH | |
# Here's how you'd run a container via SSH | |
$ docker -H ssh://<username>:<server> -it alpine date | |
# For convenience, this can be aliased as follows: | |
# (I use rdocker — as in remote docker) | |
$ alias rdocker="docker -H myusername@myserver" | |
# Example: | |
$ rdocker run -it alpine date |
with ThreadPoolExecutor(max_workers=os.cpu_count()) as executor: | |
futures = executor.map(process_func, plays) | |
for future in as_completed(futures, timeout=None): | |
failures += 1 if future.exception() else 0 | |
executor.shutdown(wait=True) |
Pork's Prague TripAdvisor
Marina Ristorante Italian TripAdvisor
John Lennon wall Google Maps
Cafe cafe TripAdvisor
Reduta Jazz club Website
2019/10/15 09:53:18 [info] 27513#27513: *11173 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 87.203.202.157, server: gremlin.gr, request: "GET /rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7abbc1583ddcc70ffe7227afc6a6adc01bd6514d/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lNT0RBd2VEZ3dNQVk2QmtWVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--a0d4840ae89f302d71bd86190481033bd87e685a/C21444_FW18_PureMove_Bra_Graphics_Pack_07_rgb_vbp__002-1255x742.jpg HTTP/1.1", upstream: "http://unix:///var/www/gremlin/shared/tmp/sockets/puma.sock:/rails/active_storage/representations/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7abbc1583ddcc70ffe7227afc6a6adc01bd6514d/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCam9MY21WemFYcGxTU0lNT0RBd2VEZ3dNQVk2QmtWVSIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--a0d4840ae89f302d71bd86190 |
# How To Add Swap Space on Ubuntu 18.04 | |
# | |
# Check out https://stackmate.io and find out how this (and much more) can be done automatically for you | |
# Before you run this script, please check that swap is not enabled with the following command: | |
# sudo swapon --show | |
# If it shows some output, then you probably don't need to run this script anymore | |
# We're allocating 8GB of swap | |
sudo fallocate -l 8G /swapfile |
<?php | |
/** | |
* Send data to Varnish | |
* | |
* @since 2.6.8 | |
* | |
* @param string $url The URL to purge. | |
* @return void | |
*/ | |
function rocket_varnish_http_purge( $url ) { |
I hereby claim:
To claim this, I am signing this object:
.crop { | |
display: block; | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} |