As configured in my dotfiles.
start new:
tmux
start new with session name:
'use strict'; | |
var Color = function(color, isHex) { | |
this.color = color; | |
this.isHex = isHex; | |
} | |
Color.prototype = { | |
rgbToHsl: function(r, g, b) { | |
r /= 255, g /= 255, b /= 255; |
'use strict'; | |
var Color = function(color, isHex) { | |
this.color = color; | |
this.isHex = isHex; | |
} | |
Color.prototype = { | |
rgbToHsl: function(r, g, b) { | |
r /= 255, g /= 255, b /= 255; |
(function() { 'use strict'; | |
var recalculatePrices = function() { | |
var rateCurrency = 'RUB_USD'; | |
var rateURL = 'http://free.currencyconverterapi.com/api/v3/convert?q='+rateCurrency+'&compact=y&callback=?'; | |
$.getJSON(rateURL) | |
.success(function(data) { | |
var rate = data[rateCurrency].val; | |
$('.rubl').parent().each(function(i, el) { |
As configured in my dotfiles.
start new:
tmux
start new with session name:
function whatDoesItDo(val){ | |
return val ? 1 : 2; | |
} |
I'm in a hospital in Spain and my MacBook was stolen.
Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.
sudo apt-get update | |
wget http://nodejs.org/dist/v0.10.2/node-v0.10.2-linux-arm-pi.tar.gz | |
tar -xvzf node-v0.10.2-linux-arm-pi.tar.gz | |
[[ ! -f .bash_profile ]] && echo '[[ -f .bashrc ]] && . .bashrc' > .bash_profile | |
echo 'NODE_JS_HOME=/home/pi/node-v0.10.2-linux-arm-pi' >> .bash_profile | |
echo 'PATH=$PATH:$NODE_JS_HOME/bin' >> .bash_profile | |
npm install -g node-gyp |
sudo sh /usr/share/ati/fglrx-uninstall.sh | |
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx | |
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon | |
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core xserver-xorg-video-radeon xserver-xorg-video-ati | |
sudo apt-get install mesa-utils |