Standard Braking Distance
- DE:
(Geschwindigkeit / 10) * (Geschwindigkeit / 10)
- EN:
(Speed / 10) * (Speed / 10)
Evasive (Emergency) Braking Distance
- DE:
((Geschwindigkeit / 10) * (Geschwindigkeit / 10)) / 2
- EN:
((Speed / 10) * (Speed / 10)) / 2
yum install gcc make ncurses-devel | |
yum install giflib-devel libjpeg-devel libtiff-devel -y | |
cd /usr/local/src | |
wget http://ftp.gnu.org/pub/gnu/emacs/emacs-24.5.tar.gz | |
tar xzvf emacs-24.5.tar.gz | |
cd emacs-24.5 | |
./configure --without-x --without-selinux | |
make && make install | |
which emacs | |
emacs --version |
wget http://mirror.sdunix.com/gnu/emacs/emacs-24.5.tar.gz | |
tar zxvfp emacs-24.5.tar.gz | |
cd emacs-24.5/ | |
./configure | |
sudo yum -y install libXpm-devel libjpeg-turbo-devel openjpeg-devel openjpeg2-devel turbojpeg-devel giflib-devel libtiff-devel gnutls-devel libxml2-devel GConf2-devel dbus-devel wxGTK-devel gtk3-devel | |
./configure | |
make | |
sudo make install |
#Simple Authentication with Bcrypt
This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.
The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).
You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault
##Steps
echo -n "That's the text"|openssl enc -e -aes-256-cbc -a | |
Encrypt with interactive password. Encrypted message is base64-encoded afterwards. | |
echo -n "That's the text"|openssl enc -e -aes-256-cbc -a -k "MySuperPassword" | |
Encrypt with specified password. Encrypted message is base64-encoded afterwards. | |
echo "GVkYiq1b4M/8ZansBC3Jwx/UtGZzlxJPpygyC"|openssl base64 -d|openssl enc -d -aes-256-cbc | |
Base-64 decode and decrypt message with interactive password. | |
echo "GVkYiq1b4M/8ZansBC3Jwx/UtGZzlxJPpygyC"|openssl base64 -d|openssl enc -d -aes-256-cbc -k "MySuperPassword" |
// How to use this: | |
// 1. Go to the desired profile page on coderwall, like http://coderwall.com/marcinbunsch | |
// 2. Paste this gist in the JS console | |
// | |
// You can also probably use this in greasemonkey and dot.js | |
// | |
// Also, it was tested in Chrome, Firefox and Safari, it probably will | |
// not work in IE, but I just don't care about it ;) | |
// | |
// UPDATE: Coderwall made changes to the site and I cannot retrieve the achievements, so they are hardcoded, taken from a cached version of the achievements page |