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
javascript:(function(){ function findAllVideosIncludingShadowDOM(startingElement) { let videos = []; function searchForVideos(node) { if (node.tagName === 'VIDEO') videos.push(node); if (node.shadowRoot) searchForVideos(node.shadowRoot); if (node.childNodes.length) node.childNodes.forEach(searchForVideos); } searchForVideos(startingElement); return videos; } var video = findAllVideosIncludingShadowDOM(document)[0]; video.removeAttribute('disablePictureInPicture'); video.requestPictureInPicture(); })(); |
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
import { | |
type IMachineImage, | |
OperatingSystemType, | |
UserData, | |
} from 'aws-cdk-lib/aws-ec2'; | |
import { | |
AwsCustomResource, | |
AwsCustomResourcePolicy, | |
PhysicalResourceId, | |
} from 'aws-cdk-lib/custom-resources'; |
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
# https://github.com/gitlabhq/gitlabhq/blob/master/lib/gitlab/sidekiq_middleware/memory_killer.rb | |
class SidekiqWorkerKiller | |
include Sidekiq::Util # for #hostname | |
# Maximum RSS in KB for (default 0, meaning the WorkerKiller is disabled) | |
MAX_RSS = (ENV['WORKER_KILLER_MAX_RSS'] || 0).to_s.to_i | |
# Wait in seconds for running jobs to finish during graceful shutdown (default 60 minutes) | |
SHUTDOWN_WAIT = (ENV['WORKER_KILLER_SHUTDOWN_WAIT'] || 60 * 60).to_s.to_i | |
# Wait in seconds for process to exit after SIGTERM (default 60 seconds) |