Skip to content

Commands

This is an ongoing list of commands that I’m probably going to use a lot, as an overview for easy reference.

GIT COMMANDS

Command Description Example
cd Change directory cd C:\Users\mvoss\Pictures\temp\
pwd Get current directory
ls List all files and folders in current directory
copy, cp Copies an item from one location to another cp .jpg -Destination “~/Documents\Gitlab\fabacademy\michelle-vossen\assets\images\weeks\week1”
mkdir Make a new directory mkdir week2
git reset –hard HEAD~ if you pushed to many bits goes back one command/push

IMGMAGICK

What it does Command extra
adjust extension magick convert img.jpg img.png
resize magick mogrify -resize “800>” .jpg
quality magick mogrify -quality 75% .jpg
convert all images from one extension to another (jpg to png) magick mogrify -format jpg .png

FFMPEG

What it does Command extra
(Pieter’s secret code) compress .jpg .jpeg
(Pieter’s secret code) compress *.mov
scale and compress ffmpeg -i input.mp4 -vcodec libx264 -b:v 500k -vf scale=-2:500 -an output.mp4
rotate ffmpeg -i 2.mp4 -vf “transpose=1” 2.1.mp4 ffmpeg -i 2.mp4 -vf transpose=2 2.1.mp4 0 = 90° counterclockwise and vertical flip (default), 1 = 90° clockwise, 2 = 90° counterclockwise, 3 = 90° clockwise and vertical flip
Convert mov to mp4 ffmpeg -i input.mov -q:v 0 output.mp4
Compress mp4 (you can change the 500k to another number and the scale as well to lower or increase the size) ffmpeg -i input.mp4 -vcodec libx264 -b:v 500k -vf scale=-2:500 -an output.mp4
Speed up mp4 (lower number is faster; it drops frames so that’s good for compression) ffmpeg -i input.mp4 -filter:v “setpts=0.06*PTS” output.mp4
Rotate video clockwise ffmpeg -i in.mov -vf “transpose=1” out.mov
Powershell command for batch ffmpeg Get-ChildItem *.mp4 -recurse % { ffmpeg -i $.FullName -vcodec libx264 -b:v 500k -vf scale=-2:500 -an (“C:\Users\mvoss\Pictures\temp\batch” + “" +$.Name) }

Extra CSS with mkdocs

Images 2 or 3 pictures

.row-3 p,
.row-2 p {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;

}
.row-3 p img {
    width: 32%;
}

.row-2 p img {
  width: 49%;
}

<div markdown="1" class="row-2">
![](../images/week07/Instructions/input.jpeg)
![](../images/week07/Instructions/inpout.jpeg)
</div>

<div markdown="1" class="row-3">
![](../images/week07/Instructions/input.jpeg)
![](../images/week07/Instructions/input.jpeg)
![](../images/week07/Instructions/input.jpeg)
</div>

scrollable text blocks

# pretend that we have a lot of code in this chunk
if (1 + 1 == 2) {
  # of course that is true
  print(mtcars)
  # we just printed a lengthy data set
}

What I learned and how I should proceed.

I like to make stuff. I’m inpatient, don’t have a lot of knowledge about coding and have a very broad interest in what I like to create. With fab acadamy I learned a lot of different things. You don’t learn anything that good that you’ll be a proffesional within that segment.

I should make a plan. How I can make something with the skills and abelities that I have now.

But also make a plan in what I want to learn. In what subject I should get better in. What is really usefull for me?


Last update: June 14, 2023