This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Get the size of the image file using Lua. | |
## Cf. http://wiki.nginx.org/HttpLuaModule#set_by_lua. | |
location ~* \.(?:gif|jpe?g|png)$ { | |
set_by_lua $img_file_size ' | |
function fsize (file) | |
local current = file:seek() -- get current position | |
local size = file:seek("end") -- get file size | |
file:seek("set", current) -- restore position | |
return size | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Balancing over 4 nodes by hashing URI (consistently with md5) | |
# onto 16 shards. | |
upstream x0 { server 192.168.0.2; server 192.168.0.3 backup; } | |
upstream x1 { server 192.168.0.2; server 192.168.0.4 backup; } | |
upstream x2 { server 192.168.0.2; server 192.168.0.5 backup; } | |
upstream x3 { server 192.168.0.2; server 192.168.0.3 backup; } | |
upstream x4 { server 192.168.0.3; server 192.168.0.4 backup; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; clips-mode.el --- Clips editing mode. | |
;;;************************************************************************ | |
;;; Basado en jess-mode.el de: | |
;; Copyright (C) 1999 by David E. Young. | |
;; Author: David E. Young <david.young@fnc.fujitsu.com> | |
;; Keywords: languages, clips |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tiling:1": { | |
"tile_width": 768, | |
"tile_height": 768, | |
"match_extents": false, | |
"output_prefix": "", | |
"augmentation_factor": 1, | |
"discard_empty_tiles": true | |
}, | |
"data-conversion:1": { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# first_job_run.sh --- Simple bash script to run a first job via the | |
# UP42 API. | |
# Copyright (C) 2019 UP42 GmbH | |
# Author: António P. P. Almeida <antonio.almeida@up42.com> | |
# Permission is hereby granted, free of charge, to any person obtaining a |