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
ffmpeg \ | |
-i INPUT_FILE.mp4 \ | |
-vf drawtext="fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: fontsize=96: box=1: [email protected]: boxborderw=5: fontcolor=white: x=(w-text_w)/2: y=((h-text_h)/2)-(3*((h-text_h)/8)):timecode='00\:00\:00\:00':rate=28.09" \ | |
OUTPUT_FILE.mp4 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<?php | |
namespace Drupal\my_utiilities\Utility; | |
use Drupal\Core\Entity\ContentEntityInterface; | |
use Drupal\Core\Entity\EntityInterface; | |
use Drupal\Core\Entity\Plugin\DataType\EntityAdapter; | |
use Drupal\Core\Field\EntityReferenceFieldItemListInterface; | |
use Drupal\Core\Field\FieldItemInterface; | |
use Drupal\Core\TypedData\DataReferenceInterface; |
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
$('.space-name').each(function () { console.log($(this).text()); }); |
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
<?php | |
/** | |
* Uninstall Multiversion and related modules. | |
*/ | |
function modulename_update_8000() { | |
// !!! IMPORTANT !!! | |
// First, make sure to check and see if any of the below entities have a | |
// value of NULL in "_deleted" or "workspace" columns, because if so, | |
// you'll want to update that. See this issue for more information: |
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
#!/usr/bin/env bash | |
mogrify -format png *.jpg | |
mogrify \ | |
-resize 4096x4096 \ | |
-background black \ | |
-gravity center \ | |
-extent 4096x4096 \ | |
-format png \ |
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
#!/usr/bin/env bash | |
## | |
# Update the SSH key for the azureuser account on the specified AKS node. | |
# | |
cluster_resource_group="${1:-}" | |
node="${2:-}" | |
public_key_path="${3:-}" | |
AZURE_USER="azureuser" |
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
# This trick keeps the kubectl session active by printing the current time every 10 seconds | |
# | |
# Run commands like this | |
(while true; do sleep 10; date; done) & <YOUR LONG RUNNING COMMAND GOES HERE> | |
# For example: | |
(while true; do sleep 10; date; done) & sha512sum my_super_large_file.dat | tee checksum.sha512 | |
# When done, to get control back, run this command: | |
fg |
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
The default username and password for a Technicolor CGA4234 VGW from AtlanticBBInc is "user" with no password. |
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
<?php | |
// Run this command in three separate consoles, concurrently. | |
// - Run the first with php -f ./test.php 1 | |
// - Run the second with php -f ./test.php 2 | |
// - Run the second with php -f ./test.php 3 | |
$prefix = $argv[1]; | |
for ($value = 0; $value < 1000; ++$value) { | |
$sleep_amount = rand(50000, 250000); |