Skip to content

Instantly share code, notes, and snippets.

View dkarlovi's full-sized avatar
🖌️
Moving bytes around.

Dalibor Karlović dkarlovi

🖌️
Moving bytes around.
View GitHub Profile
@dkarlovi
dkarlovi / registry.example.com.conf
Last active February 7, 2024 19:38
GitLab's Container Registry (docker) behind Apache 2.4 reverse proxy
<VirtualHost *:80>
ServerName registry.example.com
ServerSignature Off
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
</VirtualHost>
<VirtualHost *:443>
<?php
use WindowsAzure\Blob\Models\ContainerAcl;
use WindowsAzure\Blob\Models\PublicAccessType;
// after having run a Job to create a thumbnail from our uploaded media item as seen:
// http://stackoverflow.com/questions/31070909/how-to-get-a-thumbnail-from-a-video-on-azure-media-services
// this asset contains our thumbnails
$asset = current($mediaServicesProxy->getJobOutputMediaAssets($job));
@dkarlovi
dkarlovi / README.md
Last active August 29, 2015 14:16
Testing the gist.io layout

This is basically a test of using gist.io as a blogging tool.

For example

Using it might involve some headings and paragraphs.