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 interval; | |
function start_processing(){ | |
interval = setInterval( open_notifications, 1000 ); | |
} | |
function open_notifications(){ | |
let notifications = document.querySelectorAll('.notification-listing .notification-row:not(.acknowledged) .action'); | |
if( !notifications.length ) { |
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 resizeTimer = false; | |
$(window).on('resize', function(e) { | |
if( !resizeTimer ) { | |
$(window).trigger('resizestart'); | |
} | |
clearTimeout(resizeTimer); | |
resizeTimer = setTimeout(function() { |
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
# Please confirm that you want to reset the MySQL passwords | |
CONFIRM="n" | |
echo -n "Please confirm MySQL password reset. Continue? (y/N): " | |
read -n 1 CONFIRM_INPUT | |
if [ -n "$CONFIRM_INPUT" ]; then | |
CONFIRM=$CONFIRM_INPUT | |
fi | |
echo |
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
// … find all gist scripts inside the ajax container | |
var $gists = $ajax_container.find('script[src^="https://gist.github.com/"]'); | |
// if gist embeds are found | |
if( $gists.length ){ | |
// update each gist | |
$gists.each(function(){ | |
// we need to store $this for the callback |
OlderNewer