teleren/devto huggingface dataset:
Comprehensive Kubernetes CheatSheet
Tags: devops, kubernetes, devjournal, cheatsheet
Published: 2023-05-10 01:51:00

Tired of an overwhelming list of Kubernetes commands? 

Here's a comprehensive Kubernetes Cheat Sheet - A perfect companion to all your cluster management needs. 


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


## 1. Commands for 'Viewing Resource Information':

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

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

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

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


## 2.  Commands for 'Changing Resource Attributes':

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


## 3. Commands for 'Adding Resources':


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


Kubernetes is like the air traffic controllers for your cloud applications. It automates the deployment, scaling & management of the containers. Once set up, it makes it easy to build and run the applications at scale. 


Thanks for reading this.

If you have an idea and want to build your product around it, schedule a call with [me](https://calendly.com/pragyanatvade).

If you want to learn more about DevOps and Backend space, [follow me](https://dev.to/pragyanatvade).

If you want to connect, reach out to me on [Twitter](https://twitter.com/pragyanatvade) and [LinkedIn](https://www.linkedin.com/in/pragyanatvade/).
New Method of 3DS File Uploading
Tags: java, programming, opensource
Published: 2023-05-10 00:33:42

Hi everyone! I am excited to announce a new way files will be able to be uploaded to a 3DS. This will be very helpful for uploading .cia files to a hacked 3ds and hopefully eventually installing all homebrew files for you, only requiring you to do the stuff on the 3DS! The github repo is hosted here: [https://github.com/LimeGradient/CIAHelper](https://github.com/LimeGradient/CIAHelper). I am also looking for help and feedback so any is appreciated!
Unmatching Users and Adding the Like Button: Day 99 of #100DaysOfCode
Tags: javascript, beginners, programming, webdev
Published: 2023-05-10 00:22:38

Day 99 of #100DaysOfCode: Today was all about completing the unmatching functionality for both sides of users. I created a new function inside useEffect with a dependency for the unmatched users, ensuring they don't show up in the swipe cards.

Tomorrow, I'll shift my focus to adding the functionality for the like button. It's essentially the same as a swipe up action, but triggered by a button click instead.

(Yes, I'm aware that my variable and constant names may not be the most creative, but hey, they get the job done! 😄)
Getting Started with the Contenda API
Tags: api
Published: 2023-05-10 20:36:57

---
title: Getting Started with the Contenda API
published: true
date: 2023-05-10 00:00:00 UTC
tags: api
canonical_url: https://blog.brainstory.ai/hello-world/
---

Today at Contenda we launched our [API](https://prod.contenda.io/docs#/)! We’re really excited to be an API-first tool because this allows people to build content automation pipelines. Think “CI/CD”… but for content!

This blog post shows you how to get your API key, your access token, and how to submit a basic video-to-blog job!

## Getting your API key

1. Fill out this [form](https://signup.contenda.co)
2. Check your email for the key!

![UI screenshot of the signup page](https://contenda.co/blogimages/signup_branded.png)

## Making an identity call

Now that you have your shiny new API key, you’re going to immediately trade it for a shinier access token! Don’t worry though, your API key entitles you to infinite access token trades.

Make a `POST` request in the preferred language of your choice, or in a cURL command like so:

![Code screenshot of an identity cURL command](https://contenda.co/blogimages/identityapi.png)

Make sure you put in the email you’d like notifications from and your API key into the empty string placeholders!

## Submitting your first video-to-blog job

For your first job, you only need 2 things:

1. `source_id`: A video that’s currently hosted online
2. `type`: Decide if your output should be an overview blog (`presentation`) or a deep technical tutorial (`tutorial`)

Here’s the simplified request with only the required parameters:

```
curl -X 'POST' \
  'https://prod.contenda.io/api/v2/jobs/video-to-blog?token=<YOUR TOKEN HERE>' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "source_id": "youtube dQw4w9WgXcQ",
  "type": "presentation"
}'
```

The `source_id` accepts YouTube, Twitch, Facebook, Mux, and raw URL links. The format is always `<platform> $id`. Read more about those options in the [docs](https://prod.contenda.io/docs#/Jobs/post_video_to_blog_job_api_v2_jobs_video_to_blog_post).

For type, you can specify either `presentation` or `tutorial`.

## It’s done!

If you’d like to learn more, please feel free[to reach out to our team on Discord](https://discord.gg/bYda4pQz2v) or[sign up for our email list](https://contenda.ck.page/96e4e60222).

We can’t wait to see what you make!
Best Practices for Writing on DEV: Listicles
Tags: meta, writing, beginners, howtodevto
Published: 2023-05-09 21:46:13

---
title: Best Practices for Writing on DEV: Listicles
published: true
description: 
tags: meta, writing, beginners
series: Best Practices for Writing on DEV
---

Hey devs! Time for another installment in our Best Practices for Writing on DEV series. Before we delve into some guidelines for choosing and framing your **topic**, I want to talk to you about something I see a lot here on DEV.

## Listicles

Ahh, listicles. They're kind of an article, but mostly a list. You love them, you hate them, you just can’t get away from them in our current content landscape.

Sometimes listicles are great! [This one](https://dev.to/asheeshh/free-resources-that-helped-me-master-react-as-a-self-taught-web-developer-58k2) by @asheeshh is a favorite. Other times, though, they come across as repetitive fluff and don’t bring much helpful, interesting, or fresh information to the conversation.

### Best Practices for Writing Listicles on DEV

If you love writing listicles, ~~Use These Five Tips To Blow Readers’ Minds And Save The World From Bad Listicles Forever~~  you might want to consider the following points when drafting:
- Why am I choosing a listicle format? (If it’s because you don’t have enough knowledge, content, or time for a proper article, consider doing more research or gaining more experience before you write on this topic.)
- Are there already listicles on this topic on DEV, and if so, is mine better or different than the ones already written? (Use the search bar to find out!)
- Do I *have* to title this list of things with a click-baity headline that harkens back to the early days of BuzzFeed? (No, you don’t! You can, but it may turn readers away from clicking—the opposite effect of what you’re going for.)

Of course, you are welcome to write whatever and however you want on DEV, as long as it adheres to our [Code of Conduct](https://dev.to/coc). Just know that high quality listicles that bring something new and valuable to the conversation will be upvoted by moderators and queued for sharing on social…and uninspired, repetitive listicles won’t.

---

That's all for now! Stay tuned for an upcoming post on **topics**, as well as another one about another hot topic...**self-promo on DEV**! 😱
O Básico da documentação padrão C4Model
Tags: braziliandevs, architecture, beginners
Published: 2023-05-09 23:36:19

A História, Escopo e Objetivo do C4Model

### História

O C4Model foi criado por Simon Brown, um arquiteto de software e autor que trabalhou em diversas organizações e projetos de software ao longo de sua carreira. Através de suas experiências, ele percebeu que muitos projetos falhavam devido à falta de comunicação e compreensão clara da arquitetura de software entre os membros da equipe.

Em resposta a essa constatação, Brown desenvolveu o C4Model como uma forma de melhorar a comunicação e o entendimento entre os envolvidos no projeto. O modelo foi inicialmente apresentado em 2011 no artigo "Visualising software architecture with the C4 model", e desde então tem sido adotado e aprimorado por profissionais e comunidades em todo o mundo.

### Escopo

O C4Model tem como escopo a documentação e comunicação da arquitetura de software. Ele abrange todos os aspectos da arquitetura de um sistema, desde a relação entre o sistema e seus usuários, até os detalhes da implementação dos componentes do software. O C4Model é composto por quatro níveis de abstração, representando diferentes perspectivas da arquitetura:

1. Contexto: O diagrama de contexto apresenta a relação do sistema com seus usuários e outros sistemas, fornecendo uma visão geral das interações e dependências.
2. Contêiner: O diagrama de contêiner ilustra a organização de alto nível do sistema, incluindo aplicativos, serviços, bancos de dados e outros elementos que compõem o sistema.
3. Componente: O diagrama de componente detalha os componentes individuais dentro de um contêiner, mostrando suas interações e responsabilidades.
4. Código: O diagrama de código representa a implementação real dos componentes, mostrando as classes, interfaces e outras construções de programação utilizadas.

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

### Objetivo

O objetivo principal do C4Model é facilitar a comunicação e o entendimento da arquitetura de software entre as partes interessadas de um projeto. Ao fornecer uma representação visual clara e hierárquica da arquitetura, o C4Model permite que os membros da equipe compreendam rapidamente o sistema e tomem decisões informadas sobre seu design e implementação.

Além disso, o C4Model visa promover a colaboração entre os membros da equipe, ajudando-os a identificar e resolver problemas de arquitetura mais cedo no ciclo de desenvolvimento. Isso resulta em um desenvolvimento de software mais eficiente e eficaz, reduzindo o risco de falhas de projeto e melhorando a qualidade geral do produto final.

Em resumo, o C4Model é uma abordagem para documentação de arquitetura de software que melhora a comunicação, compreensão e colaboração entre os membros da equipe, proporcionando uma visão hierárquica e simplificada da arquitetura do sistema.



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

Referências:
Simon Brown. "C4 model - Context, Containers, Components, and Code". Disponível em: [https://c4model.com/](https://c4model.com/).
Responsive Hamburger Menu using HTML/CSS
Tags: codepen
Published: 2023-05-09 23:23:21

My students were finding it a bit difficult to create a hamburger menu with just HTML/CSS so I decided to help them out. Thought to share it with you guys in case someone else needs to see this. Please share 

{% codepen https://codepen.io/Micheal-Animaku/pen/JjmLeXL %}
Installing Elasticsearch and Kibana with Docker compose
Tags: elasticsearch, kibana, docker, logging
Published: 2023-05-09 23:18:21

- Briefly installing Elasticsearch and Kibana with Docker compose.
- You can work with Elasticsearch and Kibana running in docker environment by following the steps below.
```
//Windows powershell
mkdir Elasticsearch8.7.1
```

```
cd Elasticsearch8.7.1
```

```
New-Item -Path "docker-compose.yml"
```

```
code .
```
**NOTE: Before running docker-compose, make sure Docker is installed and running on your computer :)
**


```
// docker-compose.yml
version: '3'
services:
  elasticsearch:
    container_name: elasticsearch
    image: docker.elastic.co/elasticsearch/elasticsearch:8.7.1
    # 8.x
    environment: ['CLI_JAVA_OPTS=-Xms2g -Xmx2g','bootstrap.memory_lock=true','discovery.type=single-node','xpack.security.enabled=false', 'xpack.security.enrollment.enabled=false']
    ports:
      - 9200:9200
    networks:
      - elastic
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536
        hard: 65536
    deploy:    
      resources:
          limits:
            cpus: '2.0'
          reservations:
            cpus: '1.0'
            
  kibana:
    image: docker.elastic.co/kibana/kibana:8.7.1
    container_name: kibana
    environment:
      XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: d1a66dfd-c4d3-4a0a-8290-2abcb83ab3aa
    ports:
      - 5601:5601
    networks:
      - elastic
    deploy:    
      resources:
          limits:
            cpus: '2.0'
          reservations:
            cpus: '1.0'

networks:
  elastic:
```
In the directory where docker-compose is located

```
docker-compose  up
```
You can see the containers working from Docker Desktop application. Click on the links Elasticsearch and kibana to see that both are ready to use.

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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eflz1jzp9woku39ah84z.png)
Meet Fiber: Super Fast Golang Framework Part 1
Tags: go, frameworks, webdev, programming
Published: 2023-05-09 22:29:52

## Fiber

Designed to ease things up for **fast development** with **zero memory allocation** and **performance** in mind.

[Fiber Framework](https://gofiber.io/) is built to make Go web development feel like NodeJS Express architecture.

This great framework is built on top of [Fasthttp](https://github.com/valyala/fasthttp), the fastest HTTP engine for [Go](https://go.dev/doc/). As seen below, the fiber framework outperformed other well-known frameworks in a [Web Framework Benchmark round 21](https://www.techempower.com/benchmarks/#section=data-r21&test=composite), which measured the performance of several web application platforms, full-stack frameworks, and micro-frameworks (collectively, “frameworks”).




- Fiber at 22
- NodeJs at 81
- Phoenix at 113
- Express at 116
- Laravel at 130
- Django at 137

For more information, read the [introduction](https://www.techempower.com/benchmarks/#section=intro), [motivation](https://www.techempower.com/benchmarks/#section=motivation), and l[atest environment details](https://www.techempower.com/benchmarks/#section=environment).
Day 747 : So Long
Tags: hiphop, code, coding, lifelongdev
Published: 2023-05-09 22:08:32

_liner notes_:
- Professional : Start of a new sprint. Had my 1:1 with my manager and talked about things I've worked on, things I'll be working on and demoed an application I built. After that, I followed up on some messages I sent out to get clarification. Finished up some documentation. Oh and I put in for some time off. I don't take time off much, my manager reminded me of that. haha.

- Personal : Went through a bunch of tracks for the radio show and did some coding on my side project. Didn't watch any anime cause I had an early morning. The list of episodes I need to catch up on is so long. haha.

![Redish brown mountains with some snow cover stretching from the left side of the photo to the back right with some trees in the shadows on a mountain side on the forefront on the right in Manaslu Circuit, Nepal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4wt2n09run2z232qeckk.jpg)

As usual, going to go through tracks for the radio show and work on my side project. My goal to get done for my side project tonight is create an event and save it to the "database". Want to get that done so I can watch some anime.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube 3KXX7H6i3fU %}
Why I Chose A Cloud Guru for AWS Training
Tags: aws, cloud, learning
Published: 2023-05-09 22:00:00

As a cloud enthusiast, I wanted to learn more about AWS and get certified as an AWS professional. There are many online platforms that offer AWS training and certification courses, but I decided to go with A Cloud Guru for several reasons.

First of all, A Cloud Guru has a comprehensive course library that covers all the topics and skills needed for AWS certifications. Whether you are a beginner or an expert, you can find courses that suit your level and goals. You can also access hands-on labs that let you practice your skills in real AWS environments.

Secondly, A Cloud Guru has a flexible and affordable pricing plan that allows you to access unlimited courses and labs for a monthly or annual fee. You can also get discounts if you buy multiple licenses for your team or organization. Compared to other platforms that charge per course or per exam, A Cloud Guru offers more value for money.

Thirdly, A Cloud Guru has a supportive and engaging community of learners and instructors. You can join forums, webinars, podcasts, events, and challenges to interact with other cloud enthusiasts and experts. You can also get feedback, tips, and guidance from experienced instructors who are passionate about teaching.

Of course, A Cloud Guru is not the only option for AWS training. There are other alternatives such as Traineaze, Cloud Academy and TalentCards. These platforms have their own strengths and weaknesses, such as different course offerings, pricing models, learning formats, etc.

However, after comparing these alternatives with A Cloud Guru, I found that A Cloud Guru best suited my needs and preferences. That's why I chose A Cloud Guru for AWS training and certification.

If you are interested in learning more about A Cloud Guru or signing up for their courses, you can visit their [website](https://acloudguru.com/).

Please let me know if you have any feedback or suggestions.
#DEVDiscuss: HTMX
Tags: devdiscuss, htmx, webdev
Published: 2023-05-09 21:01:53

*image created by [Margaux Peltat](https://www.patreon.com/margauxpeltat) for the [Chilled Cow YouTube channel](https://www.youtube.com/watch?v=lTRiuFIWV54)*

Time for #DEVDiscuss — right here on DEV 😎

Inspired by @quii's [Top 7 post](https://dev.to/devteam/top-7-featured-dev-posts-from-the-past-week-40jm), tonight’s topic is...**HTMX**! 

{% embed https://dev.to/quii/htmx-is-the-future-157j %}

> Unlike SPAs, HTMX doesn't throw away the architectural approach of REST; it augments the browser, improving its hypermedia capabilities and making it simpler to deliver a rich client experience without having to write much JavaScript if any at all.

---
Questions:
- **Do you think HTMX is the future? Why or why not?**
- **Have you had a chance to implement HTMX yet? What did you think?**
- **If you haven't used HTMX...why not?**
- **Any triumphs, fails, or other stories you'd like to share on this topic?**
When should I refactor my code into a decorator
Published: 2023-05-09 21:00:43


Continue reading the book, this is a very good book. I suggest you to read it too. 

It says:
1. **don’t create a decorator in the first place. Wait until you see the pattern**. 
Yes, I totally agree. I created a decorator for user login and payload validation after I used it everywhere and found the pattern. 



2. **Create the decorator if it will be used more than three times**. 
Okay, that also make senses. Why should I create a decorator if I only use the logic once. 
Not sure if it’s twice. But three is a fair number for me. 



3. **Keep the code in decorator minimum**. 
Too much line and logic will give me a headache when applying a decorator.
I am having problem running (on my local machine I just got) a nodejs app I downloaded from github
Published: 2023-05-09 20:58:14

I am having problem running (on my local machine I just got) a nodejs app I downloaded from github with mongodb database.

I have installed node js lastest version, I also ran npm install to download the packages and dependencies from vscode terminal and i got an error which i screenshotted


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ctugm0xx6pln3z2whbx0.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l44it2cec4lygqvww5kb.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/af6vb0lgl5blr0icigrq.png)
I was expecting to be able view the app on my local machine on localhost:3000, i Created this app on my old laptop but want to view it on my new laptop, I had pushed the files to my github repo. I left coding for while now cant my way around
Multi-threading in C++
Tags: programming, apacheage
Published: 2023-05-09 20:35:34

The concurrent execution of numerous threads within a single programme is made possible by C++'s multithreading feature. Particularly in programmes that carry out lengthy or computationally intensive operations, this can result in improved performance and increased efficiency.

The Standard Template Library (STL) threads library, which offers a collection of classes and functions for managing threads, is generally used to implement multithreading in C++. The fundamental stages for developing multithreading in C++ are as follows:

- **Create a thread object:** A thread object in C++ represents a thread. By instantiating the std::thread class and supplying a function or method that should be run in a different thread, you can create a thread object.

- **Specify the thread's function to be executed:** A second thread will be used to perform the function or method that was supplied to the thread object. The code that you wish to run alongside the main thread should be in this method.

- **Start the thread:** You can start the thread by executing the start() method of the thread object after you've created it and specified the function that will be performed in it.

- **Join the thread:** Once the thread has finished its work, you should rejoin it by invoking the join() method of the thread object. This will make sure that the main thread waits until the thread is finished before moving on to the next step of execution.


```c++
#include <iostream>
#include <thread>

// Define the function to be executed in the thread
void myThreadFunction(int n) {
    for(int i = 0; i < n; i++) {
        std::cout << "My Thread executing..." << std::endl;
    }
}

int main() {
    // Create a thread object and pass the function to be executed in the thread
    std::thread myThread(myThreadFunction, 10);

    // Wait for the thread to complete
    myThread.join();

    // Print a message indicating that the thread has completed
    std::cout << "MY Thread completed." << std::endl;

    return 0;
}
```