Markdown files preview

Markdown files for a blog/website First start a hugo server from the location where the website/blog/markdown files are: cd /path/to/website/files; hugo server and then access localhost:1313 in a browser. Preview of a single mardown file lynx and pandoc can be used like: pandoc file.md | lynx -stdin or pandoc -t plain file.md | less

March 11, 2020 · Alberto Casado

Disks software

This is a collection of appropriate software to deal with disks. smartmontools (smartctl) badblocks nmon iotop

March 10, 2020 · Alberto Casado

git-annex

Create a repository on GitLab Clone repo git clone git@gitlab.com:group/repo.git git clonne https://gitlab.com/acbg/repo.git git clone ~/repo.git Init annex cd repo; git annex init 'description of the annex' Copy, remove, modify files Add files… git annex add . …and commit git commit -m 'Initial commit' Change filenames or modify archives git mv ab.jpg a.jpg Commit again git commit -m 'Changed file name' Sync master and git-annex branches, not files content git push origin master git-annex ...

March 10, 2020 · Alberto Casado

avconv

Extract audio from a video To see the audio streams in the file: avconv -i video_in.webm To extract stream 1: avconv -i video_in.webm -map 0:1 -acodec copy -vn audio_out.ogg or avconv -i orig.webm -c:a libvorbis -b:a 128k -vn target.ogg Convert an flv of wmv video to webm (vorbis) avconv -i ./input_file.flv -y -c:v libvpx -b:v 450k -c:a libvorbis -b:a 128k ./output_file.webm Convert an mp3 audio to ogg (libvorbis) avconv -i in.mp3 -map 0:0 -codec libvorbis -format ogg out.ogg Convert .avi to .webm, And select only video track 0, audio track 2, bitrate 800 and framerate 24: ...

March 9, 2020 · Alberto Casado

Rsync

Basic sync rsync -ivaz --delete --progress --stats --exclude='bak' --exclude='mail' /source/ /destin/ -i: –itemize -v: –verbose -a: -rtp… -z: –compress rsync --existing -nucRPhivaz --stats --delete /source/ /destination/ -n: –dry-run -u: –update -c: –checksum -R: –relative, create directories in the destination if they don’t exist -P: –progress –partial -h: –human-readable --delete: delete files not present in the source --stats: give some statistics --existing: don’t create new files in the destination, only transfer files that exist in the destination ...

March 9, 2020 · Alberto Casado

Code Sample

The following are two code samples using syntax highlighting. ...

March 8, 2016 · Alberto Casado

Test markdown

You can write regular markdown here and Jekyll will automatically convert it to a nice webpage. I strongly encourage you to take 5 minutes to learn how to write in markdown - it’ll teach you how to transform regular text into bold/italics/headings/tables/etc. Here is some bold text Here is a secondary heading Here’s a useless table: Number Next number Previous number Five Six Four Ten Eleven Nine Seven Eight Six Two Three One How about a yummy crepe? ...

February 20, 2015 · Alberto Casado