A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
<!-- This file is mainly pseudo code with parts copied from a working project to illustrate how tiptap-aligntext.plugin.js can be implemented into your project --> | |
<template> | |
<div> | |
<editor-menu-bar :editor="editor" v-slot="{ commands }"> | |
<div class="menubar"> | |
<i class="fas fa-align-left" :class="{ 'is-active': editor.activeMarkAttrs.aligntext.align === 'left' }" @click="commands.aligntext({ align: 'left' })"></i> | |
<i class="fas fa-align-center" :class="{ 'is-active': editor.activeMarkAttrs.aligntext.align === 'center' }" @click="commands.aligntext({ align: 'center' })"></i> | |
<i class="fas fa-align-right" :class="{ 'is-active': editor.activeMarkAttrs.aligntext.align === 'right' }" @click="commands.aligntext({ align: 'right' })"></i> | |
<i class="fas fa-align-justify" :class="{ 'is-active': editor.activeMarkAttrs.aligntext.align === 'justify' }" @click="commands.aligntext({ align: 'justify' })"></i> |
<?php | |
/* | |
Plugin Name: Disable WooCommerce REST API authentication | |
Plugin URI: https://www.damiencarbery.com/2019/07/disable-woocommerce-rest-api-authentication/ | |
Description: Override WooCommerce capability check so that all REST API queries from specified IP are allowed | |
Author: Damien Carbery | |
Version: 0.1 | |
*/ |
const AWS = require('aws-sdk') | |
const s3 = new AWS.S3() | |
const BUCKET_NAME = 'MyBucket' | |
async function main() { | |
try { | |
const data = await s3.headBucket({ Bucket: BUCKET_NAME }).promise() | |
return `Bucket "${BUCKET_NAME}" exists` |
const blobToImage = (blob) => { | |
return new Promise(resolve => { | |
const url = URL.createObjectURL(blob) | |
let img = new Image() | |
img.onload = () => { | |
URL.revokeObjectURL(url) | |
resolve(img) | |
} | |
img.src = url | |
}) |
// Keyboard up event on ios | |
if (application.ios) { | |
// First Event is Catched before the Keyboard Jumps Up | |
// We Save the Height of the Keyboard for the Positioning of the LayoutElement | |
application.ios.addNotificationObserver(UIKeyboardWillShowNotification, (event) => { | |
// console.log('WillShow', typeof event.userInfo, event.userInfo.valueForKey(UIKeyboardFrameEndUserInfoKey).CGRectValue.size.height); | |
// console.log(this.textView.ios.contentSize); | |
this.contentSizeStartValue = event.userInfo.valueForKey(UIKeyboardFrameEndUserInfoKey).CGRectValue.size.height + 10; | |
}); | |
// Second Event is Catched when the Keyboard is Up to Reposition our Element |
[Settings] | |
ID = "Your_Site_ID" | |
# Settings in the [build] context are global and are applied to all contexts unless otherwise overridden by more specific contexts. | |
[build] | |
# This is the directory to change to before starting a build. | |
base = "project/" | |
# NOTE: This is where we will look for package.json/.nvmrc/etc, not root. | |
# This is the directory that you are publishing from (relative to root of your repo) |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex
command line tool.
To learn more about migrations, check out this article on the different types of database migrations!
If this is too much for you, check out ffmpeg.lav.io
These are a few quick easy ffmpeg command lines that can be used to make oft-used video formats. I use them a lot so I wrote them down in a txt file but I converted it to markdown to upload here and access on all my pcs.
Feel free to use 'em. I've gathered them through superuser posts, wiki trawls, and personal experience.
// No Security | |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |