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
// 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
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
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
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
#Ansible: Certbot automatic renewal. | |
*/3 * * * * (/opt/certbot/certbot-auto renew --quiet --no-self-upgrade --pre-hook "/bin/systemctl stop nginx" --post-hook "/bin/systemctl start nginx") >> /var/log/certbotcron.log 2>&1 |
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 | |
/** | |
* For the details see https://www.drupal.org/project/drupal/issues/3058082 | |
* Run with: | |
* `drush scr fix_entity_type_after_removing_entity_key.drush entity_type -- YOUR_ENTITY_TYPE_NAME entity_key -- KEY_TO_REMOVE` | |
* How to run php script with Drush on Drupal see `drush scr --help`. | |
*/ | |
if ($extra[0] !== 'entity_type' || !isset($extra[1])) { | |
print "You should provide 'entity_type' argument\n"; |
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
server { | |
listen 443 ssl http2; | |
server_name example.com; | |
root /var/www/app; | |
index index.php index.html index.htm; | |
ssl on; | |
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; |
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 | |
# get a list of config ids that we are interested in. | |
drupal dc | grep 'views.view.phot*' | |
drupal ces \ | |
--module=MY_MODULE \ | |
--optional \ | |
--remove-uuid \ | |
--remove-config-hash \ |
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 cset system.file temporary_maximum_age 1 -y |