Fucking Shell Scripts

Completely confused by Chef? Blowing your brains out over Ansible? Wanna just use fucking shell scripts to configure a server? Read on!

Features

  • Wraps up the fog gem, so it can be used on any cloud service, including AWS, rackspace, etc.
  • We’ve intentionally designed this tool to be insanely easy to use

Step 0: Install the gem

gem install fucking_shell_scripts

Step 1: Create a project directory

mkdir config_management

Folder structure:

  • /servers (required) – yaml server definitions (see example below)
  • /scripts (required) – the shell scripts that will configure your servers (see example below)
  • /files (optional) – files to be transferred to servers (nginx.conf, ssh keys, database.yml, etc.)

An example folder structure:

./config_management
├── files
│   ├── keys
│   │   └── deploy_key
│   └── rails_config
│       └── database.yml
├── scripts
│   ├── apt.sh
│   ├── deploy_key.sh
│   ├── git.sh
│   ├── redis.sh
│   ├── ruby2.sh
│   ├── rubygems.sh
│   ├── search_service_code.sh
│   └── search_service_env.sh
└── servers
    ├── defaults.yml
    └── search-service.yml

Step 2: Create a server definition file

The server definition file defines how to build a type of server. Server definitions override settings in defaults.yml.

# servers/search-server.yml
##################################################
# This file defines how to build our search server
##################################################

security_groups: pd-app-server
instance_type: c1.xlarge
image_id: ami-e76ac58e
availability_zone: us-east-1d
region: us-east-1
key_name: pd-app-server

name: search-server
private_key_path: /Users/yourname/.ssh/pd-app-server
security_groups: search-service  # override the security_groups defined in defaults.yml
instance_type: c1.medium
image_id: ami-90374bf9

############################################
# Files necessary to build the search server
############################################

files:
  - files/keys/deploy_key

###########################################
# Scripts needed to build the search server
###########################################

scripts:
  - scripts/apt.sh
  - scripts/search_service_env.sh
  - scripts/git.sh
  - scripts/ruby2.sh
  - scripts/rubygems.sh
  - scripts/redis.sh
  - scripts/deploy_key.sh

servers/defaults.ymlhas the same structure and keys a server definition file, except, you cannot define scripts or files.

# servers/defaults.yml
################################
# This file defines our defaults
################################

security_groups: simple-group
instance_type: c1.medium
image_id: ami-e76ac58e
availability_zone: us-east-1d
region: us-east-1
key_name: global-key

Step 3: Add shell scripts that configure the server

Seriously…just write shell scripts.

Want to install Ruby 2? Here’s an example:

#!/bin/sh
#
# scripts/ruby2.sh
#
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
tar -xzf ruby-2.0.0-p247.tar.gz
cd ruby-2.0.0-p247
./configure --prefix=/usr/local
make
sudo make install
rm -rf /tmp/ruby*

Step 4: Build/configure your server

fss search-service

This command does 2 things:

  1. Builds the new server
  2. Runs the scripts configuration

To build only:

fss --build search-service

To configure only:

fss --instance-id i-9ad6d7af --configure search-service

Note: --instance-idis required when using the --configure option

Step 5: Remove your chef repo and all its contents.

rm -rf ~/old_config_management/chef

HOLY SHIT THAT WAS EASY.

What are Automatic Pool Cleaners For?

automatic pool cleaner

Are you a pool cleaner expert? Most probably you doubt manual pool cleaning. Definitely, manual scrubbing of your pool is inadequate. You absolutely need technology for efficient and effective pool cleaning.

Cool off your summer days in your own swimming pool. Pool time should also be healthy time for the whole family. Nobody would want to swim with debris and gunk.  The beauty of your pool has to complement the shining sun, the azure skies, and your competitive swimming strokes.

Let’s decode the amazing uses of automatic pool cleaners and define their uses. Pool cleaning entails cost-effective cleaning. Hence, the best pool cleaner for the money is revealed.  There are an impressive array of pool cleaners available in shops today. In this connection, we have made the most extensive reviews of pool cleaners that will ease out your search.

Science of Pool Cleaning

Pool cleaning has been made easy and more affordable.  The most reliable pool cleaner is a must have for healthy swimming.  It should offer the swimming pool sanitation to ensure the healthy conditions of your backyard swimming pools.

The brushing and the vacuuming is a science.  As living and non-living organisms thrive in your pool, a perfect way of pool cleaning and maintenance has to become your utmost responsibility. The health of your family is more of your responsibility as a concerned adult. Dangerous contaminants may remain in the water if  they are left unattended.

automatic pool cleaner

Close monitoring of the pool has to be done. Proper water hygiene ensures safe swimming. Hence, pool cleaning should be done on a regular basis. Your pool maintenance should include the most reliable automatic pool cleaner. It has to be incorporated into your pool maintenance routines.

Pool Cleaners in Action

How do they work? What features do you really need that you think  best suits to your pool?  A reliable pool cleaner should work on its own with minimal human intervention.  Pool cleaning should not eat the biggest percentage of your time. You don’t have to hire a professional to do the pool cleaning.

A pool cleaner vacuums the debris and dirt in your pool. A battery operated cleaner is perfect for any kind of pool.  It can help you out at its best.

