Skip to content

Instantly share code, notes, and snippets.

Happy to help out

Florian Rusch florianrusch

Happy to help out
  • Florian Rusch Webservices
  • Germany
View GitHub Profile
acecconato / FileUploader.php
Last active Apr 29, 2020
Symfony + EasyAdmin: File upload system
View FileUploader.php
Due to best practices, we need to create a new service which is used by the ImageListener.
Its role is to upload files and generate an unique filename.
The default $uploadPath is autowired by argument binding inside services.yaml
but in this case, we override it with the $path argument of the upload method.
mswell / config
Last active Jul 31, 2020
Terminator Dracula theme
View config
window_state = maximise
handle_size = 0
title_hide_sizetext = True
title_transmit_fg_color = "#bd93f9"
title_inactive_fg_color = "#f8f8f2"
title_receive_bg_color = "#282a36"
title_transmit_bg_color = "#282a36"
title_receive_fg_color = "#8be9fd"
mattd / gist:1006398
Created Jun 3, 2011
nginx try_files with a proxy_pass
View gist:1006398
server {
root /var/www/;
access_log /var/log/nginx/;
error_log /var/log/nginx/;
try_files /maintenance.html @proxy;
location @proxy {
You can’t perform that action at this time.