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
#Download Elementary OS from here: | |
#http://sourceforge.net/projects/elementaryos/files/stable/ | |
#First you update your system | |
sudo apt-get update && sudo apt-get dist-upgrade | |
#Install Google Chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
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
#!/usr/bin/env ruby | |
# /usr/local/bin/open_subl | |
require 'cgi' | |
require 'uri' | |
begin | |
query = CGI.parse(URI.parse(ARGV.first).query) | |
url = query['url'].first | |
file = URI.parse(url).path | |
line = query['line'].first | |
column = query['column'].first |
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
## Use auto-indentation. | |
set autoindent | |
## Backup files to filename~. | |
set backup | |
## Constantly display the cursor position in the statusbar. Note that | |
## this overrides "quickblank". | |
set const | |
## Use cut to end of line by default. | |
set cut |
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
####################### | |
# Pretty .bashrc | |
####################### | |
alias mountedinfo='df -hT' | |
BLACK='\e[0;30m' | |
BLUE='\e[0;34m' | |
GREEN='\e[0;32m' | |
CYAN='\e[0;36m' |
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
# Checando codificação de arquivos: | |
find . -iname "*.phtml" | while read linha; do file -i $linha; done | |
# Conversão em Lote | |
find . -iname "*.phtml" | while read linha; do iconv --from-code=ISO-8859-1 --to-code=UTF-8 $linha > $linha.new; mv $linha.new $linha; done |
NewerOlder