This file contains 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
var items = [ | |
{ | |
someProp: '0', | |
otherProp: 'a' | |
}, | |
{ | |
someProp: '1', | |
otherProp: 'c' | |
}, | |
{ |
This file contains 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 | |
dupe_script=$(ps -ef | grep "SCRIPT_NAME.sh" | grep -v grep | wc -l | xargs) | |
if [ ${dupe_script} -gt 2 ]; then | |
echo -e "The SCRIPT_NAME.sh script was already running!" | |
exit 0 | |
fi |
This file contains 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_comments | |
WHERE | |
comment_approved = 'trash' | |
OR comment_approved = 'spam'; | |
DELETE FROM | |
wp_commentmeta | |
WHERE | |
comment_id NOT IN (SELECT comment_ID FROM wp_comments); |