I had the problem that spotify sometimes uses my bandwith in a spontaneaus manner.
To fight that behaviour I found the small program trickle which does work quite good.
To install just:
1
sudo apt-get install trickle
Then to start with spotify I use:
1
trickle -u 5 -d 200 spotify
which limits the upload to 5 KB/s and download to 200 KB/s.
No more laggy ssh sessions because the next song is coming up :)
It is a good idea to set up your dotfiles now, you probably want a:
.zshrc: You already got one by installing ohmyzsh, but there are lots of goodies to add and themes to explore.
.gitconfig: You probably want to write your name or nickname in there.
Here is my config:
123456789101112131415
[alias]
st = status
ci = commit
requests = fetch origin +refs/merge-requests/*:refs/merge-requests/*
unpushed = log origin/master..HEAD
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[user]
name = Your Name
email = your@email.com
.vimrc + .vim:
Maybe you already got a setup or you can always look at existing setups, for example:
I often get asked how to copy the text out of protected PDFs in Windows.
Authors can mark their PDFs as protected to apply certain restrictions like commenting or copying.
But not all Readers care about them. There are a lot of old Readers that allow you to copy.
The default PDF-Reader in Ubuntu doesn’t care as well and easily lets you copy the content.
So go and get Evince for Windows.
Da das Colorscheme 256 Farben benötigt, muss das Terminal ebenfalls darauf abgestimmt werden. Dazu entweder ein passendes Farbschema herunterladen oder wie in meinem Fall(ich nutze yakuake) in der .bashrc folgende Zeile einfügen:
1
export TERM='xterm-256color'
Jetzt kann in der .vimrc das colorscheme aktiviert werden:
123
let g:solarized_termcolors=256 "benoetigt für xterm mit 256 farben
set background=dark "mit light gibts einen hellen hintergrund
colorscheme solarized
Wenn man genug von Arial und Helvetica hat, kann man mit dem schon seit Internet Explorer 5 vorhandenem CSS-Feature @fontface eigene Schriftarten einbetten.
Da ich eine Weile probiert habe hier die Kurzform:
Als erstes eine zur Nutzung freigegebene Schriftart finden und zum Beispiel bei fontsquirrel in alle benötigten Typen umwandeln lassen.
Im Ordner app/assets/ einen neuen Ordner fonts anlegen. Hier rein die Schriftdateien .ttf .eot .otf. Rails sucht seit der neusten Version nach dem fonts Ordner, es muss nichts angepasst werden.
Jetzt möchte ich zwei Beispiele zeigen, einmal mit compass (und Sass) und einmal ohne.
Als erstes einmal mit Sass und compass, das ein mixin anbietet :).
In der Firma, in der ich tätig bin, haben wir eine fertige Vim-Umgebung, die über Github zugänglich ist. Da in der HTW aber leider kein Vim mit Ruby-Unterstützung vorhanden ist, habe ich unsere normale Umgebung geforkt und ein bisschen zurechtgestutzt, sodass man damit arbeiten kann.
12345
ssh sxxxxx@ilux150.informatik.htw-dresden.de #erstmal auf den ilux verbindengit clone git://github.com/outsmartin/vimfiles.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
cd ~/.vim
git submodule update --init
Nachdem diese Aktionen durchgeführt wurden, lohnt sich der Blick auf das Github Repository.
Hier findet man in der README Verlinkungen und Anleitungen für die Plugins.
Die wichtigsten Features sind:
CodeCompletion
Faltung
Gutes Syntaxhighlighting
verbesserte Usability (wenn man Tabs usw benutzt :))
Meinen Blog möchte ich mit einem kleinen HOWTO beginnen. Um Vim als IDE für Ruby-on-Rails zu nutzen, muss die Ruby Unterstützung reinkompiliert werden.
Dies ist nicht besonders kompliziert und mit ein paar Handgriffen getan.
Wichtig ist, dass vor der Installation alle alten Vim Versionen entfernt werden(vim-tiny oder vim-gnome…).
Der Installationsvorgang sieht dann wie folgt aus:
12345678
cd /usr/src
sudo su
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
tar jxf vim-7.3.tar.bz2
cd vim73/
./configure --with-features=huge --enable-rubyinterp --enable-gui=gnome2
make
make install
Im Anschluss einfach mal vim ausführen und gucken, ob alles geht :)