teleren/devto huggingface dataset:
Mudei para o Linux. E agora? (Parte 1)
Tags: webdev, environment, beginners, linux
Published: 2022-06-21 10:38:30

##Introdução

Bom, eis aqui o meu, o seu , o nosso lema que estamos migrando do nosso querido Windows para o Linux: Será que esse O.S é para mim?

Com sinceridade eu já digo de cara, que existem formas de você rodas aplicativos do windows no Linux, porém não tem a mesma performance, e se você usar pacote adobe, corel etc. Continua no Windows!

Agora se você vai trabalhar diretamente com desenvolvimento e quer ter um contato maior com o terminal e outras tecnologias que vão melhorar suas skills, instala o sistema, certeza de diversão garantida e muitas pesquisas no google rsrs...

Mas como eu sou bonzinho vou passar algumas coisas que vai poder te ajudar no primeiro contato.

Estou partindo do pré suposto que você é um front ou um back-end (usarei o PHP) ok? LET's GO!

## Qual distribuição eu uso e quais são as mais usadas?

Até o momento deste artigo eu estou usando de forma satisfatória o Linux Mint [Site oficial da distribuição](https://linuxmint.com) mas existe o Ubuntu e outras, sendo essas as que são bem usadas.

A instalação do Mint é bem simples, chegando até ser mais fácil que a do Windows, e os drivers são todos instalados sem dores de cabeça!

Após a instalação recomenda-se realizar a atualização do sistema e vamos lá para o terminal. No terminal vamos digitar o seguinte comando:

```
sudo apt-get update
```
Logo em seguida:

```
sudo apt-get upgrade
```
Nosso sistema estará atualizado neste momento e podemos seguir para as etapas seguintes.

## Instalação do GIT

Para trabalhar com o versionamento de arquivos, usaremos a ferramenta git com o comando:

```
sudo apt install git
```
Até este ponto já temos o nosso sistema atualizado e o git instalado.

## Nodejs

Prosseguindo, vamos instalar o nodejs:

```
sudo apt install nodejs
```
Aguarde... Pronto! Para testar vamos rodar o comando no terminal:

```
node --version 
```
E o resultado deverá ser a versão do nosso Nodejs.

##IDE

Eu utilizo o PHPStorm como IDE mas vamos instalar o VSCODE e para isso, vamos continuar no terminal, quero deixar você ao máximo em contato com o terminal!

Vamos rodar o comando?
Calma! Mas antes vamos usar um repositório e para isso vamos instalar o recurso com os seguintes passos:

Vamos verificar se o nosso sistema é 64bits
```
uname -m
```
O retorno deve ser: x86_64. Sendo vamos seguir com os seguintes comandos:

```
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

```

```
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

```

```
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

```

```
sudo apt-get update

```

```
sudo apt-get install code

```
Bom e por aqui chegamos ao fim da nossa primeira parte de configuração do nosso ambiente de desenvolvimento no nosso novo amigo Linux! 

Na parte 2 vamos instalar o PHP, MariaDB e o Dbeaver e com isso temos nosso ambiente já prontinho para começar os trabalhos!
Assignment Solution Help
Tags: assignmentsolutionhelp, assignmenthelp
Published: 2022-06-21 09:25:56

If you need [**assignment solution help**](https://www.greatassignmenthelp.com/us/), you can hire our professionals by means of contacting us and we will help you achieve the grades or marks you desire. We make sure that all of our writers keep current with the current college guidelines and their evaluation criteria, as well as other aspects related to academic writing. The fact that they are using their subject/discipline knowledge under the guidance of a skilled and pleasant analyst is itself one of the assurances that they can provide you with assignment help. These are some of the motives that make each individual choose us over others in the marketplace:

- Following our Assignment Services, we provide round-the-clock customer service support in order to maintain the calm of our customers by letting them reach out to the agent any time they feel the need to accomplish so.
- The cash back guarantee or refund policy enables the customer to get their cash back in case the product isn't delivered on time or has a poor outcome.
- Having access to our Home Work Online venture answers includes privacy and transparency, resulting in a sense of peace and security for each client, which means that they feel safe when using our service.
- We provide free Turn-in reports, expert advice, reference materials, and expert advice to our customers when they hire us to Do their Home Work assignments for them
Better than Math.random() password generator!
Tags: javascript, node, webdev, tutorial
Published: 2022-06-21 10:19:44

https://www.youtube.com/watch?v=ssYo9t37pE4

This tutorial shows you how to create a random password generator function in JavaScript. 

The function uses crypto.getRandomValues, which generates more strongly random values than Math.random(). 

The password length can be determined by passing it in as an argument to the function.
Lxc command list
Published: 2022-06-21 09:46:43

# melihat storage `<x>` dipakai oleh container mana saja
`lxc storage volume list <nama_storage>`

# membuat storage zpool zfs
`lxc storage create <nama_zpool> zfs`

# membuat container baru dengan zpool yang sudah dibuat
lxc launch <nama_image> <nama_container> -s <nama_zpool>
## contoh:
lxc launch ubuntu:18.04 fss -s pool1

# hapus lxd container
lxc delete <nama_container>

# lihat list zpool yang dapat di import
zpool import
# lihat list zpool import dari img file
zpool import -d /var/snap/lxd/common/lxd/disks
"/var/snap/lxd/common/lxd/disks" adalah direktory di mana .img berada
## import zpool berdasarkan id dari zpool import
zpool import <id>

# lokasi storage pools
/var/snap/lxd/common/lxd/storage-pools/

# lain2
/var/snap/lxd/common/mntns/var/snap/lxd/common/lxd/storage-pools/Pool-1/containers/container-name
zfs list
zpool list
zpool status
lxc exec cont-cobazfa1 -- bash
lsblk
fdisk -l
df -h

# delete lxc storage
## destroy zpool
zpool destroy cobazfs1/containers/cont-cobazfa1
## delete lxc storage
lxc storage delete <nama_storage>

# Mount dan unmount ZFS legacy ke directory
mount:
mount -t zfs cobazfs1/containers/cont-cobazfa1 /cobamount/cobazfs1/
Unmount:
umount cobazfs1/containers/cont-cobazfa1

# Mount dan unmount ZFS dir ke directory
zfs mount default/containers/shinobi-coba
### jika ada error cannot mount '/export/home/lalt': directory is not empty, use legacy mountpoint to allow this behavior, or use the -O flag
zfs mount -O default/containers/shinobi-coba
### unmount
zfs unmount default/containers/shinobi-coba

# chown rootfs
`chown -R 1000000:1000000 rootfs`
How to manage stress, anxiety and burnout?
Tags: career
Published: 2022-06-21 09:39:50

Hello, I hope this is a good community to share my thoughts about career growth and opportunity. I'm 24 years old, I currently leading a team of 4 developers in a permanent work from home setup. Now I recently received a job offer from a huge financing company in my country that twice my current salary. I'm a bit nervous, I just wanted to ask advice from you guys here, senior devs that lead a team or anyone here that has almost 10yrs of experience in the software business, how do you handle stress, burnout, anxiety and maintain your cool. Thanks. I really need your advise
AWS command-line
Tags: aws, s3
Published: 2022-06-21 09:35:19

---
title: AWS command-line
published: true
description: 
tags: aws, s3
---
some drafts for aws command...

## Configure Account
ref: [Named profiles for the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)

check `~/.aws/config` for your profile settings.

get credentials from AWS console, and add key and secret_key  to `~/.aws/credentials`

change account (profile reference to .aws/config)
```
$ export AWS_PROFILE=my-profile 
``` 
## S3
check bucket list from specific account

```
$ aws s3 ls # not list, only ls
```

## dump bucket 
```
$ aws s3 sync s3://my-bucket my-local-dir
```
How to unmap a var from a Clojure namespace
Tags: clojure
Published: 2022-06-21 09:19:35

I was working with a multimethod that I needed to redefine in my REPL and came across [this](https://clojuredocs.org/clojure.core/defmulti) doc.

There is an entry that states if you are in the REPL and need to redefine then you will need to unmap the var because defmulti won't allow you to redef. 

This is how:

```
(ns-unmap *ns* 'something)
```
Canopas Podcast 7— REST vs. GraphQL
Tags: webdev, rest, graphql, programming
Published: 2022-06-21 09:16:23

**What you should choose from REST and GraphQL?**

Find why and how choosing the proper architectural style can make your life easier.

**Keylines of the podcast:**

1. What is web service?
2. What is GraphQL?
3. What is Rest?
4. Does GraphQL replace REST?
5. How to start development in GraphQL and in REST?
6. Is GraphQL relies on Frontend or Backend?
7. Conclusion

{% embed https://youtu.be/qvL-7MDgfvI %}.

This podcast will guide you on which is the best choice, REST OR GraphQL, and with which you should go.

Visit [blog.canopas.com](https://blog.canopas.com/canopas-podcast-7-rest-vs-graphql-5327fbe0527) for more information.
PDF USING NODEJS & PUPPETEER
Tags: node, javascript, tailwindcss
Published: 2022-06-21 09:12:19

Its has always been a headache😢😢😢😢😢 generating pdf files...

A process i have seen most developers using, is taking a screenshot of their webpage using this library. 

I tried generating some pdf using custom elements of a page without the screenshot, it just works like magic🚀🚀🚀

Check out this [GitHub Repo](https://github.com/elvis-sautet/generate_pdf_nodejs_pupetter)

Everything commented and easy to understand...
The job title debate
Tags: webdev, watercooler, discuss
Published: 2022-06-21 09:06:54

What is the real difference between Senior, Mid level and Junior developer? Do the three tags really mean anything? Is it just a pay grade or a self indulged title we all strive towards?

The above questions are some questions I have been asking myself lately. I mean so we really need to label what we are and simply go for pay structure base don time served and we are all simply developers? 

So the reason I say this is because as developers we all bring something to the party, be it a new skill or an old way of thinking. This whole idea has come off working with a really smart and skilled 'junior' developer on the latest project I have been working on. So I have somewhere around 15 years, which means I think a little different to a developer who grew up in the framework era (Yes I'm coining that phrase). 

I have a good idea of UI design and the best way to plan and output a build but that does not mean I know the best way to code in the modern world nor does it mean I have all the answers. I have to rely heavily on my team and those around me to help output the vision I have put in place. Also that also means I am asking questions of my front end team of the best way to do a certain piece of code or a tricky piece of UI. Does this mean my contribution is anymore than his? Not at all, and what is the only difference between me and him?

The difference is this, I have more time in the working commercial world and that in my eyes is it. As a developer I have come to the conclusion 95% of what we do is work out how to do something and 5% actually coding it and that is the only reason I should be paid more than him, his code is better than mine at times and my thinking is better than his at times. 

I can handle customers and I can handle pressure situations, I understand workflow and I understand how to create a good UI from the many I have built. He on the other hand understand current techniques, current language syntax and the frameworks. 

So who is the senior and who is the junior? As we both bring things to the table and we both can join the party. My experiences give me a slight advantage and my time is worth more as I have 15 years extra but am I more senior than him no not at all. 

So we need to drop tags, we need to remove titles and  just all be developers and be paid on experience.
💰 RapidAPI Raises 150 M💲 "to Empower Developers" (and why and how we're in)
Tags: rapidapi, api, programming, saas
Published: 2022-06-21 08:59:02

## ❔ About

Back in August 2019 I started to use [RapidAPI.com](https://rapidapi.com/hub) for personal Open Innovation ([Heroku](https://www.heroku.com/home) hosted) API related side projects :

{% embed https://www.linkedin.com/pulse/everything-you-always-wanted-know-api-monetization-were-adrien-sales/ %}

These side projects helped me to learn a lot about API monetization... and pretty soon I started to dream about deploying that kind of technology at an [Organizational Level](https://docs.rapidapi.com/docs/faqs-rapidapi-for-team), at [OPT-NC](https://office.opt.nc/en).

👉 So we started to deliver public Docker images 👇

{% embed https://dev.to/optnc/were-on-dockerhub-4epg %}

## 🛍️ Shopping for developers : the Marketplace

Finally we were ready to showcase APIs on our marketplace :

[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bjxeie0mzvk9bedxhl7u.png)](https://rapidapi.com/orghomepage/opt-nc)
 

## 🌟 Benefits

That helped us a lot to explain how : 

- To **monetize** APIs
- **Structure APIs endpoints and data** to be ready for its cloud usage, **since the beginning of the project**
- **APIs documentation** can or should be released
- Drastically **decrease Time To Market**, especially on **innovation projects**
- To **promote APIs** with demos & interactive integrations
- **Impact internal culture** by showcasing around APIs with [Spotlights](https://rapidapi.com/opt-nc-opt-nc-default/api/domaine-nc/details)
- Talking and promoting popularity and **public availability and performances metrics**
- **Worldwide Testing strategy** and [Test Analytics](https://docs.rapidapi.com/docs/test-analytics) plans
- Increase **internal innovation** speed in our own organization

## 🤵 Iddo Gino (Founder and CEO)

[Iddo Gino (Founder and CEO)](https://www.linkedin.com/in/iddogino) :

[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qk2iyg9v7sflcmdrhq4w.png)](https://www.linkedin.com/in/iddogino)
 

## 📺 Ido's interview

Listen to this short interview as it explains very clearly how API strategy matters and why any Digital Organization should feel concerned to develop its services in a very efficient way :

{% embed https://cheddar.com/media/rapidapi-raises-150-million-to-empower-developers-to-innovate-and-build-software-faster-with-apis %}

## 💰💰 2022, March : RapidAPI nabs $150M at a $1B valuation

> _"RapidAPI nabs $150M at a $1B valuation, with its API marketplace now used by 4M+ developers"_

{% embed https://techcrunch.com/2022/03/23/rapidapi-nabs-150m-at-a-1b-valuation-with-its-api-marketplace-now-used-by-4m-developers %}

## 💰 May, 2020 : RapidAPI raises $25M more

> _"RapidAPI raises $25M more to expand its API marketplace"_

{% embed https://techcrunch.com/2020/05/21/rapidapi-api-marketplace-funding/ %}
What is Maven?
Tags: webdev, java, maven, tooling
Published: 2022-06-21 08:55:46

**Maven** is project management tool.

In java, whenever you want to make a project you need lots of third party libraries such as MySql connector.

If you are not using maven in your project you need to download lots of external jar files and manually configure those into your project also updating that is a tiresome process that’s why we need **maven** which make developer’s life easier

A maven project basically consist of :-

- POM file

In which we have :- 

- Group ID (let say “com.app”), define your package
- Artifact ID (let say “demo”), represent your project name
- Package (com.app.demo.web)

How do you mention in the pom.xml file that I want this dependency in my project? for that you need to add XML code for that dependency

To get the xml code for a particular module:

- just go to [MVN Repository](https://mvnrepository.com/)
- Search for desired module 
- Select the available version, check xml code for that module/ dependency

When you are working with maven you need to have internet connection 

If you are using any dependency for the first time.

First, it will check for that dependencies in Local Repo, if not found, it will check download/fetch from Remote Repo

Alternate of Maven is **Gradle**


Thanks for reading
Partnership and Collaboration | UniLayer Network
Tags: blockchain, testing, testdev
Published: 2022-06-21 08:54:32

Hello! We are developing a new cross-chain and interoperable layer 1 blockchain and we would love to invite you to build with us and be one of the earliest testers of our project. We are trying our best to make the public testnet live next month.

In the meantime, please let us know what are the things we need to provide from our end to make this collaboration happen.

Please feel free to browse through our resources listed below and tell us the things that you may need to be able to easily evaluate and understand our project.

Website: https://unilayer.io/
Litepaper: https://unilayer.io/lightpaper.pdf
Twitter: twitter.com/UniLayerNetwork
The deep end
Published: 2022-06-21 08:27:56

Well guys I've always wanted to be in the tech world .Just now I was seating in a physics undergraduate class which I've been taking for the past three years.its been good alright but it's just not what I picture my self doing it's not what I love doing .I've just walked out of class in the middle of a lecture I guess am probably gonna drop out.Now more than ever I feel so convinced with what I wanna do with my life I want a career in web development...and today my journey officially begins....wish me luck guys
Full Stack Web3 Project
Tags: web3, webdev, programming, tutorial
Published: 2022-06-21 08:18:10

Want to develop a full-stack web3 project

**Under the Hood**
Well, the story is not a brief story about getting started and developing a full-stack web3 repository. Recently, I watched a youtube video about developing a full-stack web3 project using ethereum, hardhat, ethereum waffle, chai, ether.js and react.js.

**Video reference**
The story is interesting that I how I get to know about the video I’ve watched. I am adding the video link with the interesting story behind it. Yesterday, at the time of writing this story i.e. 30 April, I was interviewing with Aegis Studio founder. Although the meeting should only last for 15 minutes we extend the discussion to 40 minutes. Our discussions were so intense and full of blockchains and its libraries, projects, NFTs, tokens, future and so on. The founder was very kind and he takes his time to explain me his company’s work and projects and how did the company make the money. They are literally working on very cool, big and tough projects from unicorn companies like apple, consensus. They have already developed multiple smart contracts, APIs for NFTs and currently working on all the latest tech stacks in web3 and web3 domains.

During an interview I asked him how to prepare for the next rounds and he recommended me learning ether.js followed by sharing me this video by nader dabit. I’ve just watched it to prepare myself for the interview and also to learn ether.js.

[Nadar dabit youtube video](https://www.youtube.com/watch?t=72&v=a0osIaAOFSE&feature=emb_imp_woyt)

**References**
I am adding more references, in case if you find anything new in the video you can check it.

[Hardhat](https://hardhat.org/getting-started/)

[Metamask](https://docs.metamask.io/guide/)

[Ether.js](https://docs.moonbeam.network/builders/build/eth-api/libraries/ethersjs/)

[Ethereum](https://ethereum.org/)

Conclusion
That’s it for today, this story is just for sharing knowledge asap with the audiences, I hope you get some benefit from it. Thanks for reading, until next time, have a good day, people.


Our website [iHateReading](www.ihatereading.in) || [Youtube](https://www.youtube.com/channel/UC6I-Tz6QwYbJpoIK7l0NtXA) || [Twitter](https://twitter.com/treyvijay)
Linux and Linux also open source
Tags: linux, ubuntu, opensource, git
Published: 2022-06-21 08:15:34

## Linux? what it is?
In a layman language just like windows and mac, linux is also an alternative. You can now know it is an open source operating system.
**Bro what is open source?**
for ex: 
a chef is telling to his audience how this dish was made. He made every detail transparent and told one of his audience to contribute an ingredient in the dish. This is what open source is. A thing which is made transparent to the world and controlled by a community.
Just like the creator of linux made every detail transparent👇
[(https://github.com/torvalds/linux)]

Lets stick to the current topic.

## Why Linux?
The very first question comes to mind why linux? how it will change my perspective to shift from any os to linux.
First of all:
1. Its light weight
2. Less greedy than other os (requires less ram and storage to run)
3. Cross Platform (it can run remotely)
4. Open Source Handling and Huge Community

I will discuss the above points further

## Who uses Linux?
Cyber Security Professionals, Backend Developers.


This is just a start... keep learning.
Thanks for reading 

Till then peace out✌️✌️
Question: Is it possible to separate a Reactjs project with git submodules?
Tags: javascript, react, webdev, git
Published: 2022-06-21 08:08:33

## The Background

I am working on a new structure of my open source project [Fireact](https://www.fireact.dev) which handles the user authentication and subscription payments for SaaS. But the real features of SaaS projects will need to be built on top of Fireact. So I have been thinking is it possible to separate them so SaaS developers can build their features as another Git repo and import it into their Fireact repo as a Git submodule.

## The Question

However, there is big challenge I can’t figure out. As submodule repos will need have a bunch of dependencies, it will need some way to modify the `package.json` in the Fireact repo root folder. How could that be achieved?
The Weekly Dev - 202225
Published: 2022-06-21 08:03:09

---
title: The Weekly Dev - 202225
published: true
description: 
tags: 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vrkv1deuzetcr29yvvsc.png
# Use a ratio of 100:42 for best results.
canonical_url: 'https://kevwe.com/weekly/202225'
---

The Weekly Dev - 202225


Lock down your online resources


We are now starting to see the spread of weird passwordless solutions. Before we understand how they really work, probably our private data is no longer that private any more...


If you really care about your data, who can access it and who doesn't, there is some work to do and learn about PKI, OTP, certificates and all that jazz.


It's not easy, but it's a good learn, important for survival, if you're somewhat planning to rely on any kind of online services.


https://kevwe.com/weekly/202225