Install cask
that extends the brew
command :
brew install phinze/cask/brew-cask
Install calibre
using cask
:
brew cask install calibre
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 output.wav | |
# To convert all mp3 files in a directory in Linux: | |
for f in *.mp3; do ffmpeg -i "$f" -acodec pcm_s16le -ac 1 -ar 16000 "${f%.mp3}.wav"; done | |
# Or Windows: | |
for /r %i in (*) do ffmpeg -i %i -acodec pcm_s16le -ac 1 -ar 16000 %i.wav |
Install cask
that extends the brew
command :
brew install phinze/cask/brew-cask
Install calibre
using cask
:
brew cask install calibre
# First export manualy your google bookmarks in place exported file in the same directory of this script | |
# After launch this script (python google-bookmarks-to-markdown-format.py) and have fun ! | |
def run(): | |
output = [] | |
with open('GoogleBookmarks.html') as export: | |
html = export.readlines() | |
for line in html: | |
if 'H3' in line: | |
output.append('## {0}'.format(line[36:-6].capitalize())) | |
if 'A HREF' in line: |
You have a repository, call it alice/repo
. You would like to transfer it to the user bob
, so it will become bob/repo
.
However, you make heavy use of the GitHub Pages feature, so that people are often accessing https://alice.github.io/repo/
. GitHub will helpfully redirect all of your repository stuff hosted on github.com after the move, but will not redirect the GitHub Pages hosted on github.io.
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
# | |
# Requires a nerdfont compatible font to display properly | |
# | |
# https://github.com/ryanoasis/nerd-fonts | |
# | |
# | |
function last_two_dir { | |
# if we're at ~/ just display ~ | |
if [ $PWD = $HOME ]; then | |
echo '%c' |