Skip to content

Instantly share code, notes, and snippets.

Avatar

Sigurður Árni Svanbergsson siggiarni

View GitHub Profile
@siggiarni
siggiarni / ffmpeg.md
Created Jan 26, 2020 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files
View ffmpeg.md

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

View cloudSettings
{"lastUpload":"2021-02-10T13:11:15.534Z","extensionVersion":"v3.4.3"}
View lorem_ipsum.md

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris semper quam eu mauris molestie, vitae tempus nunc venenatis. Sed ut quam luctus, congue velit sit amet, vulputate sem. Maecenas sagittis tortor ut mattis euismod. Proin ac dolor neque. Praesent nec fringilla nunc, et sagittis dolor. Sed fringilla sed quam ut tristique. Donec aliquet consequat turpis, in pharetra metus rhoncus sed. Integer erat turpis, gravida vitae quam a, mollis commodo lorem. Integer consectetur diam nunc, a porta tellus consequat eget. Ut mattis ex vitae ante aliquet, a pulvinar ligula tincidunt. Vestibulum enim nisi, placerat aliquet placerat vel, condimentum non est.

View homebrew-fix
https://github.com/Homebrew/homebrew-cask/issues/58046
/usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/sed -i '' '/depends_on macos:/d'
@siggiarni
siggiarni / fix-homebrew-npm.md
Last active Nov 18, 2018 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew
View fix-homebrew-npm.md

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

View tmux.conf
# Setting the prefix from C-b to C-a
set -g prefix C-a
# Free the original Ctrl-b prefix keybinding
unbind C-b
#setting the delay between prefix and command
set -s escape-time 1
# Set the base index for windows to 1 instead of 0
View paste_input.applescript
tell application "SystemUIServer"
display dialog "Try pasting now" default answer ""
end tell
View vimrc.vim
syntax on
colorscheme flatland
filetype plugin indent on
" Turn on omni complete
set omnifunc=syntaxcomplete#Complete
set title "Set the document name in the window title.
set showcmd "Show (partial) command in the last line of the screen.
set showmode "If in Insert, Replace or Visual mode put a message on the last line.
View vimrc
execute pathogen#infect()
" Setting up Vundle - the vim plugin bundler
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/vundle
let iCanHazVundle=0
View youtube_embed.txt
https://www.youtube.com/embed/zxzO1grNPjw?playlist=zxzO1grNPjw&vq=hd1080&showinfo=0&rel=0&modestbranding=0&autoplay=1&mute=1&loop=1&playsinline=1