teleren/devto huggingface dataset:
How to Effectively Remove .env File from Git Repo/History
Tags: github, env, webdev, beginners
Published: 2023-07-30 06:27:22

The .env file is typically located in the root directory of a project and is not committed to version control systems, such as Git. Instead, it is used to store sensitive information, such as database credentials, API keys, and passwords, which should not be publicly visible. By using an .env file, developers can keep their code and configuration separate, making it easier to maintain and deploy applications.

You can check the Youtube tutorial I created [here](https://www.youtube.com/watch?v=B3y-eH2Tkp8)

So if you’ve made a mistake like me and forgot to add “.env” to ‘.gitignore’ before pushing your code to your repository, you can follow these few simple steps to undo the catastrophe. 😅 We’re going to remove it not only from our git repository but most importantly from Git history as well.

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

Removing the file right away
The best thing to do now is to remove the file right away and add it to your .gitignore file.

```
# Secret
.env
```

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

Yep, the .gitignore file doesn't untrack already committed changes. So how can we fix this?

You can remove a file from Git by running the following command.

```
git rm -r --cached .env
```
If we then push this change, you will see that the file is gone in GitHub.


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

However, this didn’t completely solve our issue. If we look at our Git history, we can still find the file and expose the secrets!


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

To remove the file altogether, we can use the following command.

```
`git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD
```

You will get some warnings about this messing up your history as this goes through your whole history and 100% removes its existence. To push this, you have to run the following command.

```
git push --force
```

If we look at our history, we can still see the commits that include this .env file, but the content is empty.

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


Few, thanks for having our back Git!
Cách sử dụng ChatGPT trên Zalo
Published: 2023-07-30 06:27:20

Sử dụng ChatGPT trên Zalo không ngờ lại đơn giản và tiện lợi đến thế, niếu bạn chưa biết cách sử dụng thì hãy tham khảo và áp dụng ngay nhé !


ChatGPT nay đã chính thức có mặt trên ứng dụng Zalo, niếu như bạn vẫn chưa biết cách tích hợp và sử dụng trên Zalo thì đúng thật là quá lãng phí, bởi thông qua công cụ ChatGPT trợ giúp cho bạn rất nhiều trong công việc hàng ngày. Bài viết dưới đây sẽ hướng dẫn chi tiết cách để bạn có thể sử dụng công cụ này trên ứng dụng Zalo nhé ! 
Xem hướng dẫn : https://8chiase.com/cach-su-dung-chatgpt-tren-zalo/
Top 10 News Channel In The World
Tags: knowledgebyharsh, news, newschannel, world
Published: 2023-07-30 06:07:05


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tg4oaru7367yjbwmhq3q.jpg)
Introduction:
In today's fast-paced world, staying updated with the latest news is more important than ever. News channels play a vital role in delivering timely and accurate information to audiences across the globe. With countless options available, it can be overwhelming to choose the best news channels that provide trustworthy news coverage. In this article, we present the top 10 news channels in the world, ensuring you receive the most comprehensive and reliable news updates.[Read more](https://www.knowledgebyharsh.tech/2023/06/top-10-news-channel-in-world.html)
100% Off On The Kubernetes Certifications - CKAD, CKA & CKS
Tags: kubernetes, cncf, devops, cloud
Published: 2023-07-30 06:06:16

Free Kubernetes Certifications!!!

Combined, the Kubernetes certifications will cost you about $1400. What if I told you that you can take the exams for free? 100%! (and no, it's not Black Friday)

I'll show you 3 ways 🧵


**1. Linux Foundation Scholarship**

I found out in 2021 after bagging the Cloud Captain Scholarship, that scholarship recipients get access to both a training course and a certification.

The LiFT Scholarship, also called The Shubhra Kar Scholarship has awarded over 2,100 scholarships for millions of dollars worth of specialized, technical training to those who may not have the ability to afford this opportunity otherwise.

Getting the scholarship means getting one of the Kubernetes certifications for free.

![Lift-Scholarship](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pun9uu95jze3youqyifo.png)


**2. The CNCF Ambassador Program**

I decided to join the Ambassador program this year, helping the CNCF on its mission to make Cloud Native ubiquitous. 

One of the numerous benefits of becoming an Ambassador is the waived cost of certification and training. 

This is huge, get on it!

![CNCF Ambassador Program](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0x336rkrzfa37wk336el.png)


**3. Convince your boss**

The Linux Foundation has a nifty tool that generates a letter and a quote that you can use to convince your manager.

Check it out here https://training.linuxfoundation.org/training/convince-your-boss/


![Convince-your-boss](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1l5zzn6v1tw5pweiejxq.png)


If this post was great, like, share, and follow.

This post was first shared on Twitter. Follow me there to get latest opportunities in Cloud Engineering & DevOps, as I usually tweet them first --> [@Ileriayooo](https://twitter.com/Ileriayooo).


Unsure whthere to take the Kubernetes Certifications? Check this thread https://twitter.com/Ileriayooo/status/1610323839992430593
Dependency management in Python
Tags: 100daytooffload, python, pip, beginners
Published: 2023-07-30 06:03:16

There is always a good practice to keep track of your dependencies in a project, no matter programming language.

This will make it much easier to share (open source), set up a CI/CD pipeline, security analysis of the project or just to restore the development environment.

All programming languages have their own way to solve this tracking issue of external packages/libraries.

The recommended way in Python is to use a [requirements.txt](https://pip.pypa.io/en/latest/user_guide/#requirements-files) file together with [pip](https://pip.pypa.io/en/latest/) (**P**ackage **I**nstaller for **P**ython).

Typical workflow:

```sh
# Install some python package(s)
python -m pip install flask

# Output installed packages in requirements format,
# packages are listed in a case-insensitive sorted order.
python -m pip freeze > requirements.txt

# Later when you need to reinstall all packages you use 
# this command.
python pip install -r requirements.txt
```

It becomes a little bit cumbersome if you want to split up your package dependencies on what is needed in production and what is needed for developing the application.

The **requirements.txt** file can have any valid file name, so we can use that property and add another file to our project, **requirements_dev.txt**. That way you can keep the packages that is only needed for development (like pytest) in one file and everything else that is needed for production is in the **requirements.txt** file.

There is more to learn in the great documentation of [pip](https://pip.pypa.io/en/latest/).
🌈Bạn đang lo ngại về vấn đề đăng kí tài khoản
Tags: vt288, vt288org, nhacaivt288, linkdangky
Published: 2023-07-30 06:00:10

[🌈Bạn đang lo ngại về vấn đề đăng kí tài khoản](https://vt288.org/dang-ky-vt288/)
🌈Đến với VT288 đăng kí dễ dàng ở mọi thiết bị
🌈Đăng kí đơn giản - Điều khoản hợp lệ
🌈An toàn - Uy tín - Chất Lượng
👇Để biết thêm chi tiết👇
🌐wed: [](https://vt288.org/dang-ky-vt288/)https://vt288.org/dang-ky-vt288/
🌐Fanpage: [https://www.facebook.com/vt288org](https://www.facebook.com/vt288org)
📧Email: vt288org@gmail.com
📱SĐT: 0588798118
📌Địa chỉ: 14 Ngõ 9/14 Minh Khai,Trương Định,Hai Bà Trưng,Hà Nội, Việt Nam
#vt288 #vt288org #nhacaivt288 #link_đăng_kí #linknhacai
Git tags: what are they? How do tags and branches differ from one another?
Tags: jenkins, github, git, webdev
Published: 2023-07-30 05:44:33

## Tags vs Branch

Let's discuss this one by one with an example.

I hope you are already familiar with **git branch**. For those who are new to git branch its a way to work multiple features and keep your code separated by branches.

Example: You can work on two different features at the same time by creating two branch. Code from both the branch won't interfere with each other. Let's suppose **master** is the stable branch where all the production code is there, from  there you can create different branch according to your dev requirement.

![Creating git branches](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1luf6t0g1zj61nbiyo74.png)

If there are multiple developers working on the same project on multiple features, you need to merge the code to a common branch (master) for deployment. 

After deploying the master branch what if there is an issue with any of the developer's branch?

What should we do in this case since its breaking our production app?

Quickest solution would be to revert the merge commit that has the issue. 

But there is an even smartest way to solve things when things go wrong on production.

### Git tags 
This is where git tags come in. Git tags allow us to indicate certain points in a repository's history.
We can create tags at any time and reference to a commit.
But my suggestion would be to create a tag whenever there is commit made to **master** branch.

Example: Create a tag everytime a developer feature branch is merged into master.


![Git tags](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9glkz5vwr987gjzygf2n.png)

This way if there is any issue in any of the merge commits then we can simple go back to 2nd stable tag instead of the first tag.

### To create a tag locally-
`git tag tag-v.0.0.1` 

### To push the tag-
`git push origin tag-v.0.0.1`

This is a manual way of creating a tag and push it. But we can automate this thing by using github actions.

So whenever there is any push commit to master , pick the latest tag and increment it by one.

If my last tag is `tag-v.0.0.1` it will automatically increment and create tag `tag-v.0.0.2`.

If you want to know how to create this auto tag on master comment down below. If you like this post do give a comment.
Python Pseudocode Critique
Tags: pseudocode, python, machinelearning
Published: 2023-07-30 05:32:09

I would like to get some critical thoughts about a Psuedocode that I have created lately. Any thoughts?

`
DEFINE CLASS GBDTClassifier(GBDTEstimator):

    DEFINE FUNCTION calc_grad(self, y_true: np.ndarray, y_pred: np.ndarray) -> Tuple[np.ndarray, np.ndarray]:

        // (reference) regression_loss.h

        SET y_pred_prob TO 1.0 / (1.0 + np.exp(-y_pred))

        SET eps TO 1e-16

        SET grad TO y_pred_prob - y_true

        SET hess TO np.maximum(y_pred_prob * (1.0 - y_pred_prob), eps)

        RETURN grad, hess

    DEFINE FUNCTION predict_proba(self, x: np.ndarray) -> np.ndarray:

        // apply sigmoid

        RETURN 1.0 / (1.0 + np.exp(-self.predict(x)))
`
Ethics to Follow : For Developers
Tags: beginners, productivity
Published: 2023-07-30 05:11:28

Hello coders,

This is the first article that I am going with and as a Developer I believe that we should always keep ethics in mind while we are in this journey of contribution and creation. Developers play a crucial role in shaping the digital world and its impact on society. Ethical considerations in coding are essential to ensure that technology is used responsibly and does not harm individuals, communities, or the environment. Here are some key ethical principles that developers should follow while coding:

![Ethics](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nhhm67aunegzkpl6oh6b.png)

1. **Privacy and Data Protection:** Respect the privacy of users and their data. Minimize data collection to what is necessary for the application's functionality, and inform users about the data being collected, how it will be used, and who will have access to it. Ensure that data is securely stored and transmitted, and implement measures to prevent unauthorized access or breaches.


2. **Transparency:** Be transparent about the capabilities and limitations of the software being developed. Avoid hidden functionalities or intentional obfuscation. Users should be able to understand how the system works and make informed decisions.

3. **Inclusivity and Accessibility:** Develop software that is accessible to all users, regardless of their abilities, languages, or technological resources. Consider diverse perspectives during development to avoid bias and discrimination. Make sure that the software is usable by individuals with disabilities.

4. **Openness and Collaboration:** Encourage open-source contributions and collaboration with the broader developer community. Sharing knowledge and code can foster innovation and benefit society as a whole.

5. **Responsibility for Consequences:** Acknowledge the potential impact of the software on individuals and society. Consider the consequences of coding decisions, and take responsibility for any harm that might arise from the use of the software.

6. **Avoiding Harm:** Strive to minimize harm through software development. Avoid creating or supporting applications that facilitate illegal activities, encourage violence, spread misinformation, or violate human rights.

7. **Informed Consent:** Obtain informed consent from users before collecting and processing their personal data or engaging in any activities that might affect their privacy or well-being.

8. **Fairness and Avoiding Bias:** Be aware of potential biases in algorithms and data sets used in the software. Ensure that the software's outcomes are fair and do not disproportionately impact certain groups or individuals negatively.

9. **Environmental Impact:** Consider the environmental impact of the software and coding practices. Optimize code for efficiency and resource consumption to reduce the software's carbon footprint.

10. **Intellectual Property and Copyright:** Respect intellectual property rights and adhere to copyright laws. Do not use copyrighted code or resources without proper authorization.
The React train keeps chugging!
Tags: webdev, beginners, react, programming
Published: 2023-07-30 04:45:23

I've finished section 2 of my React courses and almost have my second solo project completed. Although I did have to reference a few past lessons and ran into a few syntax errors, I still find React extremely fun and the easiest language I've studied so far!

My second project was to create a travel journal with places I've been, but it turned into places I want to go. The focus of the task was to learn how to make reusable components that take in props rather than hard coded items.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w8fozxgqfrdddzer2c87.jpg)
A step by step guideline on how to learn react from beginner to advanced
Tags: react, javascript
Published: 2023-07-30 04:28:42

In today's ever-evolving digital landscape, staying relevant as a web developer is crucial. One technology that has gained immense popularity and reshaped the way modern web applications are built is React. Developed and maintained by Facebook, React is a powerful JavaScript library that has revolutionized front-end development. Here is a step by step guideline on how to learn react:
1. Get familiar with JavaScript: Before diving into React, ensure that you have a solid understanding of JavaScript fundamentals. This includes variables, functions, arrays, objects, and control flow structures. Familiarize yourself with ES6 features such as arrow functions, spread operators, and destructuring assignments.

2. Understand the basics of HTML and CSS: As React works with the DOM, having a good understanding of HTML structure and CSS styling is crucial. Learn about HTML tags, attributes, and CSS selectors, as well as how to style elements.

3. Learn the React fundamentals: Start by understanding the core concepts of React, including components, props, state, and the component lifecycle. Get comfortable with JSX, which allows you to write HTML-like syntax in your JavaScript code.

4. Build simple React applications: Practice by building small React applications, such as a to-do list or a simple contact form. This will help you solidify your understanding of React's basic concepts and give you hands-on experience.

5. Explore React ecosystem: Familiarize yourself with popular libraries and tools in the React ecosystem, such as React Router for routing, Redux for state management, and Axios for making API requests. Understanding how these tools complement React will enhance your development skills.

6. Dive deeper into React: Once you have a solid grasp of the fundamentals, delve into more advanced topics. Learn about React hooks, which provide a way to use state and other React features without writing a class component. Understand higher-order components (HOCs) and render props, which are advanced techniques for code reuse and component composition.

7. Practice with real-world projects: Challenge yourself by working on more complex projects. This will allow you to apply your knowledge and gain confidence in building larger-scale applications. Consider working on projects that integrate with external APIs, handle user authentication, or involve real-time updates.

8. Stay updated: React is constantly evolving, so it's important to stay up to date with the latest releases and best practices. Follow React's official documentation, read blogs and articles, and participate in online communities to stay connected with the React community.

 Learning React is an ongoing process. Consistent practice and building projects will help you strengthen your skills and become proficient in React development. Happy coding
70 berufliches Vorwärtskommen: Karriere-Weg-Uneigentlich-Helfer.
Tags: deutsch, career, motivation, discuss
Published: 2023-07-30 04:00:00

Moin Moin,

auf uneigentliche Helfer bin ich letzten gestoßen, als ein Freund für einen Online-Kurs bezahlte, der nicht das Versprochene lieferte. Dies kann auf einem Kommunikationsfehler gegründet sein – worauf ich hinaus möchte ist, dass es nun mal leider auch Leute gibt, die lediglich scheinbar Hilfe leisten.

Ich selbst kenne kein Beispiel aus der IT  – zumindest kein kostenpflichtiges ( das obige Beispiel ist aus dem Vertrieb ).

1) Habt ihr einen derartigen Fehlkauf in der IT selbst erlebt oder gar einen Betrug?


Lass uns mittels Kommentaren austauschen.

Beste Grüße,
Mustafa

Oder auch mittels E-Mail: mustafa.kevin.dwenger@posteo.de
Betreff: Austausch
Dàn đề 20 số nuôi
Published: 2023-07-30 03:58:12

🎮Dàn đề 20 số nuôi khung bất bại miễn phí
🎮Chúng ta cùng tìm hiểu dàn đề 20 số nuôi khung bất bại là gì ?
🎮Những phương pháp chơi dàn dề 20 số hiệu quả luôn thắng trận 👇CHI TIẾT: 👇
🌐Web: https://sm66vnd.com/dan-de-20-so/
🌐Fanpage: https://www.facebook.com/sm66vnd
📌Địa Chỉ: 37 Ng. 26 Đ. Hoàng Quốc Việt, Nghĩa Đô, Cầu Giấy, Hà Nội, Vietnam
📲Số điện thoại: +84921595852
📧Mail: sm66vnd@gmail.com
#sm66 #sm66_vnd #link_sm66 #trang_chủ_sm66 #nhà_cái_sm66 #Roulette_sm66 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aglaavj150skagf0t344.jpg)
✨ Lô Đề Xoso66- Sảnh Game Lô Đề Xổ Số Online
Tags: xoso66, xoso66casino, xoso66zone, nhacaixoso66
Published: 2023-07-30 03:47:33

[✨ Lô Đề Xoso66- Sảnh Game Lô Đề Xổ Số Online](https://xoso66.zone/lo-de-xoso66/)
✨ Sảnh game cá cược online hấp dẫn
✨ chia sẻ kinh nghiệm cá cược - phúc lợi cao
✨ Trải nghiệm game thú vị cùng nhiều ưu đãi khủng
👇chi tiết 👇
🌐Website: [https://xoso66.zone/lo-de-xoso66/](https://xoso66.zone/lo-de-xoso66/)
🌐Fanpage: [https://www.facebook.com/xoso66zone/
](https://www.facebook.com/xoso66zone/
)📌Địa chỉ: 113 P. Đại La, Trương Định, Hai Bà Trưng, Hà Nội, Việt Nam.
📲Số điện thoại: 0921 214 694.
📧Email: x[oso66.zone@gmail.com.](oso66.zone@gmail.com.)
#xoso66 #xoso66casino #xoso66zone #nhacaixoso66 #lodexoso66 #nhacaiuytin
Returns management for e-commerce
Published: 2023-07-27 13:00:13

With the increase in product purchases made through e-commerce, the problems of returning items have multiplied.

The return process has become so very important and therefore it is necessary to evolve it and optimize its IT architecture.

In this story, I’ll show you how the returns process interacts with the IT system.


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

To simplify the explanation and make it easy to understand, I have chosen to use the BPMN representation method to describe the complete flow.

If you don't know how to use BPMN you can read more information at this link https://www.omg.org/spec/BPMN/2.0/PDF.

**Graphic representation**
The following diagrams are a high level view and have only the main functions. Each applied use case has a custom flow with vertical integration and sub-processes.

Brief explanation of how to read them:
- The start of the stream is a green circle
- Each row is representative of an actor
- Each bubble has a meaning

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

https://drive.google.com/file/d/1AseqwOKPXxwb4HN9aG2kAr3_zKrvsSt6/view?usp=sharing

**Insights?**
If you have any questions or corrections, please contact me.

**Insights about BPMN**
In general at this link https://www.bpmn.org/
Complete guide at this link https://www.omg.org/spec/BPMN/2.0/PDF

**Document version**
Version: 1.0 - Last update: 27/07/2023 - Author: Corrado Facchini

**About me**
https://www.linkedin.com/in/corrado-facchini-8948553b/
Elevate Your Sales with Personalised Follow-ups
Tags: beginners, productivity, career, ai
Published: 2023-07-30 03:45:00

## Your AI-powered platform analyzes your sales calls, empowering you to generate personalized mini-sites that resonate with your buyers, using their own words. Say goodbye to the broken follow-up process and embrace the power of [Meeple.ai](https://www.aiforme.wiki/ai/tools/Meeple) to create impactful one-pagers effortlessly.

**Personalized Follow-up Process:**
With Meeple.ai, you can create a personalized follow-up process that leaves a lasting impression on your prospects. After each sales call, simply click to generate one-pagers automatically, tailored to your buyers' needs and preferences.

**Automated One-Pagers from Zoom Calls:**
Gone are the days of manual note-taking and follow-up preparation. Meeple.ai takes care of everything for you. We collect relevant buyer information from every Zoom call and craft one-pagers that perfectly summarize the conversation. You just need to review and send them out!

**How Meeple.ai Works:**
Our advanced AI assistant transcribes your sales calls, extracting crucial information that matters most to your buyers. It then works its magic to create personalized one-pagers that capture the essence of each conversation, ensuring a seamless and engaging follow-up process.

**Getting Started:**
Creating an account with Meeple.ai is your gateway to transforming your sales approach. Connect your Zoom account to let our AI assistant work its wonders automatically, or manually add your call notes for a tailored experience. Say hello to scaled one-pagers that impress your prospects.

**Conclusion:**
Experience the power of [Meeple.ai](https://www.aiforme.wiki/ai/tools/Meeple) to take your sales game to new heights. With personalized follow-ups and automatically generated one-pagers, you can close deals with greater efficiency and effectiveness. Unlock the potential of your buyers' words, combined with AI intelligence, to leave a lasting impact and secure 10x deals. Let Meeple.ai be your trusted ally in achieving sales success.