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
<!DOCTYPE html> | |
<head> | |
<script type='text/javascript'> | |
window.onload = function () { | |
var video = document.getElementById('videoId'); | |
var canvas = document.getElementById('canvasId'); | |
var img = document.getElementById('imgId'); | |
video.addEventListener('play', function () { | |
canvas.style.display = 'none'; |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
# ====================================================================================================================== | |
# Custom implementation of a garbage collector for Docker images, containers and volumes. | |
# | |
# Usage: | |
# bash docker-gc.sh | |
# | |
# In order to clean Docker volumes, the argument "-v" must be provided to the script. |
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 | |
# ==================================================================================================== | |
# The script below allows to have a quick overview of contributions on a Git repository. Bash 4+ is required. | |
# Especially useful when we do not have access to graphs like those that we can find on Github. | |
# | |
# This script handles three non-mandatory parameters: | |
# - START is used to keep commits only since the given date (default = 01 Jan 2000). | |
# - END is used to keep commits only until the given date (default = 01 Jan 2050). | |
# - MINIMUM is used to define the minimum number of commits in order to appear in the report (default = 10). |
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
# Compiles the project into a PHAR archive. | |
docker run --rm --interactive --tty --volume="$(pwd):/app" ajardin/humbug-box compile -vvv |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
# ====================================================================================================================== | |
# Make the SSH connection to EC2 instances easier by requiring only tag values instead of IP addresses. | |
# | |
# Usage: | |
# bash aws-connect.sh <environment> <bastion|apache|nginx|...> <index> | |
# | |
# Examples: |
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
- <a href="<?php echo $helper->getCategoryUrl($category); ?>"> | |
+ <a href="<?php echo $helper->getData('url_path'); ?>"> | |
<?php echo $category->getData('name'); ?> | |
</a> |
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
<IfModule evasive_module> | |
DOSHashTableSize 3097 | |
DOSPageCount 2 | |
DOSSiteCount 50 | |
DOSPageInterval 1 | |
DOSSiteInterval 1 | |
DOSBlockingPeriod 10 | |
</IfModule> |
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
# Remove all dangling images | |
docker rmi $(docker images --filter="dangling=true" --quiet) | |
# Remove all stopped containers | |
docker rm $(docker ps --filter="status=exited" --quiet) | |
# Remove all dangling volumes | |
docker volume rm $(docker volume ls --filter="dangling=true" --quiet) |
NewerOlder