Keeping Kids Safe on the Internet

kids computer

kids computer

To say that the internet has become a part of many people’s daily life would be an understatement. Many people spend time online every day for varied reasons including children who are often quick to learn their way around it. Whether it is for homework or entertainment or everything else in between, the internet has become a go-to place for many kids.

But just how safe is the internet? Not as much as most people would likely think. Adults and children alike are vulnerable to online threats, many of which they may be unaware of. There are several ways internet users, especially children may be put at risk. Without proper adult supervision and safety measures in place, children are exposed to the dangers that lurk on the internet that even adults face.

Saying that the internet can be a dangerous place is not meant to scare people away from it. Rather, the idea is for users to be aware of the potential risks and find ways to protect themselves. More importantly, it is to promote the need to educate children about online safety and the security measures parents and other adults around them can use to ensure that they are protected.

Teaching kids about the do’s and don’ts when online is a great way to prepare them to become more responsible digital users. There are internet safety games designed for kids that can make about keeping safe online more fun and engaging. Parents and school administrators can also set some guidelines on usage as well as install internet safety software that can protect kids from malware and prevent them from visiting malicious sites.

What Are The Benefits of Learning Shell Scripting

Shell Script

Learning Shell Script could be difficult at first.

So, what is a shell script? It allows the program orders in chains. Just like batch files, it executes them as a scripted event.

Also, it can take input from a user file then output them to the visual screen. To help you understand how this work, here’s some uses of shell script.

Monitor Linux System

Linux

A shell script is used to analyze performance in real-time. Monitoring a network or system will inform you whenever an issue is detected. This is important to avoid network problems. It can also be used to solve a system failure quickly.

Data backup

One of the most important things to do is to back everything up. This is essential to secure and protect important files. You don’t want to lose something precious to you, right? Use the shell script to secure all vital information and data.

Find out what’s eating your system resources

You can easily found hidden programs that are eating up your system. By using Shell Script, you can identify what processes consume your available system resources.

Find available and free memory

To make a program run faster, you’ll need more memory. Finding a free memory will be easier with the use of Shell Script.

To make coding easier, try drinking a cup of delightful tea while learning! It will help you focus and relax while coding. Learn more about the varieties of tea here. I guarantee you. This will help you a lot!

 

There you have it, coders! Above are some of the uses of Shell Script. It’s up to you to find it’s full capability and uses. Use your curiosity to learn more about the Shell Script and its importance!

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.