teleren/devto huggingface dataset:
Miracle Money Magnets
Tags: money, management, javascript, mobile
Published: 2022-02-20 05:46:32

Have you been wondering why you can’t seem to unlock the vault to true wealth and abundance?

Does it seem like every time you get ahead, somehow the money seems to vanish so that you are struggling again? 
That’s proof that you are missing part of the recipe for true wealth and abundance. 

There is a simple recipe for attracting money and creating true wealth. But like a recipe, if you are missing ingredients, or if you use the wrong ingredients, you get something that is terrible. 

You might know part of the recipe for attracting money, but if you do not have the money in the bank that you want, something is missing. 

If you are not taking the vacations you know you deserve, and you are not living the life that you want, then your money vibration blueprint is incomplete. 

What does that mean?

When your money vibration blueprint is incomplete or out of alignment, you will always struggle with money. 

But there is great news. There is a simple 5-step recipe to attract the wealth that you have been looking for. My friend and money manifestation expert Croix Sather created this powerful and surprising video https://byrl.me/4YVaUPj about why most people repel money. And how you can reverse it, so you attract money.
Automating user management with bash script
Tags: bash, cloud, linux
Published: 2022-02-20 05:42:50

As a System administrator, creating users on multiple servers maybe something that you would do on a daily basis. It maybe an easy task to create a user on single server but imagine that you need to add a user on 100+ different Linux servers. Isn't it a tedious task? so let's create a bash script that automates it.

First, let us create a text file that includes all the server hostnames or IP addresses where you wish to add the user.

Here in this example, I've created a file **servers.txt** that includes the servers names ( here I have two servers):

![Screenshot 2022-02-14 at 9.56.44 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644813548350/lCVP-Y4t_.png)

Now take a look at the following **addusers.sh** bash script:
```
#!/bin/bash
servers=$(cat servers.txt)
echo -n "Enter the username: "
read userName
echo -n "Enter the user id: "
read userID

for i in $servers; do
echo $i
ssh $i "sudo useradd -m -u $userID $userName"
if [ $? -eq 0 ]; then
echo "User $userName added on $i"
else
echo "Error on $i"
fi
done
```

![Screenshot 2022-02-14 at 9.57.11 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644813871353/pg-5MZRgZ.png)


When you run addusers.sh, the script will first ask you to enter the username and the user id of the user who you want to add; then, it will loop over and connect to all the servers in the servers.txt file via SSH and add the requested user.

Let's run the **addusers.sh** script and see how it executes:

![Screenshot 2022-02-14 at 10.22.49 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644814387804/h3VyLEmBEP.png)
If you haven't enabled password-less login via SSH, it will prompt to enter the password to gain access to server. 

The script ran successfully and testuser2 account was created on the two servers.
   
- You must have a valid account that has super user access on all the servers.

As a beginner to Bash Scripting, I found it really impressive to know that with bash scripting you can automate many boring, tedious task in Linux!
Setting up an Ubuntu 20.04 VPS
Tags: cloud, beginners
Published: 2022-02-20 05:40:55

### Creating an VPS

VPS, or Virtual Private Server, is an virtual machine configured to operate as a physical computer under virtualization software on a dedicated server. It stores all of the data and files that are useful for your application .You would interact with a VPS just as you would a physical, dedicated server.

I use [Digital Ocean](https://m.do.co/c/174c0787f826) for creating my VPS. Ofcourse you can use any of the other service providers. Once you login into your account, you will be presented with the below screen.
![Screenshot 2022-02-09 at 9.56.44 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644380816868/9zqEDLc2b.png)
Click on Create and then Droplets (VPS) , you will get a screen where you can choose the Operating system, and plan size. 

![Screenshot 2022-02-09 at 9.18.04 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644380919100/z8KKj2VSZ.png)
Choose a region which is closest to your target users. This is basically the physical location where the server will be located. Finally, choose a password and click create droplet.

![Screenshot 2022-02-09 at 9.18.34 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644380965191/7FPpJW8h5.png)

Once the Creation of droplet is done, you will see the details of the Server like Public IP, Private IP and some hardware details.

![Screenshot 2022-02-09 at 9.20.08 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644381093757/EWumgmxHU.png)
### Accessing the Server
We will use an SSH Client to get access to the server's terminal (our VPS), and once we have access to the terminal, we can start executing commands on this server. 

To log in to our server, we need to know its public IP address ( which we already have).

Execute the following command on the terminal

```
ssh root@yourserver_PublicIP
```

![Screenshot 2022-02-09 at 9.22.03 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644381239726/dXDGzBJVk.png)
Enter the password you have created while creating the droplet in DigitalOcean. Once you enter the password when prompted, you will be logged in as root user.

![Screenshot 2022-02-09 at 9.22.44 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644381306838/90PjduSKK.png)

You an execute almost all the Linux Commands on your Ubuntu Server.

![Screenshot 2022-02-09 at 9.23.57 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1644381393211/_ZwC0Sfty.png)

You can create non-root users, by `useradd` command.
```
useradd srinivas
```
You will be asked to enter some information and a password. Once you are provided the details required, It will create a non root user profile in the server.

The `exit` command will close the server's terminal. 

You can configure as many servers as you want of your choice( but beware of Billing ). Hope you got basic understanding on how to setup a VPS and how to access it. :)
Get productive with docker using: lazydocker
Tags: docker, cli, productivity, terminal
Published: 2022-02-20 05:38:52

