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.

Get Started With the Juicing Experts

juicing

What are these juicing experts? Oh well, these are the best brands and models of juicers that can serve us well with healthy juices from raw fruits and veggies. This is very appealing for those people who want to work greatly with their diet and want to have the right serving of vegetables every day. At first, you need to make certain adjustments and modifications in preparing the fresh juices. However, over time, you’ll get to love it more and more.

The juicer expert can make a big deal of giving us healthy juice freshly taken from raw and organic fruits and vegetables. For some who are not so accustomed to drinking fresh juices, it is the best time to crank the steps of basic juicing and learn to love the fresh fruits and vegetables and incorporate them into their diet. There is more to learn about juicer kings to incorporate more fruits and vegetables into our diet on a daily basis.

The uplifting results of drinking juice from fresh fruits and vegetables makes it more appealing for us to begin cranking the basic juicing and enjoy the palatable juice with the whole family. If you want to try this diet regimen, then it’s important to choose your juicing machine properly. See to it that your choice of a juicer will best fitto your juicing plans and recipes. Buying your own juicing machine is a fresh start for a fantastic health habit that for sure will reciprocate the value of your money’s worth.

enjoy juicing

Why Include Juicing in Your Diet?

Devouring a lot of fruits and vegetables every day is punishing to your taste buds. Although eating fruits and vegetables is considered best in meeting up the requirements for a fantastic diet, it is done the easiest with the best juicer machine. Juicing is seen as more effective than forcing yourself to swallow raw fruits and veggies. Juicing is non-punishing, yet it offers good health and nutrition.

What Juicer to Use?

In choosing your best juicer it is but necessary to check credible reviews about this perfect addition to your kitchen tools. You are to choose from several types of juicers. The most familiar are the centrifugal juicers, masticating juicers, and twin gear juicers. Go into their amazing features and always check their drawbacks too. It’s good to educate yourself on the best uses and the dealbreakers of each one so that you will not be expecting beyond of what your chosen type is capable of doing.

Home Cooking Is Made Easy

cooking

Can you cook your own meal? The value of home cooking has tremendously changed people’s views about the good food and spending quality time together. The good cuisine in fine restaurants is brought home in different light. People have greatly enjoyed fine dining at home. This is the essence of home cooking. Take a closer look at the online pressure cooking tips and find out how home cooking is made easy. Apply them in a real setting and reap the great benefits.

Consider the Best Kitchen Tool

How would life be if people were not into home cooking and processed foods were our main sources of foods? We might be alienated to what is essential and healthy.  The pressure cooker gives as the relaxing mode of cooking. It’s considerably fast and thorough. The amazing pressure cooking technology is a blast in preparing homemade meals. Your only major concern is choosing the best quality and nutritious recipe.  Execute the prepping and let the pressure cooker take charge of the fast cooking. It’s truly a guarantee that the instant pot is sealed that no single nutrient will be able to escape.

Consider the Planning

You can make weekly meal plans if you really want to be organized. By planning your daily meals in a week, it will give you enough time to consider the healthy and key ingredients. Tap on simple yet nutritious ingredients.  By making weekly plans, you will not be pressured in the kitchen.  Everything will run smoothly and healthy meals will be in abundance. No cramming, no last minute, and no delays. Settle for healthy ingredients and include this in your meal plans. Consider best alternatives to ingredients in case what’s indicated in your recipe are not in the store. Since everything has been planned already, disasters in the kitchen will be avoided.

Consider the Family’s Diet

As a home cook, you are pretty aware of what kind of food your family needs. Don’t ever choose the low price over the best quality of foods. Maintaining a healthy diet is a life-long plan. Don’t switch out because your family’s diet is very important.  Yeah, the diet of your family or everybody’s diet should be part of the planning. Don’t just pick up anything just for the sake of cooking. Make it in depth because it’s not commercialized. You’re not into monetary profit for you are into great health benefits.

cooking

Home cooking is beneficial compared to fast food and ready-made meals. Pressure cooker made it easy so that more and more people can benefit from home cooking and see its significance in their lives. We’ve got to enjoy every pinch and every moment in the kitchen. It’s made easy, economical, and healthy.  Our great love for food is well supported by pressure cooking technology.

Let’s Make Things Clear About DIY Chainsawing

chainsawing

Have you got the idea of how the cleanest cuts are done? Chainsawing is certainly one of the best cutting techniques that woodworkers are using. It’s done efficiently by operators who are well equipped with the safety guidelines.  DIY homeowners also found their niche in using the chainsaw for some applicable home tasks such as trimming and chopping. Hence, chainsaws for home use are made available in the market for your individual purposes.

Eliminate your fears about chainsaws as depicted in horror movies. Yes, these cutting tools have horrible reputations in the big screen. People are curious of its veracity if the chainsaw is really that awful. Well, undoubtedly, the chainsaw has an impressive role in the different cutting tasks. Knowing such role, one could surmise that chainsawing is not as dreadful as featured in the movies.

DIY chainsawing techniques are applied by homeowners to make it more efficient.  They come to know the most capable chainsaw suited for home use. At first, homeowners who are doing DIY landscape find the use of chainsaw very intimidating. But, not anymore today.

Sagacious homeowners have explicit details of how the chainsaw will meet their ends of home landscaping. They observe safe and efficient working techniques to make the chainsaw work impressively at home. The impressive cuts clear out the all the negative stories about using the chainsaw. Since it has been invented for a great purpose, then it has to be utilized very well.

Poor working techniques will create problems and inflict physical injuries to the operator. The chainsaw is just the tool. It has no life and it can’t operate on its own. Human intervention extremely needs mastery and perfection to avoid unnecessary strain.  Handymen are aware of chainsaw hazards. Therefore, it is highly recommended to use personal protective equipment when chainsawing.

Right knowledge about the use of the chainsaw whether at home or in the woods has to be understood clearly.  It is known as one of the efficient cutting tools and the most dangerous one in your arsenal. Functional safety features have to be emphasized as well as the chainsaw safety requirements to make the cutting task rewarding and not a great loss.

chainsawing ideas

Don’t trade off your safety by doing it just for the sake of sawing. Planning to have a chainsaw at home has to be coupled with great responsibility. Make safety your top most priority.

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.