It is good to research about automatic pool cleaners and to know how they work so you will understand their benefits.  There are things that you need to consider to purchase the perfect automatic pool cleaner. It should not be done haphazardly for it will affect the overall health of your pool. Robotic pool cleaners showcase their fast clean technology and clean the most effective way. They are not just another pool cleaners.  They have an impressive automatic pool cleaning system.

Automatic pool cleaners require minimal human intervention. You can leave them in your pool while you do other chores.  They are versatile pool cleaners.

Cleaning with the Best Machine

Your aquatic facility needs to be cleaned. Hire the best pool cleaner now.  I mean, purchase the best machine now! Let’s get more technological. Your robotic pool cleaner can be left alone to operate and clean overnight.

Ensure the highest quality of the water in your pool as well as the totality of your pool. Above and beyond, your pool cleaning has to ensure the cleanest pool possible.

Be sensitive. There should be no other floating in your pool other than you and your family.

5 Smashing Benefits of Using the Rowing Machine

Rowing Machines for Highly Effective Workout – a Healthy Code Ever

rowing machines

 Rowing hard will torch out the elusive calories. Oh! that freaking calorie is disturbing my shape! 

Row well and burn your calories.  To make the calorie burning magical, a rowing machine is the most effective of the fitness equipment available. This is to give you a satisfying time burning out calories.

Your rowing machine will ultimately give you a full –body workout. This is extremely important to keep you in shape and fit. It’s is easy to use. It is an excellent workout machine regardless of age.

The rowing machine is the best way to get physical. Check their amazing benefits and make yourself in it.

  1. Effective Low-impact Cardio Workout

Rowing is a low-impact cardio workout that is needed by people of all ages. It greatly deals with your overall fitness and health. The use of the rowing machine involves so many major muscle groups which keep the heart elevated. You can easily work up to your target heart rate because of the adjustable resistance of the rowing machine.  Your regular cardio workout will help a lot to increase your stamina, muscular strength and endurance, effective weight loss as the workout burns significant calories fast.

  1. Burn Calories and Tone Muscles

Rowers are very effective at burning calories. An hour of workout on a rower burns an average of 600 calories.  The needed overall body workout is achieved by using the efficient rowing machine. Regular rowing will also increase your energy. Hence, consistent use of rowing machine is a great way to achieve your fitness goals.

  1. Increase endurance

A regular exercise with a rower will help you get enough physical activity.  The rowing has long-term benefits of increasing your endurance. The full-body workout might be a challenge at first, but if done on a regular basis, you will notice that your energy is increased and your stamina is developed.

  1. Effective Full-body Workout

Rowing machines offer great upper and lower body workout. It is really an outstanding form of exercise as it involves major muscle groups in the shoulders, in the upper and lower back and especially the lower body muscles. Rowers can help you work out with your overall posture without straining your back and joints. This upper and lower body workout will help you in maintaining your flexibility and balance.

rowing machine

  1. User-friendly

Rowing machines will help you achieve your fitness goals easily as they are not complicated workout machines.  Rowers are easy to use if you just educate yourself on the proper techniques. They are easy to learn and for sure you will not end up head spinning. Exercising on rowers is ideal to all people regardless of age. The proper rowing techniques will maximize your workout and minimize injury. Row smoothly and engage your core. Follow  the safety tips in using the rowers and it can give you a great deal with your fitness goals.

That’s it. Row properly. Don’t pull as hard as possible.  Instead, be an adaptable rower. Set your rowing plan and determine your row pace. Don’t make things complicated. There’s nothing more effective than rowing well!

Bowblade Turns You into Virtual Marksman

Do you want to be a modern day Robin Hood? How about Hawkeye, Green Arrow? or perhaps the iconic Katniss Everdeen?

Katniss

Unfortunately, you don’t have the time and space for neither your archer practice nor the money to afford the fastest compound bow or recurve bow.

Don’t worry…Here comes the BowBlade.

BowBlade is a gaming peripheral designed by the chiropractor Ron Green. Primarily created as an exercise tool and gaming simulator, this device aims to turn aspiring iOS and Android archers into excellent virtual marksmen.

This gaming simulator is a rectangular bow that has flexible, gliding blades that users are required to pull back as if they are using a regular bow instead of a taut string. This mechanism makes it’s easier to draw, aim, and shoot while still providing a good amount of resistance for a workout. But when playing the 35 different touchscreen games on iOS, users are actually pulling something similar to a gun trigger that is attached to a capacitive stylus tip, simulating a finger touch to the screen.

Since this device makes use of the gyroscope, BowBlade can actually more closely simulate the feeling of hunting something and enhancing that feeling, though it does little to change the general dynamics of games. That could change if developers make specialty games designed just for it.

A smartphone mount and a string-activated stylus allow the $185 version of the BowBlade to be used for gaming with augmented reality archery titles. But a $200 exercise version with stiffer blades is also available for those who care more about their figure than a high score ranking.

Along with the iPhones and iPods, the device can also be adjusted to work with Android devices and Nintendo’s Wii. The company is also striving to get it set up for console systems like the Xbox 360 and PlayStation 3.