Skip to content

Instantly share code, notes, and snippets.

@brasofilo
brasofilo / nginx.conf
Created May 10, 2020 13:05 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
<?php
/*
Plugin Name: Post Meta Revisions
Description: Revisions for the 'foo' post meta field
Version: 1.0
Author: John Blackbourn
Plugin URI: http://lud.icro.us/post-meta-revisions-wordpress
*/
@brasofilo
brasofilo / services_nextcloud_stack-compose.yml
Created January 22, 2021 03:28 — forked from robin-moser/services_nextcloud_stack-compose.yml
VPS Nextcloud Installation - Single Node Swarm, Portainer, Traefik LB
version: '3.7'
services:
mysql:
image: mariadb:10.3.5
networks:
- default
environment:
MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
MYSQL_DATABASE: $DB_NAME
@brasofilo
brasofilo / embedded-file-viewer.md
Created November 14, 2018 10:30 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links