teleren/devto huggingface dataset:
How to setup a Ceph RADOS Block Device
Published: 2021-11-30 16:29:01

---
title: How to setup a Ceph RADOS Block Device
published: true
description: In this video, we talk about how to set up a Ceph RADOS block device. We will mount this device on a Linux client and talk about what block device is used for and the difference between a Ceph file system. We also touch on iSCSI and its usage around block devices. Moreover, we talk about mirroring RADOS data.
tags:
cover_image: https://i.ytimg.com/vi/XrBIOuGIcvA/maxresdefault.jpg
---

{% youtube XrBIOuGIcvA %}

In this video, we talk about how to set up a Ceph RADOS block device. We will mount this device on a Linux client and talk about what block device is used for and the difference between a Ceph file system. We also touch on iSCSI and its usage around block devices. Moreover, we talk about mirroring RADOS data.
Alternatives 🔥😊 to the abandoned tymondesigns / jwt-auth 😠 laravel auth package
Tags: laravel, jwt, php
Published: 2021-11-30 16:25:58

**S**o the most popular and most widely used `jwt-auth` package appears to be abandoned by the owner.
 Despite `several issues`, and pull requests by the community, the maintainer appears to be silent. The most common issue, described [here](https://github.com/tymondesigns/jwt-auth/pull/2117#issuecomment-878287790) makes the library unsuable with `php 8`.
 
Due to inactivity by the maintainer, this has forced laravel developers that use php 8, to look for alternatives.
 Here is a list of alternatives to the [tymondesigns/jwt-auth](https://github.com/tymondesigns/jwt-auth) package, that i have managed to find, in my quest to find alternative packages.
1. [ PHP-Open-Source-Saver /
jwt-auth ](https://github.com/PHP-Open-Source-Saver/jwt-auth).
This package has `52 github stars` , at the time of writing and has its documented [at readthedocks](https://laravel-jwt-auth.readthedocs.io/en/latest/)
2. [ rcerljenko /
laravel-jwt ](https://github.com/rcerljenko/laravel-jwt) Another alternative that also rose out of the same need is this package by Ricardo Čerljenko . It has `26 github stars `and appears to be less documented that the php-open source saver package.

> PS: I will keep adding more great packages as i find them
It's time to clean up my dotfiles
Tags: linux, bash
Published: 2021-11-30 16:20:35

---
title: It's time to clean up my dotfiles
published: true
description: 
tags:
- linux
- bash
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6mr2y5sqyw433w3gj5j6.png
---


{% youtube Jq1Y48F_rOU %}


I am challenging myself to 30 days of dotfile ricing.  I have been on linux desktop for a few months now and have a pretty good workflow going, I have the coarse edits done to my workflow, but it has some rough edges that need sanded down.  It's time to squash some of those little annoyances that still exist in my setup.


This is primarily going to be focused on productivity, but may have  a few things to just look better.  This will comprise heavily of aliases, zsh, and nvim config.

Follow the [YouTube channel](https://youtube.com/waylonwalker) or the [rss feed](https://waylonwalker/rss/) to stay up to date.
FOCO : A Softskill mais valiosa na era da informação
Tags: bussiness, softskill, career
Published: 2021-11-30 16:17:14

O foco é a capacidade de se concentrar em um objetivo e conquistá-lo , é a base de tudo que fazemos . Atualmente vivemos com probreza de atenção, e não porque nosso foco diminiu mas sim , pelo o aumento de coisas que puxam nossa atenção o tempo todo ( Internet, Eletrônicos,Apps entre outros) , assim nosso foco fica divido o tempo inteiro!

Agora uma pergunta muito subjetiva:

Qual foi sua ultima vez que você ficou em um estado de concentração ?

Estado de concentração é quando focamos tanto em uma atividade que nem notamos o tempo passar .Deixa eu adivinhar , tem muito tempo né .... e estava fazendo algo que você gosta muito.Cocentrar nosso foco em uma atividade é algo estremamente dificil no tempo que vivemos e te respondo o porquê.

O que mais nós impede de desenvolver o foco é a exaustão cognitiva, é quando realizamos uma atividade por muito tempo e chega um ponto que nada mais entra em nossa mente e a motivação para realizar aquilo é zero e não conseguimos mais concentrar naquilo .

Para recuperar a concentração tirada pela exaustão cognitiva ,temos que literalmente esvaziar a mente , e não substituir por outra atividade.Segue algumas coisas que pode fazer:

Meditação (Fechando os olhos respirando fundo e soltando devagar), assim você irá desligar o foco da sua mente para sua respiração e não vai pensar , naquela atividade.
Dar uma volta perto da natureza , sabe aquele lugar na sua empresa ou casa que tem árvores e plantas ? E se não tiver o céu é muito bom também. Olhar a natureza te traz devaneios e alivia a tensão mental.
O importante é fazer um break quando estiver fazendo uma atividade pois assim você não tera exaustão cognitiva e trazer atividades na sua rotina que te ajudem esvasiar a mente como Yoga, atividade fisica entre outras coisas).

O foco é como um músculo e precisa ser treinado , a metodologia dos Mini Desafios vai te ajudar a desenvolver ele . Os mini desafios nada mais é você definir um curto periodo de tempo que vai ficar concentrado em uma atividade e cumpri- la. Começando com 10 min depois ir aumentando conforme sua mente aguente pois se você colocar mais tempo que aguente , você terá exaustão congnitiva e voltando a estaca zero , o segredo é se auto conhecer.

A melhor forma de exercitar isso é ler livros, defina 15 paginas por dia e vai aumentando você verá o quanto é transformador . A leitura aumenta nosso foco e exercita mais a nossa mente do que você ver um video por exempo ,isso porque :

> ENQUANTO LEMOS UM LIVRO CRIAMOS UM MAPA MENTAL PARA SUA COMPREENSÃO

> DEPOIS CONECTAMOS ESSE MAPA MENTAL COM UM UNIVERSO DE MAPAS MENTAIS SOBRE O MESMO ASSUNTO

> ESSA EXPANSÃO DESSA COMPREENSÃO É ONDE RESIDE O NÚCLEO DO CONHECIMENTO.

Vamos praticar o foco e ter sucesso em nossas vidas sem procastinação.

Espero ter ajudado.

Referência que usei foi do livro " [Foco: A atenção e seu papel fundamental para o sucesso](https://www.amazon.com.br/Foco-aten%C3%A7%C3%A3o-papel-fundamental-sucesso-ebook/dp/B00H2KX8W8) " por Daniel Goleman
Job Interview -> Show me your skills or solve this algorithm?
Tags: discus, career, interview
Published: 2021-11-30 16:11:43

When it comes to technical interviews, there are a variety of different methods that companies deliver these interviews to see your skills. 

## Which do you prefer, and why? 
#### Show me your skills
In this interview style, the interviewer simply asks, show me what  you can do. The interviewee should then create a small app or site that's functional and free of bugs. 

#### Solve this algorithm
In this interview style, the interviewer gives  you a set challenge and asks you to solve it and analyzes your code performance on the Big O scale. 


### My Opinion
I prefer the Show me your skills. This allows technical freedom to use any technology and just build something. This helps showcase your talents such as styling, componentization, functional code, code structure, etc. As a hiring manager, I learn more from watching the interviewee perform at their natural ability than if the remembered the memoization method for solving an algorithm without recursion. 

I'm interested in hearing your thoughts whether you are the interviewer or the interviewee. Discuss...
Phishing Campaigns And YouTube Creators
Tags: cybersecurity, security
Published: 2021-11-30 16:11:18


Phishing attacks are one of the most common forms of cyberattacks leveraged by cybercriminals.

The latest disclosing of Google’s Threat Analysis Group (TAG) has disrupted financially motivated phishing campaigns targeting YouTubers with Cookie Theft malware. 

## Cookie theft

Cookie theft occurs when a third party copies unencrypted session data and uses it to impersonate the real user. Cookie theft most often occurs when a user accesses trusted sites over an unprotected or public Wi-Fi network. It occurs when a person mimicks a person’s cookie over the same network, thus a hacker can access sites and perform malicious actions.

## Phishing campaigns and YouTube creators

The phishing campaigns targets many YouTube creators by sending forged business emails to their email which they have provided in their channel. They impersonate as an existing company requesting a video advertisement collaboration. When the link is clicked, it would infect their computer using a variety of malware programs, usually designed to steal cookies and passwords. 

_More detailed version of how you can be safe from cookie thefts
 published at: https://beaglesecurity.com/blog/article/cookie-theft-youtube-phishing-campaign.html_
Configure and hosting MySQL Database in Ubuntu
Tags: mysql, ubuntu, linux, serverless
Published: 2021-11-30 16:06:33

After a lot of searching and headache with that, I decide to create this little tutorial to help you setup and host a MySQL database on ubuntu machine without stress.

Install MySQL
Install the MySQL server by using the Ubuntu operating system package manager:

`sudo apt-get update
sudo apt-get install mysql-server`

The installer installs MySQL and all dependencies.

If the secure installation utility does not launch automatically after the installation completes, enter the following command:

`sudo mysql_secure_installation utility`

This utility prompts you to define the MySQL root password and other security-related options, including removing remote access to the root user and setting the root password.

Allow remote access
If you have iptables enabled and want to connect to the MySQL database from another machine, you must open a port in your server’s firewall (the default port is 3306). You don’t need to do this if the application that uses MySQL is running on the same server.

Run the following command to enable remote access to the MySQL server:

`sudo ufw enable`
and this command to allow remote access

`sudo ufw allow mysql`

Start the MySQL service
After the installation is complete, you can start the database service by running the following command. If the service is already started, a message informs you that the service is already running:

`sudo systemctl start mysql `

Launch at reboot
To ensure that the database server launches after a reboot, run the following command:

`sudo systemctl enable mysql`

Configure interfaces
MySQL, by default is no longer bound to ( listening on ) any remotely accessible interfaces. Edit the “bind-address” using this command

`nano /etc/mysql/mysql.conf.d/mysqld.cnf`
comment these lines on the **file**:

``#bind-address = 0.0.0.0`
`#mysqlx-bind-address = 0.0.0.0``

Restart the MySQL service.

`sudo systemctl restart mysql`

Start the **MySQL** shell and create your user to login remotely

`/usr/bin/mysql -u root -p `
Now you can run the script bellow to create your user with remote access enabled:

`CREATE USER 'demouser'@'%' IDENTIFIED BY 'Demopassword2021#';
ALTER USER 'demouser'@'%' IDENTIFIED WITH mysql_native_password BY 'Demopassword2021#';
GRANT ALL on *.* TO 'demouser'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;`

Ps: The "%" means that user can connect from any IP. If you would like safer you can specify the you public IP.
for you exit from the MySQL terminal just type the command bellow and press enter:

`exit`

Restart the MySQL server
`
sudo systemctl start mysql `

Now your server is done!

I recommend Workbench to connect on user machine.

If you have any question, text me on LinkedIn or enter in our community group by this link

Good Hacking!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1j3k71jt0zwdf8gxih8e.gif)
Mobile app development for your business goals
Published: 2021-11-30 16:03:06

Pocketfied app builder can be a great fit for a range of business goals. From extending your market presence to finding a new way of interacting with existing clients, we got you covered.

Online stores
Offer your customers a simple mobile app that is even faster than the browser experience. No matter how long your inventory is, all new listings will automatically be loaded to the app.
Agencies
You’ve set up a Shopify store for your client but are unsure how to upsell? A well-designed mobile shopping experience will be a perfect addition to the web store. You can get it white-labeled too.
Freelancers
We provide a reseller program for specialists who have a customer base with a need for a Shopify app builder – get rewarded for recommending our product to your clients.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nj8rw4r1ry72qiiv4gf4.png)
Daily Forecast email using Github Actions
Tags: actionshackathon21
Published: 2021-11-30 16:01:41


![Mailbox](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ksjgg1lbci5c9w2n9m8t.jpg)
### My Workflow
This workflow sends a daily weather email report using Gmail, Cron and AccuWeather API for a particular city.

- create node.js script
- import nodemailer to send email with Gmail SMTP server                                     
`npm install nodemailer`
- set up the Google App password for sending authenticated mail
- use dotenv to set up environment variables to secure data `npm install dotenv`
- create .gitignore file for .env and node_modules files
- automate the daily report email using Github Actions

yaml file

```javascript
name: Daily Forecast

on:
   schedule:
   - cron: "0 14 * * *"
   workflow_dispatch:
  
env:
    MAIL_USER_EMAIL: ${{secrets.MAIL_USER_EMAIL}}	  
    MAIL_USER_PASSWORD: ${{secrets.MAIL_USER_PASSWORD}}																 
    MAIL_FROM: ${{secrets.MAIL_FROM}}
    MAIL_TO: ${{secrets.MAIL_TO}}
    ACCUWEATHER_API_KEY: ${{secrets.ACCUWEATHER_API_KEY}}
jobs:
  report:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [14.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2
      with:
        node-version: ${{ matrix.node-version }}
     
    - run: npm ci
    - run: node src/main.js
```

- use Cron to schedule when the node script is running
- add the local forecast with AccuWeather API
- create an App on AccuWeather system
- install nodefetch to use the browser fetch API inside the node script
- add the query parameters from the Location API and Forecast API to the project
- merge your changes to the Github repository
- store the environment variables `MAIL_FROM`, `MAIL_TO`, `MAIL_USER_EMAIL`, `MAIL_USER_PASSWORD`  and the API key `ACCUWEATHER_API_KEY` as Github action secrets and run the workflow 
 
 
 
### Submission Category: 
 Wacky Wildcards

### Link to Code

 {% github verica02/daily-forecast/ %}

### Additional Resources / Info
Adding the local forecast with the AccuWeather API
https://developer.accuweather.com/
Setting up a Google App Password to use for sending authenticated mail with Gmail
https://support.google.com/accounts/answer/185833?hl=en
Gmail SMTP settings
https://support.google.com/mail/answer/7126229?hl=en#zippy=%2Cstep-change-smtp-other-settings-in-your-email-client
Full-Stack Monitoring & Incident Response Tendencies 2021
Tags: monitoring, devops, performance
Published: 2021-11-30 15:48:33

While figures are persuasive and experiences might be useful (and sometimes painful) - trends might reveal some unexpected facts. We have put them together in a human-readable format to explain the main tendencies in the #monitoring and #incidentresponse niches.

What are the most frequently used monitoring approaches? What do DevOps struggle with? Why is full-stack monitoring worth investing in?

[InsightCat](https://insightcat.com/) has analyzed the survey data from technical experts, the surveys on third-party sources and Social Media, and, of course, our own experience from day-to-day interaction with businesses worldwide, from SMBs to Enterprises.

There were 100+ respondents in this study, incl. tech experts and managers. The third-party resources are listed below:
1. https://victorops.com/incident.../six-ways-reduce-downtime/
2. https://wikibon.com/breaking-analysis-cutting-noise-full.../

Learn more about full-stack monitoring and incident response tendencies in 2021 👇

https://www.facebook.com/insightcat


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

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

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

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ygdf1c3x48onw88hsqtm.png)
Big Announcement! BotMeNot’s official beta launch date - December 7th, 2021!
Published: 2021-11-30 15:34:09

Hello everyone!

For me, things are almost as exciting as they can get! Most of the work on BotMeNot’s initial development is close to completion! 

This means that our Beta program will be going live on the 7th of December, 2021!

What’s more -  for a limited time we’ll be giving away 100 free credits to everyone who signs up during the Beta testing!

I’m super thrilled to invite you to try out BotMeNot as a beta user and let me know what you think! 

Register here: [BotMeNot Beta Users](https://botmenot.com/beta-users-wanted/) 

Besides the free credits, here’s what you can expect:

Three different types of tests you can run - Starter (1 credit), Light (5 credits) & Smart (20 credits)
Run tests on any website/domain - yours or someone else’s
Get insights into how protected a domain is from bot traffic
Get evidence of the performed tests

Got any questions? Don’t hesitate to ask!
My Second Hackathon Was Awesome! Here are some tips for a great hackathon.
Tags: programming, python, hackathon, teamwork
Published: 2021-11-30 15:30:28


So we started with our amazing Idea educrypt, though none of us knew how to make a discord bot, except me I had little knowledge... Our project was based on discord and the web. 

You know why this hackathon was successful?  Because of team work.

So here are some tips for a successful team:
- Be respectful to each other.
- Listen to every idea, then decide.
- Don't be stubborn
- Give your own ideas
- Complete the work assigned to you
- And have fun!
- Contribute

You can see, our project on devpost: https://devpost.com/software/educrypt 

Also the organisers were always active in discord, and were really helpful.

So great team + great organisers are the main elements which identify a great hackathon experience.

Here are some things to consider before teaming with other people:
- Time zone,(if they are dedicated and can meet in early morning or late nights then this does not matter)
- Skills (Do they have skills, similar to yours? Even if they have only some skills, if they can learn new things fast, then this does not matter also.)


So I hope that you win your next hackathon, till then:

**Happy Coding**
Optional Chaining Operator
Tags: javascript, beginners, programming, tips
Published: 2021-11-30 15:14:24

The idea of optional chaining is to make it easy to write code where you need to access properties or values inside an object or array that may or may not be null/undefined. Let’s take a look with this object **<u>player</u>** :


```javascript
const player = {
 name: 'Marquinhos',
 team: 'Paris Saint Germain',
 country: 'Brazil',
 birth: {
   months: 'May',
   years: 1994,
 }
}
```

Let's try to access a value that doesn't exist or is not available.

```java
console.log(player.number)
```

I'll have an error from the browser.

Let's imagine we call an API and this value should exist but we have a little problem to access this data, this error will break my code.

**The Optional Chaining Operator**

The JavaScript Optional Chaining Operator is coming with ES2020 that allows us to safely access deeply nested properties of an object without having to check for the existence of each of them.

All you have to do is use the “?.” operator after the property that you want to check for nullish values.

```javascript
object?.property
object?.[expression]
```
In our code we can use it like this:

```java
console.log(player?.number)
```
This operation will check if the parent value exists and if it does not, it returns undefined and we don’t have error. When retrieving data from an API, we may not be 100% sure that a certain object exists in our API response.
What is required to write an OpenAPI contact? - OpenAPI [2]
Tags: productivity
Published: 2021-11-30 15:08:52

OpenAPI documents can be written either in **JSON** or in **YAML** format. So you will need to know how to read/write in one of this format and have a text editor.

## Learn read/write
If you don't know what is JSON or YAML, please go check an online tutorial before going further.
All the OpenAPI contrat is written in one of these format, so it can be hard to work with without this knowledge.

- YAML tutorials
   - Website
      - https://www.tutorialspoint.com/yaml/index.htm
      - https://learnxinyminutes.com/docs/yaml/
   - Video
      - {% youtube 1uFVr15xDGg %}
      - {% youtube o9pT9cWzbnI %}
- JSON tutorials
   - Website
      - https://www.w3schools.com/js/js_json_intro.asp
      - https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON
   - Video
      - {% youtube uw_rP5bV9r0 %}
      - {% youtube IWcUJLUAO2A %}

---

## Text editor
### Simple ones
So if you don't want to use any plugins, or wanted to start quickly, any text editor can work.

At least, use a text editor which support **JSON** and/or **YAML** format like:
- [Notepad++](https://notepad-plus-plus.org/downloads/)
- [Atom](https://atom.io/)

If you are a dev, your IDE will support both format and you will be able to start quickly.

### Swagger Editor
If you want to have something more graphic to help you, you can use the **[Swagger Editor](https://editor.swagger.io/)**. It's an online tool and will show you direcly the result and if something is wrong!

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

### IDE
If you want to use your IDE, you can found some IDE to help you
- VSCode 
    - https://marketplace.visualstudio.com/items?itemName=42Crunch.vscode-openapi
    - https://marketplace.visualstudio.com/items?itemName=Arjun.swagger-viewer
- IntelliJ
    - https://plugins.jetbrains.com/plugin/14837-openapi-swagger-editor
- Eclipse
    - https://marketplace.eclipse.org/category/free-tagging/swagger

---

When you have those elements, you are ready to start your journey to the OpenAPI world!

I hope it will help you! 🍺