When you manage docker containers on a server, you typically have two choices:

1. Install & deploy a web-based GUI
2. Manage your containers from command line

Wouldn't it be nice if there was something in between? If we could manage the containers & images right from the terminal in a better and faster way? That's when [lazydocker](https://github.com/jesseduffield/lazydocker) comes into the rescue.

[lazydocker](https://github.com/jesseduffield/lazydocker) is a simple, open-source, terminal based UI for both docker and docker-compose written in [Go](https://golang.org/). It makes managing your containers & images from your command line really simple.

To install [lazydocker](https://github.com/jesseduffield/lazydocker), just follow the instruction from official repository. Right after that optionally, you can create an alias to start [lazydocker](https://github.com/jesseduffield/lazydocker) easily. In my case it's like this:


![alias-preview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pbwbg2r682agubzal8ru.png)

The highlighting features from [lazydocker](https://github.com/jesseduffield/lazydocker.git) are:

- viewing the state of your docker or docker-compose container environment at a glance
- viewing logs for a container/service
- viewing ascii graphs of your containers' metrics so that you can not only feel but also look like a developer
- customizing those graphs to measure nearly any metric you want
- attaching to a container/service
- restarting/removing/rebuilding containers/services
- viewing the ancestor layers of a given image
- pruning containers, images, or volumes that are hogging up disk space

![lazydocker-demo](https://github.com/tahsinature/lazydocker/blob/master/docs/resources/demo3.gif?raw=true)

And the fact that, all of these you can do with some fantastic keyboard shortcuts in a matter of seconds, is just awesome.

So, if you don't want to deal with the complications of the standard CLI commands of docker, [lazydocker](git@github.com:tahsinature/lazydocker.git) is a great handy little tool for you.

And finally, don't think: you're being lazy by using this tool. You're being productive and efficient. So what are you waiting for more? Go, give it a shot.

Happy productive hours!
Thanks & take care!
The 6R's for Migrating to Cloud
Published: 2022-02-20 05:38:07

As part of migrating to cloud from monolithic servers, we often implement different strategies. This post talks about 6R's of Cloud Migration.

### Rehosting
- Otherwise known as “lift and shift.”

As name suggest, lift and shift is generally —  lifting servers or applications from their current environment, which is generally on-premises —  and shifting them to infrastructure in the public cloud and rehosting the application there.

The Rehosting strategy is a very common strategy for organizations which is starting their Cloud journey.

### Replatform
- Often called as "modified form of lift and shift"

In Replatform you might make a optimizations to your application to achieve some sort of benefit.
For example,  You may be looking to reduce the amount of time you spend database instances by migrating to a database-as-a-service platform like [Amazon RDS](https://aws.amazon.com/rds/)

### Repurchase
-Moving to a different product (Drop and Shop)

This may mean ending existing Services and repurposing same services on new platforms. Like Moving a CRM to Salesforce.com

### Refactor
- basically re-architecting

Re-imagining how the application is architected and developed, typically using cloud-native features. This is typically driven by a strong business need to add features, scale, or performance that would otherwise be difficult to achieve in the application’s existing environment.

One of the key problems with refactoring is that it’s going to take a little bit of time and expertise.

### Retain
-Usually this means “revisit” or do nothing (for now).

With this use case, it may make sense to retain your applications in the current environment and implement a hybrid or part migration strategy. You should only migrate what makes sense for the business and you probably have reasons to retain.

### Retire
-Get rid of

This strategy involves identifying the applications that are no longer used and can be turned off so the business can focus on services that are widely used and priority. Like some of the other strategies it also require technical expertise to make sure things are done correctly.

![6R (src: GFG)](https://media.geeksforgeeks.org/wp-content/uploads/20210518100436/DetermineNewPlatform.png)
WHY NOT FREE YOURSELF ?
Published: 2022-02-20 05:32:55



Free yourself from **attachments** and love without **expectations**.

Free yourself from **questioning** your **worth**.

Free yourself from all the **pain**.

Free yourself from your **past** self. It’s your time to bloom.
 
Free yourself from the need to be **impressive**. focus on your ability to be **impactful**, instead.

Free yourself from your own **expectations**.

Free yourself from **needing** their **approval** and the sky opens up.

Free yourself from the **limitations** of society. Become your highest self.

Free yourself from what **destroys** you.

Free yourself from **people** who thinks you can't **achieve** it. 

Free yourself from that **mentality** of **"i can't do it."**

Free yourself from **procrastination** and just **do** it.

Free yourself from **needing** **people** to boost your self esteem. 

Just free yourself, and **become** your very best you. 


UWABOR
Zoom Master Course
Tags: softwere, zoom, startup, mobile
Published: 2022-02-20 05:27:37

Zoom also has a free version, which makes it easy for anyone to try out the product and see if it’s right for their needs before committing to purchasing the full version.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jhsb4vd3yvf7zo1vmu0u.png)

Zoom is a video conferencing software. Zoom is a video conferencing software that offers HD video and audio quality and a large screen for presentations.

Zoom has been the go-to solution for companies who want to improve their collaboration, meetings, and presentations. It’s also been used by individuals who want to have one-on-one meetings or have a conference call with their team members.
Zoom Master Course https://byrl.me/KeB6cir
5 BEST VS CODE EXTENSIONS TO IMPROVE  YOUR CODING.
Tags: vscode, programming, visualstudiocode, javascript
Published: 2022-02-20 05:13:20



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/krv44orqpg4oq6jg9rxo.png)

Here is a list of the top 5 vs code extensions to improve your coding.

## **1.GitLens**


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/07cl18xspvloqgyrttbg.png)

Supercharges the Git capabilities built into visual studio code. 

## **2.Live Server**


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1ifzfx19im6ujy88edn.jpg)

Launches a development local server with live reload feature for static and dynamic pages.

## **3.EsLint**


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7joxo2kg65l91a9fjwak.png)

Tool for identifying  and reporting on patterns in javascript. Maintain your code quality with ease.


## **4.Save Typing**

Auto save file while typing.

## **5.Project Manager**


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pmdyrqg4x3nnv2qabkil.png)

It helps you to easily access your projects , no matter where they are located.
My Basic React Router 6 Setup
Tags: react, typescript, javascript, beginners
Published: 2022-02-20 04:45:34


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d5ua08oivcegimore88t.gif)

