teleren/devto huggingface dataset:
Jenkins Backup
Tags: jenkins, devops, linux, bash
Published: 2022-12-13 15:04:12

**How backup works ?**

Jenkins plugin Periodic Backup Manager create backup into jenkins server with tar.gz 
After it , cronjob automate run script , script checking into directory where stored tar.gz 
If have backup.tar.gz , script automaticly push to s3 and delete after pushing. 
All steps are automatically you can only monitoring for stability

**For backup you need to AWS account S3 bucket and Linux Server where Jenkins.**

**Linux steps.**

1. sudo -i
2. git clone https://github.com/vndark/jenkins-backup-s3.git
3. mkdir permanent && mkdir tmp
4. If have mount disk example ` mount sdb1 /jenkinsbackup and create permanent and tmp dir in jenkinsbackup
6. Open jenkins-backup-s3.sh via nano or vim , and edit path to directory


**AWS S3 steps.**

1. Go to S3 and create bucket example ` backup-jenkins or jenkins-backup.
2. Copy bucket url and paste into jenkins-backup-s3.sh on the line where s3 cp url
3. You can enable versioning and configure lifecycle rule for replace backup file and save old versions.


**Jenkins steps.**

1. Go to manage plugins
2. Install plugin "Periodic Backup Manager"
3. Go to settings Jenkins scroll down open Periodic Backup Manager
4. Set cron time when start jenkins backuping
5. set tmp path example ` /root/tmp
6. Mark the fullbackup button
7. Storage Strategy - tar.gz
8. Backup Location example ` /root/permanent and press ENABLE THIS LOCATION.


**Cron job steps.**

1. crontab -e with nano or vim
2. You can generate time on website > https://crontab.guru
3. Your job in cron , set time after Periodic Backup Manager Backup example  * * * * * /root/jenkins-backup-s3.sh
React with MUI
Tags: react, javascript
Published: 2022-11-28 15:00:04

As a part of phase-2 in the Flatiron School's Software Engineering bootcamp, we expanded our knowledge of JavaScript by learning how to use the popular JS library called React. At first I struggled a lot with react but as the week progressed, I felt more comfortable with how simple React makes JavaScript. One of the most fun learning aspect was teaching myself Material UI which is a comprehensive library of UI tools that developers can use for their web applications.

MUI does a great job of limiting how much CSS a developer needs when developing a web application. With most components using MUI we can add styling straight within the component code and most of the work just requires using separate code than the usual JSX we become accustomed to.

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

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

As you can see with the two screenshots above, we implement component UI's from MUI and add our own styling for size, color, etc. MUI has a long list of possible UI tools that can help make any web application more appealing for both the developer and then end user.

A very important note to mention about using MUI is that when you include all your tools within your application, it will error out until you run the traditional "npm install" within the projects terminal. This will tell your application that you need to download the necessary modules in order to use the MUI tools you have written out.

My project partner and I decided to take full advantage of the tools MUI has at its disposal for our phase-2 project. Instead of having a long list of CSS styling for each component, we were able to import tools and make our application more professional looking. This was a very interesting learning experience given that we had just spent the last week learning React and now we decided to go above and beyond and try and teach ourselves MUI within the 4 days we had to create our project. It was a hurdle but at the end of the day, learning MUI has made React much more interesting to me than it was on day 1.
Role of AI in cybersecurity
Tags: cybersecurity, ai, machinelearning
Published: 2022-12-13 15:00:33

Artificial intelligence (AI) is playing an increasingly important role in cybersecurity, as it is being used to help protect against a wide range of cyber threats. AI-based technologies can help to detect and prevent cyber attacks in real time, by analyzing vast amounts of data and looking for patterns and anomalies that may indicate the presence of an attack.

One of the key ways that AI is used in cybersecurity is through the use of machine learning algorithms. These algorithms are able to learn from data and identify patterns and trends that are not immediately apparent to human analysts. This can help to identify potential threats and vulnerabilities, and allow security systems to take appropriate action to prevent an attack.

Another important use of AI in cybersecurity is in the area of threat intelligence. AI-based systems can be used to analyze large volumes of data from various sources, such as social media and the dark web, to identify potential threats and vulnerabilities. This information can then be used to improve security systems and prevent attacks before they happen.

