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
source-map-explorer public/build/bundle.js public/build/bundle.js.map |
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
sudo launchctl bootout user/$(id -u USERNAME) |
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
rsync -av --progress ../source_proj/* ./ --exclude node_modules --exclude .git |
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
# show media file info | |
ffmpeg -i in.mp4 | |
# find video track ID and set as -map param value | |
ffmpeg -i in.mp4 -map 0:0 -vcodec copy out-wo-audio.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
<script> | |
import { | |
App, | |
View, | |
Toolbar, | |
Views, | |
Link, f7ready | |
} from 'framework7-svelte'; | |
import {states} from "./services/store"; |
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 |
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
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
<?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
#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 |