Option | Description | Example |
---|---|---|
-i |
Input file | ffmpeg -i input.mp4 |
-vf |
Video filters (apply effects to video) | ffmpeg -i input.mp4 -vf "scale=1280:720" output.mp4 |
-c:v |
Video codec (specify video compression method) | ffmpeg -i input.mp4 -c:v libx264 output.mp4 |
-c:a |
Audio codec (specify audio compression method) | ffmpeg -i input.mp4 -c:a aac output.mp4 |
// Read from an OPML file and write to a JSON file, processing the OPML file | |
// and producing the following for each of the feed items in the file: | |
// name: title of the feed (from the title attribute) | |
// url: URL of the feed (from the htmlUrl attribute) | |
// feed: URL of the feed (from the xmlUrl attribute) | |
// feedtype: type of feed (from the type attribute) | |
// | |
// NOTE: This only extracts feeds from the "CSS" and "Eleventy" outlines. | |
// Remove that test if you wish to extract all of the feeds. | |
// |
// getDescription - given a url, this Eleventy filter extracts the meta | |
// description from within the <head> element of a web page using the cheerio | |
// library. | |
// | |
// The full html content of the page is fetched using the eleventy-fetch plugin. | |
// If you have a lot of links from which you want to extract descriptions, the | |
// initial build time will be slow. However, the plugin will cache the content | |
// for a duration of your choosing (in this example, it's set to 1 day). | |
// | |
// The description is extracted from the <meta> element with the name attribute |
🚚 The bookmarklet has moved to https://github.com/bramus/mastodon-profile-redirect/
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
#Import-Module PSColors | |
#Import-Module posh-git | |
Import-Module -Name Terminal-Icons |
'use strict' | |
// examples from https://github.com/vriad/zod | |
// trying to use zod in JS w/ jsdoc type comments in vsCode | |
const z = require('zod') | |
const dogSchema = z.object({ | |
name: z.string(), |
Unfortunately nvm use
on Windows does not change the node version to that specified in the .nvmrc
file as its not supported on nvm for Windows: coreybutler/nvm-windows#388
So the easiest solution to this is to use a simple Powershell command that performs an approximation of the command as follows:
nvm use $(Get-Content .nvmrc).replace( 'v', '' );
However, thats a bit awkward and we can do a bit more so instead, we can create an 'alias' to a function that calls the command instead:
function callnvm() {
Thanks everyone for commenting/contributing! I made this in college for a class and I no longer really use the technology. I encourage you all to help each other, but I probably won't be answering questions anymore.
This article is also on my blog: https://emilykauffman.com/blog/install-anaconda-on-wsl
Note: $
denotes the start of a command. Don't actually type this.
- Install WSL (Ubuntu for Windows - can be found in Windows Store). I recommend the latest version (I'm using 18.04) because there are some bugs they worked out during 14/16 (microsoft/WSL#785)
- Go to https://repo.continuum.io/archive to find the list of Anaconda releases
- Select the release you want. I have a 64-bit computer, so I chose the latest release ending in
x86_64.sh
. If I had a 32-bit computer, I'd select thex86.sh
version. If you accidentally try to install the wrong one, you'll get a warning in the terminal. I chose `Anaconda3-5.2.0-Li