Skip to content

Instantly share code, notes, and snippets.


Rodolfo Buaiz brasofilo

View GitHub Profile
brasofilo / nginx.conf
Created May 10, 2020 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
brasofilo /
Created Nov 14, 2018 — forked from tzmartin/
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')[OFFICE_FILE_URL]

<iframe src='[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>

OneDrive Embed Links

View WordPress Shortcode with ob_start()
function custom_query_shortcode($atts) {
// [loop the_query="showposts=100&post_type=page&post_parent=453"]
// Defaults
"the_query" => ''
), $atts));
View XMLRPClientWordPress.php
class XMLRPClientWordPress
var $XMLRPCURL = "";
var $UserName = "username";
var $PassWord = "password";
// Constructor
public function __construct($xmlrpcurl, $username, $password)
$this->XMLRPCURL = $xmlrpcurl;
brasofilo / A Collection of User
Last active Oct 14, 2020
CommentsFormattingShortcuts.js (scripts here are linked from
View A Collection of User
brasofilo /
Last active Aug 29, 2015
Show JSFiddle revisions for each fiddle v2
// ==UserScript==
// @name           Show JSFiddle revisions for each fiddle v2
// @namespace
// @author 		   brasofilo
// @include*
// @description    Add revision history.
// ==/UserScript==

/* Stores the API list result */
/** Add World Map Data Points */
var my_map_data = {
"id": {
"path": "M781.68,324.4l-2.31,8.68l-12.53,4.23l-3.75-4.4l-1.82,0.5l3.4,13.12l5.09,0.57l6.79,2.57v2.57l3.11-0.57l4.53-6.27v-5.13l2.55-5.13l2.83,0.57l-3.4-7.13l-0.52-4.59L781.68,324.4L781.68,324.4M722.48,317.57l-0.28,2.28l6.79,11.41h1.98l14.15,23.67l5.66,0.57l2.83-8.27l-4.53-2.85l-0.85-4.56L722.48,317.57L722.48,317.57M789.53,349.11l2.26,2.77l-1.47,4.16v0.79h3.34l1.18-10.4l1.08,0.3l1.96,9.5l1.87,0.5l1.77-4.06l-1.77-6.14l-1.47-2.67l4.62-3.37l-1.08-1.49l-4.42,2.87h-1.18l-2.16-3.17l0.69-1.39l3.64-1.78l5.5,1.68l1.67-0.1l4.13-3.86l-1.67-1.68l-3.83,2.97h-2.46l-3.73-1.78l-2.65,0.1l-2.95,4.75l-1.87,8.22L789.53,349.11L789.53,349.11M814.19,330.5l-1.87,4.55l2.95,3.86h0.98l1.28-2.57l0.69-0.89l-1.28-1.39l-1.87-0.69L814.19,330.5L814.19,330.5M819.99,345.45l-4.03,0.89l-1.18,1.29l0.98,1.68l2.65-0.99l1.67-0.99l2.46,1.98l1.08-0.89l-1.96-2.38L819.99,345.45L819.99,345.45M753.17,358.32l-2.75,1.88l0.59,1.58l8.75,1.98l4.42,0.79l1.87,1.98l5.01,0.4l2.
brasofilo / jsfiddle-revisions.js
Created Sep 12, 2014
UserScript to show JSFiddle revisions for each fiddle
View jsfiddle-revisions.js
// ==UserScript==
// @name Show JSFiddle revisions for each fiddle
// @namespace
// @author brasofilo
// @include*
// @description Add revision history
// @require //
// ==/UserScript==
/* Stores the API list result */
View gist:a79aedb18fb55510ab4d
Plugin Name: Post Meta Revisions
Description: Revisions for the 'foo' post meta field
Version: 1.0
Author: John Blackbourn
Plugin URI:
You can’t perform that action at this time.