Seem the same:
[1] pry(main)> pr = proc { p "Hi" }
=> #<Proc:0x007fdc7a1398f0@(pry):8>
[2] pry(main)> lam = -> { p "Hi" }
=> #<Proc:0x007fdc79c53110@(pry):9 (lambda)>
[3] pry(main)> pr.class
# ExFat format marks files without extension as 'Unix Executable' | |
# to restore original behaviour, | |
# remove executable bits from files and only set for directories | |
# recursively remove executable bits from all files | |
sudo chmod -R -x * | |
# remove executable bits from all hidden files (e.g. .gitignore) | |
sudo chmod -R -x .* | |
# set executable bit for directories (not accessible otherwise) |
" Vim color scheme | |
" | |
" Name: theme name | |
" Maintainer: maintainer email | |
" URL: repo url | |
" General info | |
" ---- | |
" useful help screens |
function install { | |
echo installing $1 | |
shift | |
apt-get -y install "$@" >/dev/null 2>&1 | |
} | |
echo updating package information | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt trusty-pgdg main" >> /etc/apt/sources.list' | |
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - | |
apt-add-repository -y ppa:brightbox/ruby-ng >/dev/null 2>&1 |
# Install Cassandra version 1.2.9 | |
mkdir ~/tmp | |
cd ~/tmp | |
curl -O http://archive.apache.org/dist/cassandra/1.2.9/apache-cassandra-1.2.9-bin.tar.gz | |
tar -xzf apache-cassandra-* | |
rm -rf *.tar.gz | |
# Create cassandra lib/log directory and grant access to it? | |
sudo mkdir /var/lib/cassandra | |
sudo mkdir /var/log/cassandra |
brew install v8-315 | |
bundle config --local build.libv8 --with-system-v8 | |
bundle config --local build.therubyracer --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
# Install via homebrew | |
brew install mysql | |
# Start server via brew services | |
brew services start mysql | |
# Login as root to mysql command line tool | |
mysql -uroot | |
# Within mysql: |
# check if a formula is still needed | |
brew uses —installed formula |
# Stop and remove all docker containers | |
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) | |
# Run an interative console (like byebug or pry) | |
docker-compose run --service-ports appname |
cd `brew --prefix` | |
git fetch origin | |
git reset --hard origin/master |