This file contains 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
# reduce file size and remove audio (-an removes audio) | |
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 | |
# split mp3 | |
$ ffmpeg -i source.mp3 -acodec copy -ss START_TIME -to END_TIME LITTLE_FILE | |
# e.g. ffmpeg -i source.mp3 -acodec copy -ss 09:29 -to 14:56 03_some_name.mp3 | |
# for equal part: | |
$ ffmpeg -i somefile.mp3 -f segment -segment_time SECONDS_AS_INT -c copy out%03d.mp3 | |
# converting MTS to mp4 |
This file contains 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
# | |
# Copyright (C) 2016 Cogimon | |
# Author: Enrico Mingo Hoffman | |
# email: [email protected] | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains 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
$ time ( s=192.168.0 ; for i in $(seq 1 254) ; do ( ping -n -c 1 -w 1 $s.$i 1>/dev/null 2>&1 && printf "%-16s %s\n" $s.$i responded ) & done ; wait ; echo ) | |
## credit: https://superuser.com/a/487014/195348 |
This file contains 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
https://github.com/Pouya-moh/.emacs.d.git ~/.emacs.d | |
cd ~/.emacs.d && mkdir etc && cd etc | |
git clone https://github.com/Pouya-moh/yamt-theme.git | |
git clone https://github.com/targzeta/move-lines.git |
This file contains 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
# creating the env | |
$ virtualenv --no-site-packages -p /path/to/python3 virtualenv_name | |
## --no-site-packages seems to be depricated as said here: | |
## https://virtualenv.pypa.io/en/stable/reference/#cmdoption-no-site-packages | |
## mind PYTHONPATH and pip -E, and to freez system pip: | |
## https://stackoverflow.com/questions/1382925/virtualenv-no-site-packages-and-pip-still-finding-global-packages | |
# activate/de | |
$ source virtualenv_name/bin/activate |