https://gist.github.com/mhaecal/556ae06b14477ee994c09e296a375f40
How to setup Side by Side Editing Layout in vs code
Published: 2022-02-20 04:35:17

## How to setup Side by side editing Layout in VS Code#
.
You can open as many editors as you like side by side vertically and horizontally. If you already have one editor open, there are multiple ways of opening another editor to the side of the existing one:

Alt click on a file in the Explorer.
Ctrl+\ to split the active editor into two.
Open to the Side (Ctrl+Enter) from the Explorer context menu on a file.
Click the Split Editor button in the upper right of an editor.
Drag and drop a file to any side of the editor region.
Ctrl+Enter (macOS: Cmd+Enter) in the Quick Open (Ctrl+P) file list.


![how-to-setup-side-by-side-editing-layout-in-vscode](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w2gemx3nmkfxldxupsmm.png)

Whenever you open another file, the editor that is active will display the content of that file. So if you have two editors side by side and you want to open file 'foo.cs' into the right-hand editor, make sure that editor is active (by clicking inside it) before opening file 'foo.cs'.

By default editors will open to the right-hand side of the active one. You can change this behavior through the setting workbench.editor.openSideBySideDirection and configure to open new editors to the bottom of the active one instead.

When you have more than one editor open you can switch between them quickly by holding the Ctrl (macOS: Cmd) key and pressing 1, 2, or 3.

Tip: You can resize editors and reorder them. Drag and drop the editor title area to reposition or resize the editor.

## VS Code Basic Layout Inception
.
VS Code comes with a simple and intuitive layout that maximizes the space provided for the editor while leaving ample room to browse and access the full context of your folder or project. The UI is divided into five areas:

Editor - The main area to edit your files. You can open as many editors as you like side by side vertically and horizontally.
Side Bar - Contains different views like the Explorer to assist you while working on your project.
Status Bar - Information about the opened project and the files you edit.
Activity Bar - Located on the far left-hand side, this lets you switch between views and gives you additional context-specific indicators, like the number of outgoing changes when Git is enabled.
Panels - You can display different panels below the editor region for output or debug information, errors and warnings, or an integrated terminal. Panel can also be moved to the right for more vertical space.
Each time you start VS Code, it opens up in the same state it was in when you last closed it. The folder, layout, and opened files are preserved.

Open files in each editor are displayed with tabbed headers (Tabs) at the top of the editor region. To learn more about tabbed headers, see the Tabs section below.

Tip: You can move the Side Bar to the right hand side (View > Move Side Bar Right) or toggle its visibility (Ctrl+B).