AI is also being used to help automate many of the tasks involved in cybersecurity, such as patching and updating systems, monitoring networks for signs of an attack, and responding to security alerts. This can help to reduce the workload on human security analysts, and allow them to focus on more complex and critical tasks.

Overall, the use of AI in cybersecurity is an important development that is helping to improve the protection of networks and systems against cyber threats. As the use of AI continues to grow and evolve, it is likely to become an even more essential tool in the fight against cyber crime.
2022 State of DevOps This Thursday
Tags: events, eventsinyourcity, devops
Published: 2022-12-13 14:55:26

🗣️Don't forget to register for this Thursday's State of DevOps Virtual Event. Our friends from CircleCI + LinearB_Inc are joining us to look back on the year and discuss key learnings and trends. The takes will be 🔥 HOT 🔥 
Register: [(https://bit.ly/3GQsGrn)]
Hive vs Pig | Difference Between Hive And Pig | Pig vs Hive | Hive And Pig In Hadoop
Tags: bigdata, hive, webdev
Published: 2022-12-13 14:55:21

A comparison between Apache Hive vs Apache Pig is shown in this brief movie. There will be comparisons of why Hive and Pig, what Hive and Pig are, HiveQL and Pig Latin, data models, execution modes, features, and commands. Apache MapReduce is mostly based on Java code, however Hive and Pig were developed to facilitate data processing. Hive and Pig use SQL-like queries, which makes data processing and analysis much easier than using MapReduce. 

{% embed https://youtu.be/2q3F-mcmzGQ %}
Binary Numbers
Tags: binary, operations
Published: 2022-12-13 14:50:11

Binary numbers consist of only 1-s and 0-s.
Binary numbers are used in mathematics and technologies.
Programming is done using a binary number system since the computer only understands the language of the two digits 0 and 1.
We can do mathematical operations with binaries, such as addition, multiplication, subtraction and division.

Addition.
Addition is the same as with the ordinary numbers. The only difference is that we should follow the following rules. 
Addition rules:
1. 0+0=0
2. 0+1=1
3. 1+0=1
4. 1+1=10

For example: 11111+1101=101100

Multiplication.
Multiplication is also the same as the normal multiplication. The rules of multiplication:
1. 0*0=0
2. 0*1=0
3. 1*0=0
4. 1*1=1

For instance: 11111+1101=110010011

Subtraction.
Subtraction is also the way normal numbers are subtracted.
The rules of subtraction:
1. 0-0=0
2. 0-1=1(borrow:1)
3. 1-0=1
4. 1-1=0

For example: 101000-11110=1010

We can also convert binaries into decimals. In order to convert a binary number to a decimal number, we must multiply each digit of the binary number by powers of 2(powers start at 0) and then add the results to get the decimal number.

For example: 11011-> decimal number
1*2^0+1*2^1+0*2^2+1*2^3+1*2^4 = 1+2+0+8+16=27
Hence, 11011 in decimal is 27.
Interview Experience: Google SWE Internship Bangalore Or Hyderabad Jul 2023
Tags: career, discuss, community, motivation
Published: 2022-12-13 14:48:11

**Background**: Microsoft Imagine Cup 2022 India Runner-up | Azure Women Hackathon 2022 Finalist | Azure certified | NIT DGP'24 EE | solved 400+ problems on GeeksForGeeks

**Experience**: Full-stack Web Developer Internship in 3 startups and 2 Academic Research publications.

**Application process:** I applied off-campus without any referral. After around a month or so I received a test link for online assessment.

**Online Assessment:** I received the HackerEarth test link. ****There were two coding questions to be attempted within a 60-minute time limit. The timed challenge will automatically record your submission at the 60-minute mark. I am not allowed to share the exact question but I will similar question.

- Question 1(Medium-Hard): DP-based question. It was really similar to this question. [Link](https://www.geeksforgeeks.org/next-word-that-does-not-contain-a-palindrome-and-has-characters-from-first-kfind-lexicographically-next-word-contains-first-k-letters-english-alphabet-not-contain-palindrome-substring-length-one/)

- Question 2(Medium-Hard): Bit-masking-based question. Given three numbers suppose A, B, C. find the smallest number X such that it holds the relation ((A|X)&(B|X))==C.

I was able to solve both questions in around 40 mins. I received an interview call around 2 weeks after the OA.

**Interview 1 Technical screening(45 mins):** The interviewer gave me a graph question. Implementation of the graph algorithm BFS with some obstacles. It was fairly easy but I was nervous and had a few mess-ups. However, I received another interview call.

**Interview 2 Technical screening(45 mins):** this round went very smoothly and went for about an hour. The interview gave me a simple string question which I solved in around 15-20 mins with pseudocode and call. The question was similar to this [one](https://www.geeksforgeeks.org/string-matching-with-that-matches-with-any-in-any-of-the-two-strings/). He went on to ask me basic DSA fundamental questions like map vs unordered_map, time complexities of various data structures like BST, hash maps, etc. After this, I showed him my project and he seemed impressed.

**Result: A week after my Round 2 I came to know that Google have frozen their hiring and hence they won’t be considering my candidacy further.**
Introduction to Salesforce | Salesforce Tutorial for Beginners | Salesforce Training
Tags: salesforce, tutorial, crm, job
Published: 2022-12-13 14:47:45

This video will give you an introduction to the Salesforce CRM and talk tell you how & why Salesforce has emerged as one of the leading cloud computing companies today.
 
This video covers the following topics:
1.​ Salesforce:- Need & Rise
2. Features Of Salesforce
3. Demo: Salesforce In Action

{% embed https://www.youtube.com/watch?v=qGNjRT7F-2Y %}
Alpine JS
Tags: alpinejs
Published: 2022-10-23 09:42:42

I recently did a small project with CSS and JS, so I thought I'd try out [Alpine JS](https://alpinejs.dev/). I'd come across it ages ago, been intrigued, but not got round to trying it out. Since it's good for small projects it seemed like a good time to try it.

For some things I found it so much simpler than JS. If I wanted to change a class on something based on a mouse click, that was easy. Similarly showing and hiding things.

Getting slightly more complicated was harder though. I was trying to do a timer. Doing that in JS is easy, but I also had to update what was shown on screen and the data stored in Alpine. Which was itself connected to the screen display. I tried a few different things before my Googling led me to enough examples that I worked out how to do the whole thing in Alpine JS.

In Summary, if you don't need a lot of JS and you're only using it to change the display, then Alpine is going to be a lot quicker and easier - it's written in the HTML, so you don't need a separate script file. Beyond that, I think JS is going to be quicker. But I really enjoyed playing with Alpine JS and figuring out how it worked. Getting it to work definitely felt like an achievement!
Becoming an Effective Tech Lead and Project Manager: Strategies for Success
Tags: career, productivity
Published: 2022-12-13 14:18:18

[facebook.com/Trinwhocode](https://facebook.com/Trinwhocode)

Leadership and management are two concepts that are often used together, but they are not the same. Leadership is about inspiring and motivating people to work together towards a common goal. Management is about organizing resources, setting goals, and making sure projects are completed on time and within budget.

Most people think that the key to being a good leader and manager is charisma. However, charisma alone isn't enough. A successful leader and manager needs to combine both charisma and skill to be truly successful. Here are some of the secrets of being a good leader and manager:

1. Have a Clear Vision: Successful leaders and managers need to have a clear vision of what they want to achieve and be able to communicate it effectively to their team. They need to be able to articulate their goals and objectives, and be able to motivate their team to work towards them.

2. Be Open to Feedback: Great leaders and managers are always open to feedback from their team members. They take on board suggestions and criticisms and use them to improve the team's performance.

3. Lead by Example: A good leader and manager will always lead by example. They will demonstrate the high standards of behaviour that they expect from their team, and will act as a role model for everyone.

4. Be Decisive: Good leaders and managers need to be able to make decisions quickly and confidently. They need to be able to weigh up the pros and cons of a situation and make the best decision for the team.

5. Have Good Communication Skills: Effective communication is essential for successful leaders and managers. They need to be able to listen to their team, provide clear instructions, and give constructive feedback.

6. Be Flexible: Great leaders and managers are flexible and adaptable. They understand that situations can change quickly and need to be able to adjust their approach quickly to take advantage of opportunities.

Good leadership and management skills are essential for success. A successful leader and manager needs to combine both charisma and skill to be truly successful. By following the above secrets, you will be on your way to becoming a great leader and manager.

[linkedin.com/in/trinmar](https://linkedin.com/in/trinmar)
Artificial Intelligence Project Ideas
Published: 2022-12-13 14:14:26

Because of the increasing need for intelligent and accurate decision-making, there is exponential growth in the adoption of AI and ML technologies. Hence, these are poised to remain the most important technologies in the years to come.

This " Top AI Project Ideas" video by Edureka will introduce you to some of the popular and trending artificial intelligence projects that you can implement  
{% embed https://www.youtube.com/watch?v=7V_AebZFlpo %}
Fragment.com API Library (TON - Telegram)
Tags: programming, python, opensource, api
Published: 2022-12-12 17:17:11

Fragment.com Library (TON - Telegram)
Last week, I was trying to scrape data from [Fragment.com](Fragment.com), But I didn't find any **Official API**.

![Fragment.com main page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iqiudmarji8b1x54xfyu.jpeg)
After that, I decided to make my scripts open-source, and then suddenly I asked myself "Why not make a library?"
So, I made an [UnOfficial Fragment (Telegram - Ton Coin) Python library](https://github.com/iw4p/Ton-Fragment), so everyone can easily scrape what he/she needs.
Today's markets use the power of AI and robot traders. Classic trading methods are going to be deprecated as soon as possible.
For making trader robots, firstly you need data from the target's auctions and prices, etc.
This library can help you to grab and scrape what you need.

You can install it easily via Pip python package manager

```
pip install ton-fragment
```

Let's see some examples.
For example, you need to get recently listed for-sale numbers
You get fetch this data like that:
```
from ton_fragment.numbers.numbers import Numbers
all_numbers = Numbers('sale', 'listed')
print(all_numbers.result)
```
Or you need to get the status of a username or a number to realize it's still on sale or what's the highest bid price for it or when the auction will end:
```
from ton_fragment.numbers.number import Number
my_number = Number('8888888')
print(my_number.data)
print(my_number.number)
print(my_number.status)
print(my_number.ends_in)
```
This library is still under development, and it's a little buggy.
Contributions are welcome and feel free to submit issues and enhancement requests.
Unix vs Linux | Difference Between Unix & Linux | Linux Admin Certification Training
Tags: unix, linux, webdev
Published: 2022-12-13 14:12:07


This Unix vs Linux Tutorial video will help you understand the basic differences between both of these operating systems while giving you an idea about each of the Operating Systems. This also takes you through the features and limitations of both Unix & Linux.

{% embed https://www.youtube.com/watch?v=7L5JMj82vYU %}
Mary Kenneth Keller
Tags: history, computerscience
Published: 2022-12-13 14:11:15


This content was originally created on my personal social media with the purpose of making my biggest inspirations known to those who are not in the IT area and probably never heard of important scientists and programmers that impacted their lives through their contributions. In this article I'd like to talk about one of my biggest inspirations as a christian and woman in STEM field: Mary Kenneth Keller.


![Image of Mary Kenneth Keller](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5fd4unakd0prcjlos5np.png)


Mary was born in Cleveland, Ohio, on December 17, 1913. When she was around 18, she entered the Sisters of Charity of the Blessed Virgin Mary.


![Image of Mary Kenneth Keller](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uwsafqage3kpx0hw27tb.jpg)

In 1943 Mary completed her B.S. in Mathematics from DePaul University in Chicago, where later she would conquer her Master's degree in Mathematics and Physics. 

![Image of Mary Kenneth Keller](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n3ca83rghbienffrva7m.jpg)

In 1958 she started working on a workshop at Darmouth University, which at the time was exclusively for men, but an exception was made so that the sister could be part of the project.

At this university, he was part of the creation of the **BASIC** programming language, together with John George Kemeny, Thomas Eugene Kurtz, in 1964.

![Image of Mary Kenneth Keller](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8c09pim35kdaywanaaai.jpg)

Mary earned her Ph.D. in Computer Science in 1965 from Washington University in St. Louis, along with her colleague Irving Tang, who were the first PhD graduates in the field in the country.

![Image of Mary Kenneth Keller](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lfqm2pfztzuiho43b3q6.jpg)

After finishing her PhD, she founded the computer science department at Clarke University, Iowa.

Clarke University was a Catholic women-only institution, becoming mixed only in 1979.

Mary believed that computer science was a way to improve the quality of education, helping people learn, and believed that computers should be accessible for all.

> “We’re having an information explosion, among others and it’s certainly obvious that information is of no use unless it’s available.”

![Image of Mary Kenneth Keller](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8tt9l4936wa6ydrtfrje.jpg)

She died in 1985, at the age of 71, in the city of Dubuque,  lowa, leaving behind a great legacy of her great deeds.
How to use Axios interceptors to handle 401 API errors and refresh tokens in typescript.
Tags: webdev, javascript, typescript, axios
Published: 2022-12-13 14:06:21

To use [Axios](https://axios-http.com/docs/intro) interceptors to handle [401 API errors](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401) and refresh access/JSON web tokens(JWTs) tokens in TypeScript/Javascript, you can do the following:


1. Import the `axios` library and create an instance of the `axios` object:


```
import axios from 'axios';

const instance = axios.create();
```

2. Define a function to refresh the access token using a refresh token:

```
function refreshAccessToken(refreshToken: string): Promise<string> {
  // Send a request to the server to refresh the access token using the refresh token
  return axios
    .post('/refresh-token', { refreshToken })
    .then((response) => response.data.accessToken);
}
```

3. Add an interceptor to the `instance` object to handle 401 errors. In the interceptor, check for a 401 error, and if one is found, refresh the access token using the refresh token and retry the original request:

```
instance.interceptors.response.use(
  (response) => response,
  (error) => {
    const originalRequest = error.config;

    if (error.response.status === 401 && !originalRequest._retry) {
      originalRequest._retry = true;
      const refreshToken = // Get the refresh token from storage

      return refreshAccessToken(refreshToken).then((accessToken) => {
        // Replace the access token in the original request config
        originalRequest.headers['Authorization'] = `Bearer ${accessToken}`;
        return instance(originalRequest);
      });
    }

    return Promise.reject(error);
  }
);
```

With this in place, whenever an Axios request returns a 401 error, the interceptor will automatically refresh the access token and retry the original request.

It's important to note, however, that this example is just a rough outline of how to use Axios interceptors to handle 401 errors and refresh access tokens in TypeScript. You will need to handle additional edge cases in a real-world application and implement proper error handling.

For more information, be sure to refer to [Axios' official documentation](https://axios-http.com/docs/interceptors) on interceptors.
Best way to deliver this content.
Tags: upwork, codesignal
Published: 2022-12-13 14:02:02

I'm still looking for the best way to relate the complete journey in such a way that it'll provide value to anyone that hopefully come across it.

I want it to be in such a way that there'll be zero ambiguity in code explanation, just pure language explained in the best and simplest way while making sure I provide the best solution to each and every one of the question.
Insha Allah, I'll be starting soon.
What command do you 'has' ? | Strange CLI Apps
Tags: linux, productivity, devops, programming
Published: 2022-12-13 14:00:24

## `has`: ✅ checks presence of command line tools
__AIM:__ checks presence of various command line tools on the PATH and reports their installed version.
__Usage__ for Unix System

![Has Demo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6co4aklpwnxvgkgeem6r.png)

### Reference
For more usage and installation instructions, visit official repo: https://github.com/kdabir/has

## One more command: `which`
__Difference:__ Compared `has`, which is not being updated for 4 years. `which` is pre-installed in each Unix System and being maintained.
__AIM:__ `which` also checks presence of various command line tools on the PATH
__Usage__ for Unix System
![Which Demo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wtipg2jn3gtcllj9ye2x.gif)

> Please follow this series for more Strange CLI Apps example!