iex(1)> x = 2
2
iex(2)> {^x, y} = {2, 1}
{2, 1}
iex(3)> y
1
iex(4)> {^x, y} = {3, 1}
This file contains 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
Show hidden characters
{ | |
"color_scheme": "Packages/Theme - Nil/Big Duo.tmTheme", | |
"font_size": 12, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": |
I hereby claim:
- I am follmann on github.
- I am follmann (https://keybase.io/follmann) on keybase.
- I have a public key whose fingerprint is B553 4854 962C 01A6 0264 86FC EA41 184C 620A 9982
To claim this, I am signing this object:
This file contains 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
DB.prototype.getCurrentOpStats = function() { | |
intervals = [1,5,10,30] | |
waitingForLock = 0; | |
secsRunningStats = {}; | |
inProg = db.currentOp()["inprog"] | |
inProg.forEach(function (op) { | |
if(op["waitingForLock"]) { | |
waitingForLock += 1; | |
} |
This file contains 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
Manual and upstart config for AeroFS (aerofs-cli) on Ubuntu 12.04.1 LTS: | |
# link standard upstart script | |
cd /etc/init.d | |
sudo ln -s /lib/init/upstart-job aerofs-cli | |
# create upstart config for aerofs-cli | |
sudo nano /etc/init/aerofs-cli.conf | |
(replace andreas with your desired runtime user) | |
---- |
This file contains 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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core curl | |
apt-get -y install libssl-dev | |
apt-get -y install libreadline5 libreadline5-dev | |
apt-get -y install zlib1g zlib1g-dev | |
# for passenger needed |
This file contains 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
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
This file contains 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
module ContentHelper | |
# Usage example: | |
# set content for identifier javascript | |
# - content_for :javascript do | |
# :javascript | |
# //jscode | |
# recall with: | |
# = content_for :javascript |