Skip to content

Instantly share code, notes, and snippets.

View CharlieBrownCharacter's full-sized avatar
🎯

Bruno Francisco CharlieBrownCharacter

🎯
  • Europe
View GitHub Profile
@7rin0
7rin0 / apache2_vhost_config_vuejs_dist
Created June 18, 2018 13:50
VueJS: Apache / Nginx vhost config examples
<VirtualHost *:80>
DocumentRoot "/home/dev/server/project/dist/"
ServerName vuejs.project.local
<Directory /home/dev/server/project/dist/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
Order allow,deny
allow from all
@t-cyrill
t-cyrill / getimagesizefromstring.php
Created July 30, 2013 01:50
Define getimagesizefromstring to use in PHP 5.3
<?php
if (!function_exists('getimagesizefromstring')) {
function getimagesizefromstring($data)
{
$uri = 'data://application/octet-stream;base64,' . base64_encode($data);
return getimagesize($uri);
}
}