Check out this post.
Examples:
$ find . -size +1G
GiuCode
martedì 20 settembre 2016
venerdì 9 settembre 2016
ffmpeg cheatsheet
Converting movie container without changing encoding:
ffmpeg -i movie.MTS -vcodec copy -acodec copy movie.mp4
lunedì 22 settembre 2014
Accurately checking memory usage in linux
A nice python script published here:
https://github.com/pixelb/ps_mem/
It implements a number of algorhythms to be as accurate as possible
https://github.com/pixelb/ps_mem/
It implements a number of algorhythms to be as accurate as possible
Recurring locale problem in Ubuntu
A fix for Perl warnings, command-not-found crashes, etc:
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
I don't think this is the real solution, there may be something on the client side (iTerm2) to figure out as well.
UPDATE:
Adding the following to .bashrc seems to solve the problem:
UPDATE:
Adding the following to .bashrc seems to solve the problem:
export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8
martedì 2 aprile 2013
Here's a nice collection of Ruby one-liners. Having a few of these formulas at hand, may save you lots of work...
mercoledì 27 marzo 2013
Creating a remote git repo
Assuming you have a project in your local machine and console access to a remote server (and git installed on both), these instructions will accomplish the following:
- turn your local copy into a git repository
- push it to the remote server
giovedì 21 marzo 2013
Iscriviti a:
Post (Atom)