# See what devices are currently mounted
df -h
# or alternatively
lsblk
# Unmount the SD card
umount /dev/sdXX
# Writing image to SD card
# Untar and gunzip a .tar.gz file or .tgz or .z
tar xzvf
# Previewing file contents
tar tzvf filename
# Untar and bunxzip a .bzip2 file
tar xjvf filename
Here are a couple of useful shortcuts that are quite useful while working on the terminal
- Up/ Down Arrows: Move through your last used commands.
- Ctrl+left and Ctrl+Right: Jumps between arguments in your commands.
- Home and End or Ctrl+a or Ctrl+e: Move your cursor to the beginning and the end of the currently typed command, respectively.
- Ctrl+u: Clears the entire line so you can type in a completely new command.
- Ctrl+k: This deletes the line from the position of the cursor to the end of the cursor.
- Ctrl+w: Deletes the word before the cursor only.
Here's a couple of recommendations from you guys for the February - March UP Bookshelf.
This list has been arranged randomly
- Flowers for Algernon by Daniel Keyes: Well this book is really short[There is a longer adaptation of this book]. It can be finished in one sitting. This book is a memoir of sorts of a mentally impaired man's journey's search for intelligence. Definitely an interesting one.
- Behind the Beautiful Forevers by Katherine Boo: This is as real with life one can get. Explore life in poverty with Katherine Boo. This book puts life into perspective.
- Crime and Punishment by Fyodor Dostoyevsky: Can be a difficult read, buy its very telling of the human condition.
- The Subtle Art of Not Giving A Fuck: A Counterintuitive Approach to Living a Good Life by Mark Manson: The title speaks for itself.
- The Tao of Coaching: Boost Your Effectiveness at Work by Inspiring and Developing Those Around You by Max Landsberg: A self-h
To speed up you video from 1x to 5x, you can type:
ffmpeg -i <input_video> -vf "setpts=0.2*PTS" -an <output video>
To speed up both video and audio:
ffmpeg -i input.mkv -filter_complex "[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]" output.mkv
To increase volume output, use the -vol switch of FFmpeg like so:
Add the following to your .bashrc file:
# Emacs config
export ALTERNATE_EDITOR=emacs EDITOR=emacsclient VISUAL=emacsclient
# Set an alias
alias ec="emacsclient"
Add the following to your ~/.config/systemd/user/emacs.service file:
[Unit]
I hereby claim:
- I am BonfaceKilz on github.
- I am bonfacemunyoki (https://keybase.io/bonfacemunyoki) on keybase.
- I have a public key whose fingerprint is D4F0 9EB1 1017 7E03 C28E 2FE1 F5BB AE1E 0392 253F
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A demo of how to get data from a website in JSON format | |
| * I'll get data from this site: | |
| * http://jsonplaceholder.typicode.com/posts | |
| * | |
| * Requirements: | |
| * | |
| * json-c - https://github.com/json-c/json-c | |
| * libcurl - http://curl.haxx.se/libcurl/c | |
| * |