Laur's blog
Sign in Subscribe

bash

A collection of 4 posts
Execute a Command in Every Directory with Bash
bash

Execute a Command in Every Directory with Bash

TL;DR: Use a find-based loop The other day I was wondering how to execute a command in each sub-directory of a project. In python, you have os.walk. In C, I would've probably written myself something just for fun etc. In shell, I know you have find
Jul 13, 2018 1 min read
Convert m4a to mp3 Using Ffmpeg on Windows (and Git Bash)
bash

Convert m4a to mp3 Using Ffmpeg on Windows (and Git Bash)

Here's a simple command line to convert m4a files to MP3 on windows: for i in *.m4a; do ./ffmpeg.exe -i "$i" "${i%.m4a}".mp3; done HTH,
Mar 4, 2017
Use Git Bash as Integrated Terminal in VS Code
bash

Use Git Bash as Integrated Terminal in VS Code

TL;DR:: Install windows git to get bash and add "C:\\Program Files\\Git\\bin\\bash.exe" to "terminal.integrated.shell.windows" in VS Code's user settings. As I'm trying my hand at developing a node application today, I'm getting
Nov 18, 2016 1 min read
Generate Amazon Underground Launcher Icons
amazon

Generate Amazon Underground Launcher Icons

TL;DR: Use (adapt) the script below to automatically generate the Amazon Underground application launcher icons. I was toying with the idea to build an Amazon Underground version of one of my applications. According to their rules, you need to: * Repackage your app * Name custom permissions (Lollipop) * Apply Amazon Underground
Nov 27, 2015 2 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost