brew cask install virtualbox
brew cask install vagrant
brew cask install vagrant-manager
vagrant plugin install vagrant-vbguest
wget http://static.jonof.id.au/dl/kenutils/pngout-20130221-linux.tar.gz | |
tar -xvf pngout-20130221-linux.tar.gz | |
cp pngout-20130221-linux/x86_64/pngout /user/bin/pngout |
sudo apt-get install postgresql postgresql-client postgresql-contrib libpq-dev postgresql-server-dev-9.1 pgadmin3 -y | |
sudo -u postgres psql postgres | |
CREATE ROLE "ADMIN_NAME" PASSWORD 'qwerty' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN; | |
\q | |
sudo /etc/init.d/postgresql restart | |
psql postgres ADMIN_NAME | |
SELECT version(); |
> CREATE USER 'edu37'@'localhost' IDENTIFIED BY '***'; | |
> GRANT USAGE ON * . * TO 'edu37'@'localhost' IDENTIFIED BY '***' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ; | |
> GRANT ALL PRIVILEGES ON `edu37_production` . * TO 'edu37'@'localhost'; |
https://gist.github.com/the-teacher/8080831 |
/etc/apt/sources.list | |
http://ftp.nl.debian.org/debian/README.mirrors.txt |
{ | |
"id":"dbauser", | |
"uid":506, | |
"comment":"DBA User", | |
"shell":"/bin/bash", | |
"groups": [ | |
"sysadm", | |
"dba" | |
], | |
"ssh_key": "XXXXXXXXXX" |
# Delete all gems: | |
gem list | cut -d' ' -f1 | xargs gem uninstall -aIx | |
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
= form_for @user, html: { enctype: "multipart/form-data", role: :form, class: 'form-inline' } do |f| | |
.form-group | |
= f.label :username, "Имя пользователя" | |
= f.text_field :username, class: 'form-control' | |
.form-group | |
= f.label :raw_about, "О себе" | |
= f.text_area :raw_about, class: 'form-control', style: 'height: 200px;' | |
.form-group |