This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Functions for later | |
noroot() { | |
sudo -EH -u "vagrant" "$@"; | |
} | |
wp_cli() { | |
# WP-CLI Install | |
local exists_wpcli |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Functions to register client-side assets (scripts and stylesheets) for the | |
* Gutenberg block. | |
* | |
* @package unito-2019 | |
*/ | |
namespace Namespace\GutenbergBlockLoader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Example usage: | |
# bash ffmpeg_the_works.sh PATH/TO/FILE.mp4 | |
if ! command -v ffmpeg > /dev/null; | |
then | |
echo "Missing ffmpeg!"; | |
exit 1; | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X to more | |
match default home & end key behavior on Windows & Linux systems. | |
To use Control instead of Command, either swap Control and Command in | |
Apple->System Preferences->Keyboard->Modifier Keys... | |
or replace @ with ^ in this file. | |
Here is a rough cheatsheet for syntax. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE | |
FROM `wp_usermeta` | |
WHERE `meta_key` LIKE 'meta-box%' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if at least two folder names are provided | |
if [ "$#" -lt 2 ]; then | |
echo "Usage: $0 <source_folder1> <source_folder2> ... <destination_folder>" | |
exit 1 | |
fi | |
# Get the destination folder (the last argument) | |
DESTINATION="${@: -1}" |