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
# 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
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
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
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
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
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 | |
# Note: the path is relative to the DRUPAL_ROOT | |
# drush dcer --folder | |
drush dcer taxonomy_term 11972 --folder=modules/custom/my_module/modules/my_module_demo_content/content | |
drush dcer question 13 --folder=modules/custom/my_module/modules/my_module_demo_content/content |
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
{ | |
"type": "project", | |
"license": "GPL-2.0-or-later", | |
"authors": [ | |
{ | |
"name": "", | |
"role": "" | |
} | |
], | |
"repositories": [ |
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
# intstall database | |
# drush si --db-url=mysql://root:pass@localhost:port/dbname | |
drush si --db-url=mysql://drupal:drupal@mariadb/drupal | |
# export db | |
drush sql-dump > db.sql | |
# import db | |
drush sql-cli < db.sql |
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
lando info --filter service=database | |
# or | |
lando info --format=json | jq '.[] | select(.service=="database") | .external_connection.port ' | |
# to suppress nodejs warnings run lando with | |
# see https://github.com/lando/lando/issues/2928 | |
node --no-warnings /path/to/lando.js info --format=json | jq '.[] | select(.service=="database") | .external_connection.port' |