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
| import openai | |
| import mimetypes | |
| from pydub import AudioSegment | |
| import os | |
| load_dotenv() | |
| openai.api_key = os.getenv('OPEN_AI_KEY') | |
| app = Flask(__name__) |
| #!/usr/bin/env python3 | |
| import whisper | |
| import sys | |
| import string | |
| import math | |
| from stable_whisper import modify_model | |
| from stable_whisper import stabilize_timestamps | |
| from stable_whisper import results_to_word_srt | |
| from stable_whisper import results_to_word_srt | |
| from moviepy.editor import AudioClip, VideoFileClip, concatenate_videoclips |
| import * as popmotion from 'popmotion'; | |
| import { pop } from './RemotionPop'; | |
| const easeOutQuint = popmotion.cubicBezier(0.22, 1, 0.36, 1); | |
| const ExampleComponent = () => { | |
| // you can animate any normal HTML element, ex. `pop.h2` or `pop.span` | |
| return ( | |
| <pop.div | |
| //not sure what to do with this code snippet? See https://www.thathandsomebeardedguy.com/what-do-i-do-with-these-code-snippets/ | |
| add_filter( 'woocommerce_add_to_cart_sold_individually_found_in_cart', 'handsome_bearded_guy_maybe_redirect_to_cart' ); | |
| function handsome_bearded_guy_maybe_redirect_to_cart( $found_in_cart ) { | |
| if ( $found_in_cart ) { | |
| wp_safe_redirect( wc_get_page_permalink( 'cart' ) ); | |
| exit; | |
| } |
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
| #!/usr/bin/env osascript -l JavaScript | |
| /** | |
| * Delete silence from Final Cut Pro timeline using a script. | |
| * Demo: https://imgur.com/a/Zisav | |
| * | |
| * This script accepts an ffmpeg silencedetect log as input. | |
| * | |
| * To setup, have fcp running along with your clip selected. Ensure that the | |
| * timecode will start at zero before running this script. That is, if your clip |
| <?php | |
| /** | |
| * This template adds thumbnails to your SearchWP Live Ajax Search results. | |
| * | |
| * Create a folder called searchwp-live-ajax-search in your child theme folder and copy this file in there. | |
| * In order for this to work you require the SearchWP and SearchWP Live Ajax Search plugins installed and active. | |
| * | |
| */ | |
| ?> |
Updated: 20250516
| <?php | |
| /** | |
| * Plugin Name: Registration Order Link for WooCommerce | |
| * Plugin URI: http://skyver.ge/5S | |
| * Description: Automatically links previous orders to new customer accounts upon WooCommerce registration. | |
| * Author: SkyVerge | |
| * Author URI: http://www.skyverge.com/ | |
| * Version: 1.0.0 | |
| * Text Domain: link-wc-orders | |
| * |
| tell application "Finder" | |
| set FolderPath to (choose folder) -- sets file path to folder you select | |
| set ParentFolder to container of FolderPath -- sets the parent folder of the folder you select | |
| set Foldername to name of folder FolderPath -- sets the folder name as text | |
| display dialog FolderPath as text | |
| display dialog ParentFolder as text | |
| display dialog Foldername as text | |