.
Happy Coding.
osman forhad
Full-Stack Developer💻 (Mobile App & Web App)
developer.osmanforhad@gmail.com
What Is a Shared Pool In Oracle?
Tags: oracle, architecture, sharedpool, interview
Published: 2022-02-20 04:18:23

**Shared Pool:**

- The shared pool is one of the SGA components. SGA has some components shared by all the sessions.

- The shared pool has some sub-memories, too. Library cache, data dictionary cache, result cache, and some other caches.

- Let us see all the sub caches in details

https://link.medium.com/Q5FtI9adKnb
Android Studio basic settings
Published: 2022-02-20 04:13:55


**Android SDK basic settings**
[File > Settings > Appearance & Behavior > System Settings > Android SDK > SDK Tools] 
- Android SDK Build-Tools ::리소스 아이디를 가지고 있는 R파일을 생성하고 설치 파일인 APK 파일을 최적화하는 도구. include tool that convert Java Bytecode to Dalvik Bytecode.
- (Android Emulator)
- ( Android SDK Platform-Tools)
- Android SDK Tools
- Intel x86 Emulator Accelerator (HAXM Installer) :: 에뮬레이터의 처리 속도를 빠르게 해주는 하드웨어 가속기

  
**When developing multiple projects at the same time.**
[File > Settings > Appearance & Behavior > System Settings] 
- Uncheck [Reopen projects on startup] 

**viewBinding**

```
    buildFeatures {
        viewBinding = true
    }
```

[values>themes>themes.xml]
``` 
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
```
color / #FFC107
Learning from The Odin Project.
Tags: beginners, html, css, javascript
Published: 2022-02-20 04:07:26

I have been learning from The Odin Project and I really recommend it. The courses are easy to follow. You learn how to set up your own environment for coding. The Discord community is super helpful and polite. They are constantly updating the curriculum to be up to date. TOP has sparked my passion for creating.
Değer Döndüren ve Değer Döndürmeyen Fonksiyonlar
Tags: programming, cpp, computerscience, tutorial
Published: 2022-02-20 04:01:17

## **Değer Döndüren Fonksiyonlar**

Kendisine gönderilen parametreleri kullanarak kod bloğunun içindeki işlemleri yaparak bir sonuç elde eder. Bu sonuç return komutu ile geri döndürülür ve program içinde kullanılır. Eğer bir fonksiyonun başında veri türü belirtilmiyorsa fonksiyon int bir değer geri verir.


Bir örnek üzerinden anlatırsak:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jhrd18zx1n5nodrywpg5.png)

**FonksiyonTip** fonksiyonun döndürdüğü değer türüdür, sonuc değişkeni fonksiyon tipi değerdir. Ayrıca zamanda süslü parantezler arasında kalan ifadeler ise fonksiyonumuzun gövdesini oluşturur.

**FonksiyonIsmi** bizim fonksiyonumuzun ismidir ve herhangi bir yerde çağıracağımız zaman kullanırız. (Örneğin; int ekle (int x) ;)

**tipA, tipB**  kullandığımız parametrelerin tipleridir. Parantez içerisi parametre listesi olarak da bilinir. Fonksiyonumuz parametre almadan yazılabilir. Parametre listemiz boşsa yine de parantezlere ihtiyaç vardır.

Değer döndüren bir fonksiyon, değerini **return **ifadesi aracılığıyla döndürür.

## **Değer Döndürmeyen Fonksiyonlar**

Bir örnek üzerinden anlatırsak:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wk9me09zf12zoy5ukdcn.png)
 
Değer döndüren fonksiyonlarda olduğu gibi, veri türü ile birlikte parametrelerimiz, fonksiyon ismimiz ve yaptığımız işlemler için gövdemiz vardır.

Değer döndüren fonksiyonlardan farkı, fonksiyon tipimizin void olmasıdır. Bu fonksiyonumuzun herhangi bir değer geri döndürmeyeceğini söyler.

Void fonksiyonu bir görevi yerine getirir ve ardından çağrıya geri döner ama bir değer döndürmez. Return ifadesi olmasa bile, fonksiyon sonunda çağrıya geri döner. Popüler ve iyi bir kullanımı olarak ekrana bir veri yazdırmak veya dosya üzerinde işlem yapmak için kullanılır.

## **Değer Döndüren Fonksiyonlar ve Değer Döndürmeyen Fonksiyon Farkları**

• Void fonksiyonların dönüş türü olmaz.
• Değer döndürmeyen fonksiyonlar, fonksiyon türü olarak başlığında void kullanır.
• Void fonksiyonlarının çağrıları yalnızca stand-alone durumlarda kullanılabilir. Değer döndüren fonksiyonlar ise çıktı, atama ve farklı fonksiyonlar içerisinde bir argüman olarak kullanılabilir.