Skip to content

Instantly share code, notes, and snippets.

Luc45 /
Created Dec 22, 2018
WordPress Multisite serve script for Nginx (Homestead, etc)
#!/usr/bin/env bash
block="# WordPress multisite subdirectory rules.
# Designed to be included in any server {} block.
map \$uri \$blogname{
~^(?P<blogpath>/[^/]+/)files/(.*) \$blogpath ;
map \$blogname \$blogid {
default -999;
Luc45 / bootstrap-desktop.css
Created Apr 1, 2018
Bootstrap 4 Desktop CSS for screens larger than 1600px
View bootstrap-desktop.css
* CSS file with Bootstrap 4 grid classes for screens bigger than 1600px. Just add this file after the Bootstrap CSS file and you will be able to juse col-desktop, hidden-desktop, etc.
* Author: Lucas Bustamante (adapted to Bootstrap 4.0)
* Site:
* Author: Marc van Nieuwenhuijzen (original file)
* Company: WebVakman
* Site:
Luc45 / FilezillaToLastPass.php
Last active Nov 3, 2017
Export Filezilla servers and Import it to LastPass
View FilezillaToLastPass.php
* Paste your C:\Users\{user}\AppData\Roaming\FileZilla\sitemanager.xml on $string
$string = '<?xml version="1.0"?>
<FileZilla3 version="3.28.0" platform="windows">
You can’t perform that action at this time.