- c5.xlarge AWS instance: 4 CPUs, 8 GB RAM
- Ubuntu 18.04
- Go 1.12
- Python 2.7
- Vips 8.7.4
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
diff --git a/export_opencv.py b/export_opencv.py | |
new file mode 100644 | |
index 00000000..15bfef90 | |
--- /dev/null | |
+++ b/export_opencv.py | |
@@ -0,0 +1,23 @@ | |
+from ultralytics import YOLOv10 | |
+import argparse | |
+ | |
+if __name__ == "__main__": |
Loading
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
HEROKU_APPLICATION="your_application_name" | |
IMGPROXY_TAG="v3.7.2" | |
# You'll probably have to do this just once | |
heroku login | |
heroku container:login | |
# Make sure you use "-amd64" prefix. Otherwise you may accidentally deploy | |
# arm64 build of imgproxy which won't run on Heroku | |
docker pull us-docker.pkg.dev/imgproxy-pro/v3/imgproxy:$IMGPROXY_TAG-amd64 |
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
#include <stdlib.h> | |
#include <vips/vips.h> | |
int main( int argc, char *argv[] ) { | |
if( argc < 2 ) { | |
printf("src image path is missing\n"); | |
return 1; | |
} | |
if( argc < 3 ) { |
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
import ( | |
"imgproxy" | |
) | |
func foo() { | |
imgproxy.SetEndpoint("https://my-imgproxy.com") | |
imgproxy.SetKeySalt("MYKEY", "MYSALT") | |
imgproxyURL := imgproxy.NewUrl( | |
"local:///my_pic.jpg", |
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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} |
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
Concurrency Level: 8 | |
Time taken for tests: 579.080 seconds | |
Complete requests: 5000 | |
Failed requests: 0 | |
Total transferred: 253160000 bytes | |
HTML transferred: 251255000 bytes | |
Requests per second: 8.63 [#/sec] (mean) | |
Time per request: 926.528 [ms] (mean) | |
Time per request: 115.816 [ms] (mean, across all concurrent requests) | |
Transfer rate: 426.93 [Kbytes/sec] received |
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
FROM darthsim/imgproxy:latest | |
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ | |
&& apk --no-cache upgrade \ | |
&& apk add --no-cache nginx | |
RUN echo -e "#!/bin/bash\nnginx && imgproxy" > /usr/local/bin/imgproxy-nginx | |
RUN chmod +x /usr/local/bin/imgproxy-nginx | |
RUN mkdir -p /run/nginx |
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
server { | |
server_name your-domain.com; | |
listen 443; | |
client_max_body_size 8M; | |
ssl on; | |
ssl_certificate /path/to/your/cert.crt; | |
ssl_certificate_key /path/to/your/cert.key; |
NewerOlder