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
cmap w!! %!sudo tee > /dev/null % |
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
#TODO: cambiar el 11 para que elimine la cantidad total de kernels viejos excepto el usado actualmente. | |
dpkg --list | grep linux-image-3 | cut -d ' ' -f 3 | head -n11 | xargs sudo apt-get purge -y | sudo update-grub2 |
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
{ | |
"name": "application-name", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"express": "2.5.10", | |
"jade": ">= 0.0.1", | |
"node-foursquare": "~0.1.3" | |
}, | |
"devDepedencies": { |
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
merge_to() { | |
target=$1 | |
branch_to_merge=$(branch) | |
git checkout ${target} | |
git merge --no-ff ${branch_to_merge} | |
} | |
merge_tod() { | |
target=$1 | |
branch_to_merge=$(branch) |
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
file -b --mime-type filename | |
#application/x-rar |
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
file -i file_name \ | |
| cut -d ':' -f2 \ | |
| cut -d ';' -f1 \ | |
| cut -d '/' -f2 |
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
file_path=$1 | |
count=0 | |
for file in $file_path/*mov ; do | |
ffmpeg -i "$file" -vcodec copy -acodec copy "${file%.*}".mp4 | |
rm "$file" | |
let count=count+1 | |
done | |
notify-send ".mov 2 .mp4 convertion" "$count files converted" --icon=totem |
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
export PS1='\[\033[01;32m\]\W \[\033[00;37m\]$(echo $(branch) \$\[\033[00m\]' | |
HISTCONTROL=ignoredups:ignorespace | |
HISTSIZE=1000 | |
HISTFILESIZE=2000 | |
shopt -s histappend | |
alias ls='ls -lF' | |
alias la='ls -A' | |
alias l='ls -CF' |
NewerOlder