Skip to content

Instantly share code, notes, and snippets.

Lucas Bustamante Luc45

Block or report user

Report or block Luc45

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Luc45
Luc45 / wordpress-actions.php
Created May 23, 2019
Array of all actions in WordPress, in order of execution
View wordpress-actions.php
<?php
// As seen on https://codex.wordpress.org/Plugin_API/Action_Reference
$actions = [
'muplugins_loaded',
'registered_taxonomy',
'registered_post_type',
'plugins_loaded',
'sanitize_comment_cookies',
'setup_theme',
'load_textdomain',
@Luc45
Luc45 / serve-wordpress-multisite.sh
Created Dec 22, 2018
WordPress Multisite serve script for Nginx (Homestead, etc)
View serve-wordpress-multisite.sh
#!/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
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: lucasbustamante.com.br
*
* Author: Marc van Nieuwenhuijzen (original file)
* Company: WebVakman
* Site: WebVakman.nl
*
@Luc45
Luc45 / FilezillaToLastPass.php
Last active Nov 3, 2017
Export Filezilla servers and Import it to LastPass
View FilezillaToLastPass.php
<?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">
<Servers>
<Server>
<Host>something.com</Host>
You can’t perform that action at this time.