Reflector Mirrors (Arch Based Only)
Conifgure Pacman (Arch Based Only)
Makepkg Tweaks
Installing Yay (Arch Based Only)
Installing Pamac (Arch Based Only)
Performance Tweaks
First step: Install Android SDK
yaourt -S android-sdk android-sdk-platform-tools android-sdk-build-tools
Note: Maybe you'll have problems with the lasta package:ncurses5-compat-libs
. In order to avoid this problem you have to use this command:gpg --recv-keys F7E48EDB
. You can find clarification here.yaourt -S genymotion
Note: You'll need installvirtual-box
and his modules,yaourt
will make for you but you need choos between ArchLinux host modules or DKMS host modules.- Enter in super user mode with
su -
and then doecho -e "vboxdrv\nvboxnetflt\nvboxnetadp\nvboxpci" > /etc/modules-load.d/virtualbox.conf
Note: You need do this with super user because need super user permissions and withsudo
, for us at least, doesn't work. sudo modprobe vboxdrv vboxnetadp vboxnetflt
Activate for current session.sudo chmod -R 777 /opt/android-sdk
http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/
Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get autoclean
require 'active_record' | |
require 'fileutils' | |
namespace :db do | |
desc "loads database configuration in for other tasks to run" | |
task :load_config do | |
ActiveRecord::Base.configurations = db_conf | |
ActiveRecord::Base.establish_connection db_conf | |
end |
rake db:create |
This should help you get Sendmail installed with basic configuration on Ubuntu.
- If sendmail isn't installed, install it:
sudo apt-get install sendmail
- Configure
/etc/hosts
file:nano /etc/hosts
- Make sure the line looks like this:
127.0.0.1 localhost yourhostname
- Run Sendmail's config and answer 'Y' to everything:
sudo sendmailconfig
- Restart apache
sudo service apache2 restart
namespace :db do | |
require "sequel" | |
Sequel.extension :migration | |
DB = Sequel.connect(ENV['DATABASE_URL']) | |
desc "Prints current schema version" | |
task :version do | |
version = if DB.tables.include?(:schema_info) | |
DB[:schema_info].first[:version] | |
end || 0 |
In an earlier video we took a look at Rack to build incredibly lightweight web applications with Ruby. Rack's toolkit allowed us to quickly throw to get a working application, but we did have to put a little effort into it once we wanted to build something a little more complex.
Sometimes you want a fast and simple framework for building a simple web application. Perhaps you only need to respond to a handful of routes, or you want the response time for a small part of a bigger application to be lighting fast. The Sinatra framework is made for just these moments.
Today let's take a quick look at this framework and see how quickly we can build lightweight web applications.
To get started we first need to install the Sinatra gem:
gem install sinatra