My most useful WebStorm shortcuts, transitioning from VSC after a while not programming.
I keep this list aside from my IDE.
Double Shift
: Search everywhere
Cmd O
: Navigate class
Shift Cmd O
: Navigate files
Cmd Shift O
: Navigate symbol
#!/usr/bin/bash | |
[ -z ${1} ] && echo "Missing filename! Exiting..." && exit 1 | |
DEFAULT_SHEBANG="#!/usr/bin/bash" | |
FILE_NAME="${1}.sh" | |
echo "Creating script file ${FILE_NAME}..." | |
touch ${FILE_NAME} | |
echo -e "${DEFAULT_SHEBANG}\n\n" > ${FILE_NAME} | |
chmod +x ${FILE_NAME} |
WP-CLI is installed by Trellis automatically but at the moment it is not the latest version. It’s not very annoying but a command I wanted to use was not available with this version. Not being very comfortable using WP-CLI with Trellis, I couldn’t update it correctly until today.
So here is a little guide that could help people who would be stuck like me!
Read the Trellis documentation carefully. One passage in particular should be noted regarding the use of WP-CLI correctly with Trellis and Bedrock:
d3.json("API_URL", { | |
headers: { | |
"Authorization": "Bearer API_KEY" | |
} | |
}) | |
.then(function(data) { | |
// Your code here... | |
}); // d3.json |
# Create a file (named concerts.txt in this case) containing the names of all folders to create : | |
nano concerts.txt | |
# In my case this file lists concerts (one for each line). The name of each folder must be in quotation marks. Example : | |
"Concert name 1" | |
"Concert name 2" | |
"Concert name 3" | |
"Concert name 4" | |
# Now execute this command by changing the file name : |
npm install --unsafe-perm |
/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot |
// TEXT BETWEEN BRACKETS | |
=REGEXEXTRACT(B2;"\((.*)\)") | |
// TEXT AFTER COMMA (WITH SPACES AFTER & BEFORE) | |
=REGEXEXTRACT(B2;" : (.*)") |
npm install npm-install-all -g | |
npm-install-all gulpfile.js |
composer require wpackagist-theme/themename:* |