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 -d memory_limit=-1 $(which composer) install |
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
nginx: | |
image: wodby/nginx:$NGINX_TAG | |
container_name: "${PROJECT_NAME}_nginx" | |
depends_on: | |
- php | |
environment: | |
NGINX_STATIC_OPEN_FILE_CACHE: "off" | |
NGINX_ERROR_LOG_LEVEL: debug | |
NGINX_BACKEND_HOST: php | |
NGINX_SERVER_ROOT: /var/www/html/web |
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.mp4 -vf "setpts=(PTS-STARTPTS)/2" -crf 18 output2x.mp4 |
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 is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild | |
(function (root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['kaitai-struct/KaitaiStream'], factory); | |
} else if (typeof module === 'object' && module.exports) { | |
module.exports = factory(require('kaitai-struct/KaitaiStream')); | |
} else { | |
root.PsCurves = factory(root.KaitaiStream); | |
} |
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 {padWord, toByteInHex} from "../utils"; | |
import FileSystem from "./FileSystem"; | |
import { Buffer } from 'buffer'; | |
declare interface Marker { | |
marker: string, | |
data: BufferSource | |
} | |
class Replacer { |
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 | |
$zip = new ZipArchive; | |
if ($zip->open('archive.zip') === TRUE) { | |
$zip->extractTo('./destDir'); | |
$zip->close(); | |
echo 'ok'; | |
} |
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
drush sqlq "UPDATE users_field_data SET mail = '[email protected]' WHERE mail = '[email protected]'" | |
drush cr |
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
version: "2" | |
services: | |
mariadb: | |
image: wodby/mariadb:10.2-3.0.2 | |
# image: wodby/mariadb:10.1-3.0.2 | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: drupal | |
MYSQL_USER: drupal |
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 | |
// drush php-script update_product_displays.drush | |
$time = time(); | |
$prev_timestamp = $time - (15 * 60); | |
$efq = new EntityFieldQuery(); | |
$efq | |
// Conditions on the entity - its type and its bundle ("sub-type") | |
->entityCondition('entity_type', 'node') |
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 | |
/** | |
* @file | |
* findNewUrls.drush | |
* | |
* This script tries to find a new url based on old one. | |
* Old urls should be placed in the same dir as a script file, | |
* and named as url-list.php, use php array format to add more old urls. | |
* | |
* Here is a finding logic. |