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
#!/bin/bash | |
# --- Configuration --- | |
# Video codec for AVI (libxvid is widely compatible) | |
VIDEO_CODEC="libxvid" | |
# Video quality (lower is better, 2-5 is often good for Xvid) | |
VIDEO_QUALITY="3" | |
# Audio codec for AVI (libmp3lame is widely compatible) | |
AUDIO_CODEC="libmp3lame" | |
# Audio quality (lower is better, 4-6 is often good for MP3) |
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
#!/bin/bash | |
# Function to update package.json with versions from package-lock.json | |
update_package_json_with_lock_versions() { | |
local dir=$1 | |
local package_json_path="$dir/package.json" | |
local package_lock_json_path="$dir/package-lock.json" | |
if [ ! -f "$package_json_path" ]; then | |
echo "Error: $package_json_path not found." |
This file has been truncated, but you can view the full file.
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
downloading pdflib-4.1.4.tgz ... | |
Starting to download pdflib-4.1.4.tgz (32,652 bytes) | |
.........done: 32,652 bytes | |
7 source files, building | |
running: phpize | |
Configuring for: | |
PHP Api Version: 20210902 | |
Zend Module Api No: 20210902 | |
Zend Extension Api No: 420210902 | |
path to pdflib installation? : building in /tmp/pear/temp/pear-build-defaultuser80rLPF/pdflib-4.1.4 |
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 | |
function testEndpoint($url, $iterations = 100) | |
{ | |
$times = []; | |
for ($i = 0; $i < $iterations; $i++) { | |
$start = microtime(true); | |
$ch = curl_init(); |
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
for i in *.mkv; do ffmpeg -i "$i" -c:v copy -c:a copy "${i%.mkv}.mp4"; done |
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 | |
class MessageBus | |
{ | |
private LoggerInterface $logger; | |
public function __construct(LoggerInterface $logger = null) | |
{ | |
$this->logger = $logger ?? new NullLogger(); | |
} |
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
#!/bin/bash | |
adjectives=( | |
"admiring" "adoring" "affectionate" "agitated" "amazing" "angry" "awesome" | |
"blissful" "boring" "brave" "clever" "cocky" "compassionate" "competent" | |
"condescending" "confident" "cranky" "dazzling" "determined" "distracted" | |
"dreamy" "eager" "ecstatic" "elastic" "elated" "elegant" "eloquent" "epic" | |
"fervent" "festive" "flamboyant" "focused" "friendly" "frosty" "gallant" | |
"gifted" "goofy" "gracious" "happy" "hardcore" "heuristic" "hopeful" | |
"hungry" "infallible" "inspiring" "interesting" "intelligent" "jovial" |
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
ca_certs: | |
remove_defaults: false | |
trusted: | |
- | | |
-----BEGIN CERTIFICATE----- | |
MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw | |
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh | |
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4 | |
WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu | |
ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY |
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
queued %{date("yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZ"):date} %{notSpace:hostname} %{notSpace:source}/%{notSpace:proc}\[%{integer:op}\]\: %{notSpace:procCode}\: %{data:attr:keyvalue} \(%{data:message}\) | |
cleaned %{date("yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZ"):date} %{notSpace:hostname} %{notSpace:source}/%{notSpace:proc}\[%{integer:op}\]\: %{notSpace:procCode}\: %{data:attr:keyvalue} | |
daemon %{date("yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZ"):date} %{notSpace:hostname} %{notSpace:source}/%{notSpace:proc}\[%{integer:op}\]\:\s+%{data:message} |
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
#!/bin/bash | |
# Directory to fill with files | |
DIR=$1 | |
# Threshold for free space in KB | |
THRESHOLD=${2:-104857} # Default is 100MB | |
# Size of each file in KB | |
FILESIZE=5120 # 5MB |
NewerOlder