Command Flags
| Flag | Options | Description |
|---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
| ## Per https://support.acquia.com/hc/en-us/articles/360042181273-Block-Access-to-Bad-Bots-coming-from-the-Huawei-Cloud | |
| ## this should be immediately after the RewriteEngine On line in your .htaccess file | |
| ################## Begin User Agent Blocks ######################## | |
| #RewriteCond %{HTTP_USER_AGENT} ^(.*)(.*)$ | |
| #Block empty user agents, these are never any good. | |
| RewriteCond %{HTTP_USER_AGENT} ^-?$ | |
| RewriteRule .* - [R=410,L] |
| np=$( nproc ); atopsar -p | grep ":[0-9]\{2\}\s\+[0-9]" | awk '{printf("\n%s %6.2f ",$1, $5); for (i = 0; i<$5; i++) {if (i<'$np'*.7) {printf "\033[32m"} else if (i<'$np') {printf "\033[33m"} else {printf "\033[31m"}; printf("█")}; printf "\033[0m"}'; echo "" |
| <?php | |
| function getAspectRatio(int $width, int $height) | |
| { | |
| // search for greatest common divisor | |
| $greatestCommonDivisor = static function($width, $height) use (&$greatestCommonDivisor) { | |
| return ($width % $height) ? $greatestCommonDivisor($height, $width % $height) : $height; | |
| }; | |
| $divisor = $greatestCommonDivisor($width, $height); |
| # Google Analytics Bypassing Adblockers | |
| ## Client | |
| change www.googletagmanager.com => your.domain.com | |
| ``` | |
| <!-- Global site tag (gtag.js) - Google Analytics --> | |
| <script async src="https://your.domain.com/gtag/js?id=UA-123456789-1"></script> | |
| ``` |
| #!/bin/bash | |
| sudo apt-get update -qq && sudo apt-get -y install \ | |
| autoconf \ | |
| automake \ | |
| build-essential \ | |
| cmake \ | |
| git-core \ | |
| libass-dev \ | |
| libfreetype6-dev \ |
| <?php | |
| /* | |
| * Usage Multiples: | |
| * http://localhost/steamworkshop.php?ids[]=779297608&ids[]=468207596&ids[]=568872931&ids[]=898613611 | |
| * Usage Single: | |
| * http://localhost/steamworkshop.php?id=779297608 | |
| */ | |
| set_time_limit(0); | |
| define("API_URL", "http://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v0001/"); |
Command Flags
| Flag | Options | Description |
|---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
| #!/bin/bash | |
| set -e | |
| # Clean out /var/cache/apt/archives | |
| apt-get clean | |
| # Fill it with all the .debs we need | |
| apt-get --reinstall -dy install $(dpkg --get-selections | grep '[[:space:]]install' | cut -f1) | |
| DIR=$(mktemp -d -t info-XXXXXX) | |
| for deb in /var/cache/apt/archives/*.deb |
| <?php | |
| /** | |
| * ----------------------------------------------------------------------------------------- | |
| * Based on `https://github.com/mecha-cms/mecha-cms/blob/master/system/kernel/converter.php` | |
| * ----------------------------------------------------------------------------------------- | |
| */ | |
| // HTML Minifier | |
| function minify_html($input) { |