teleren/devto huggingface dataset:
Net Sec Challenge Writeup (TryHackMe)
Tags: security, network
Published: 2023-04-12 07:40:39

_This is my fist (public) write up for a [TryHackMe](https://tryhackme.com/) room._

The [Net Sec Challenge](https://tryhackme.com/room/netsecchallenge) is the last step of the Network Security module within the  Jr Penetration Tester path.
The goal of the Network Security module is the following:

"Learn the basics of passive and active network reconnaissance. Understand how common protocols work and their attack vectors."

The goal for the Net Sec Challenge is to test all of the skills and knowledge from the module.
You are supposed to find the answers to the questions using only Nmap, Telnet, and Hydra.

**Question 1: What is the highest port number being open less than 10,000?
Question 2: There is an open port outside the common 1000 ports; it is above 10,000. What is it?
Question 3: How many TCP ports are open?**

**Method:**
`nmap MACHINE_IP -T4 -p- -vvvv`

**Notes:** As I ran -p- I was able to scan all of the open ports on the server and thereby was able to answer all of the question at once. 

**Question 4: What is the flag hidden in the HTTP server header?**

**Mothod:**
`nmap MACHINE_IP -p80 -vvvv -script=http-server-header`

**Notes: **There was not particlular reason that I chose to use nmap for finding the header for the http-server. Just thought it would be fun to use a nmap-script...

**Question 5: What is the flag hidden in the SSH server header?**

**Method:**
`ssh-keyscan MACHINE_IP`

**Notes:** I didn't really see the point in using telnet for this one. At first I was thinking of using nmap, but remembered that ssh-keyscan might work.

**Question 6: We have an FTP server listening on a nonstandard port. What is the version of the FTP server?**

**Method:**
`telnet MACHINE_IP 10021`

**Notes:** Decided to use telnet here as it would be pretty quick and easy, made an educated guess that the ftp was located at 10021 (as the standard port wasn't open).

**Question 7: We learned two usernames using social engineering: _eddie_ and _quinn_. What is the flag hidden in one of these two account files and accessible via FTP?**

**Method:**
`hydra -l eddie -P /usr/shared/wordlists/rockyou.txt MACHINE_IP ftp -s 10021`

**Notes:** Ran the same command for both usernames, and logged in to the ftp-server. When I found the ftp_flag.txt, I downloaded it and got the answer from it.

**Question 8: Browsing to hxxp://MACHINE_IP:8080 displays a small challenge that will give you a flag once you solve it. What is the flag?**

**Method:**
`nmap -sN MACHINE_IP`

**Notes:** I initially was thinking of running the same type of scan I did for the first few questions, but with -T0 instead. However, when I had done that for a 15 minutes or so (and about 0.1% done), I thought a null scan would probably made more sense (it is faster, but still stealthy)).


**Thoughts:**
It had been a while since I last cleared a TryHackMe room, as I've been busy with other projects. However, I found the room to be both enjoyable and relatively easy to complete.
Consistency is Key
Tags: webdev, beginners, programming, devops
Published: 2023-04-12 07:35:23

Consistency is key in the tech industry. Whether you're a developer, designer, or project manager, consistently delivering high-quality work is crucial to your success.

Why is consistency so important? For one, it builds trust. When you consistently deliver on your promises and meet deadlines, your clients and colleagues will trust you to do the same in the future. This trust can lead to long-term relationships and more opportunities down the road.

Consistency also helps you improve your skills. By working on similar tasks or projects over time, you can refine your techniques and become more efficient. This can save you time and effort in the long run, and help you produce even better results.

Of course, being consistent is easier said than done. It requires discipline, focus, and a commitment to excellence. But the rewards are worth it. So, whether you're writing code, designing interfaces, or managing projects, strive for consistency in all that you do. Your career will thank you for it.
openGauss MOT Prerequisites
Tags: opengauss
Published: 2023-04-12 07:16:32

The following specifies the hardware and software prerequisites for using openGauss MOT.

Supported Hardware
MOT can utilize state-of-the-art hardware, as well as support existing hardware platforms. Both x86 architecture and ARM by Huawei Kunpeng architecture are supported.

MOT is fully aligned with the hardware supported by the openGauss database. For more information, see the openGauss Installation Guide.

CPU
MOT delivers exceptional performance on many-core servers (scale-up). MOT significantly outperforms the competition in these environments and provides near-linear scaling and extremely high resource utilization.

Even so, users can already start realizing MOT's performance benefits on both low-end, mid-range and high-end servers, starting from one or two CPU sockets, as well as four and even eight CPU sockets. Very high performance and resource utilization are also expected on very high-end servers that have 16 or even 32 sockets (for such cases, we recommend contacting Huawei support).

Memory
MOT supports standard RAM/DRAM for its data and transaction management. All MOT tables’ data and indexes reside in-memory; therefore, the memory capacity must support the data capacity and still have space for further growth. For detailed information about memory requirements and planning, see the MOT Memory and Storage Planning__section.

Storage IO
MOT is a durable database and uses persistent storage (disk/SSD/NVMe drive[s]) for transaction log operations and periodic checkpoints.

We recommend using a storage device with low latency, such as SSD with a RAID-1 configuration, NVMe or any enterprise-grade storage system. When appropriate hardware is used, the database transaction processing and contention are the bottleneck, not the IO.

For detailed memory requirements and planning, see the MOT Memory and Storage Planningsection.

Supported Operating Systems

MOT is fully aligned with the operating systems supported by openGauss.

MOT supports both bare-metal and virtualized environments that run the following operating systems on a bare-metal server or virtual machine –

x86 – CentOS 7.6 and EulerOS 2.0
ARM – openEuler and EulerOS
OS Optimization
MOT does not require any special modifications or the installation of new software. However, several optional optimizations can enhance performance. You may refer to the MOT Server Optimization – x86 and MOT Server Optimization – ARM Huawei Taishan 2P/4P sections for a description of the optimizations that enable maximal performance.
openGauss Using MOT Overview
Tags: opengauss
Published: 2023-04-12 07:08:51

MOT is automatically deployed as part of openGauss. You may refer to the MOT Preparation section for a description of how to estimate and plan required memory and storage resources in order to sustain your workload. The MOT Deployment section describes all the configuration settings in MOT, as well as non-mandatory options for server optimization.

Using MOT tables is quite simple. The syntax of all MOT commands is the same as for disk-based tables and includes support for most of standard PostgreSQL SQL, DDL and DML commands and features, such as Stored Procedures. Only the create and drop table statements in MOT differ from the statements for disk-based tables in openGauss. You may refer to the MOT Usage section for a description of these two simple commands, to learn how to convert a disk-based table into an MOT table, to get higher performance using Query Native Compilation and PREPARE statements and for a description of external tool support and the limitations of the MOT engine.

The MOT Administration section describes how to perform database maintenance, monitoring and analysis of logs and reported errors. Lastly, the MOT Sample TPC-C Benchmark section describes how to perform a standard TPC-C benchmark.

Read the following topics to learn how to use MOT –
openGauss MOT Data Ingestion Speed
Tags: opengauss
Published: 2023-04-12 07:02:37

This test simulates realtime data streams arriving from massive IoT, cloud or mobile devices that need to be quickly and continuously ingested into the database on a massive scale.

The test involved ingesting large quantities of data, as follows –

10 million rows were sent by 500 threads, 2000 rounds, 10 records (rows) in each insert command, each record was 200 bytes.
The client and database were on different machines. Database server – x86 2-socket, 72 cores.
Performance Results

Throughput – 10,000 Records/Core or 2 MB/Core.
Latency – 2.8ms per a 10 records bulk insert (includes client-server networking)
 CAUTION: We are projecting that multiple additional, and even significant, performance improvements will be made by MOT for this scenario. Click MOT Usage Scenariosfor more information about large-scale data streaming and data ingestion.
When we use dynamic URL images, we cannot get the actual height for the next/image tag.
Tags: nextjs, react
Published: 2023-04-12 07:01:18

When we use dynamic URL images, we cannot get the actual height for the next/image tag. We used "probe-image-size" npm but we cannot get the dimension of the image. How do I get the image dimension using image url.

We are using,
- react 18.2.0
- nextjs 12.3.0
Share Your Desk Decor: What Inspires You at Work?
Tags: discuss, beginners, codenewbie, motivation
Published: 2023-04-12 07:00:00

Whether you work from home or in an office, your workspace can have a big impact on your productivity and mood. That's why we want to know: what's on your desk?

Share a photo or description of your favorite inspiring or fun workspace items in the comments below! Maybe it's a motivational quote, a quirky plant, or a snuggly pet snoozing nearby. Whatever it is, we want to see it!

---

Follow the CodeNewbie Org and #codenewbie for more engaging, thought-provoking, and sometimes silly discussions just like this.
What are some common tools used in full stack development, such as version control, deployment, and testing?
Published: 2023-04-12 06:56:52

Common tools used in [full stack developer courses](https://www.geekster.in/full-stack-web-development-program) include version control systems such as Git, deployment tools like Jenkins or Docker for automating the deployment process, and testing frameworks such as Jest or Selenium for ensuring code quality and application functionality. These tools help full stack developers in managing code, collaborating with team members, automating deployment, and testing applications to deliver high-quality and reliable web applications.
openGauss MOT Resource Utilization
Tags: opengauss
Published: 2023-04-12 06:55:23

The following figure shows the resource utilization of the test performed on a x86 server with four sockets, 96 cores and 512GB RAM server. It demonstrates that a MOT table is able to efficiently and consistently consume almost all available CPU resources. For example, it shows that almost 100% CPU percentage utilization is achieved for 192 cores and 3.9M tpmC.

tmpC – Number of TPC-C transactions completed per minute is represented by the orange bar and the tpmC Y axis on the left.
CPU % Utilization – The amount of CPU utilization is represented by the blue line and the CPU % Y axis on the right.
Figure 1 Resource Utilization – Performance Benchmarks
Is it easier to work alone than to work with others?
Tags: opensource, discuss, webdev
Published: 2023-04-12 06:55:13

---
title: Is it easier to work alone than to work with others?
published: true
description: Why are there so many similar open source projects, even within the same programming language?
tags: opensource, discuss, webdev
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-04-12 06:39 +0000
---

Seeing the huge number of competing open source projects in basically every programming language raises some questions.

Primarily is it good for us?

Competition certainly drives innovation forward, but having multiple efforts that only slightly differ from each other is probably more of a waste of time and energy.

So why do so many people create libraries and end-user applications that are so similar to other solutions? Why are they not collaborating to create a better tool for both people?

Just one example, on [this site](https://jamstack.org/generators/) you can find 351 Static Site Generators. Many programming languages having 7-8 different implementations.

* Does this happen because it is easier to start a new project than to contribute to an existing one?
* Is it because, despite going on about "the community", in reality we prefer to work alone rather than cooperate?
openGauss MOT RTO and Cold-Start Time
Tags: opengauss
Published: 2023-04-12 06:49:31

High Availability Recovery Time Objective (RTO)
MOT is fully integrated into openGauss, including support for high-availability scenarios consisting of primary and secondary deployments. The WAL Redo Log's replication mechanism replicates changes into the secondary database node and uses it for replay.

If a Failover event occurs, whether it is due to an unplanned primary node failure or due to a planned maintenance event, the secondary node quickly becomes active. The amount of time that it takes to recover and replay the WAL Redo Log and to enable connections is also referred to as the Recovery Time Objective (RTO).

The RTO of openGauss is less than 10 seconds, including MOT, thanks to its Parallel Recovery mechanism.

 NOTE: The Recovery Time Objective (RTO) is the duration of time and a service level within which a business process must be restored after a disaster in order to avoid unacceptable consequences associated with a break in continuity. In other words, the RTO is the answer to the question: “How much time did it take to recover after notification of a business process disruption?“

Cold-Start Recovery Time
Cold-start Recovery time is the amount of time it takes for a system to become fully operational after a stopped mode. In memory databases, this includes the loading of all data and indexes into memory, thus it depends on data size, hardware bandwidth, and on software algorithms to process it efficiently.

Our MOT tests using ARM servers with NVMe disks demonstrate the ability to load 100 GB of database checkpoint in 40 seconds (2.5 GB/sec). Because MOT does not persist indexes and therefore they are created at cold-start, the actual size of the loaded data + indexes is approximately 50% more. Therefore, can be converted to MOT cold-start time of Data + Index capacity of 150GB in 40 seconds, or 225 GB per minute (3.75 GB/sec).

The following figure demonstrates cold-start process and how long it takes to load data into a MOT table from the disk after a cold start.

Figure 1 Cold-Start Time – Performance Benchmarks


Database Size – The total amount of time to load the entire database (in GB) is represented by the blue line and the TIME (sec) Y axis on the left.
Throughput – The quantity of database GB throughput per second is represented by the orange line and the Throughput GB/sec Y axis on the right.
 NOTE: The performance demonstrated during the test is very close to the bandwidth of the SSD hardware. Therefore, it is feasible that higher (or lower) performance may be achieved on a different platform.
Bazı cihazlardaki ekran titremesi sorunu çözümü
Published: 2023-04-12 06:49:04

Bazı ekran kartları için (Intel ve Nvidia olabiliyor) ekranda titreme oluşması durumu oluşmaktadır. Bu sorunun çözümü için Linux çekirdeği başlatılırken bir parametre girilmesi yeterli olmaktadır.

Dolayısıyla GRUB menüsünün ayarlarının düzenlendiği dosya açılır "/etc/default/grub". Bu dosya içerisinde aşağıdaki içeriğe sahip satır bulunur.

```
GRUB_CMDLINE_LINUX_DEFAULT=
```

Değişkenin içeriği normalde "quiet splash" gibi bir ifade olup aşağıdaki gibi düzeltilmesi gerekecektir:

```
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_dc=0"
```

Bu şekilde ayar yapıldıktan sonra grub listesinin yenilenmesi için aşağıdaki komut uygulanır.

```
sudo update-grub
```

Bu adımdan sonra bilgisayar yeniden başlatılır ve artık GRUB üzerinden seçilen Linux sistemlere girerken bu sorun çözülmüş olunur.
openGauss MOT Low Latency
Tags: opengauss
Published: 2023-04-12 06:47:47

The following was measured on ARM/Kunpeng 2-socket server (128 cores). The numbers scale is milliseconds (ms).

Figure 1 Low Latency (90th%) – Performance Benchmarks

MOT's average transaction speed is 2.5x, with MOT latency of 10.5 ms, compared to 23-25ms for disk tables.

 NOTE: The average was calculated by taking into account all TPC-C 5 transaction percentage distributions. For more information, you may refer to the description of TPC-C transactions in the MOT Sample TPC-C Benchmark section.

Figure 2 Low Latency (90th%, Transaction Average) – Performance Benchmarks
How to Implement CLIP AI: A Step-by-Step Tutorial for Beginners
Tags: python, deeplearning, tutorial
Published: 2023-04-12 06:31:36


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jqhakcpoyq4vjm029jts.png)
Check out my new tutorial on implementing CLIP AI, the neural network that connects text and images! In this step-by-step tutorial, I'll walk you through installing the relevant Python libraries and show you how to test CLIP on your own images. 
With zero-shot learning capabilities and high performance on ImageNet, CLIP is a valuable tool for businesses and personal projects alike.

If you are interested in learning modern Computer Vision course with deep dive with TensorFlow , Keras and Pytorch , you can find it here  : http://bit.ly/3HeDy1V
Perfect course for every computer vision enthusiastic

Before we continue , I actually recommend this book for deep learning based on Tensorflow and Keras : https://amzn.to/3STWZ2N

The link for the tutorial is here: https://youtu.be/jSIBRvY-9Bw

You may find links for all instructions files, and sample images in the video description.

Enjoy
Eran
#CLIPAI #NeuralNetworks #NaturalLanguageProcessing #ComputerVision #Python #Tutorial #ImageAnalysis #ObjectDetection #DeepLearning #ArtificialIntelligence #MachineLearning #TransformativeTechnology
What are some popular front-end frameworks used in full stack development?
Published: 2023-04-12 06:09:06

Check more at [courses on web development](https://www.geekster.in/full-stack-web-development-program) Some popular front-end frameworks used in full stack development include React, Angular, and Vue.js. These frameworks provide developers with pre-built components, libraries, and tools to efficiently create interactive user interfaces and optimize front-end development workflow.
How to Learn React — A step-by-step guide from beginner to advanced.
Tags: react, programming, javascript, tutorial
Published: 2023-04-12 06:08:15

Are you a computer science student who is familiar with react developers? Do you find the development of reactions fascinating? If so, this article is for you. 

We will assist you with the react developer roadmap, which will guide you through your journey from novice to the skilled and experienced developer over time.

Needless to say, the more you learn, the faster you will advance as a developer. [Online web development course](https://www.geekster.in/full-stack-web-development-program) can be helpful if you are beginner.


**React Developer **
React.js/React is a comprehensive Javascript library used to create user interfaces or the front-end of a web application. React is declarative, simple, component-based, fast, easy to learn, extensive, and supports the application's server-side. 

It has also piqued the interest of the open-source community. React is currently used by companies such as Netflix, Instagram, Uber, Airbnb, Reddit, and Linkedin, among others, and is supported by Facebook.
 
Now, let's look at the steps you can take to become a react developer in the future.



_The Fundamentals_
Whatever library or framework you choose to learn for web development, it is critical to understand the fundamentals of the web, namely HTML, CSS, and JavaScript.



1. HTML: Hypertext Markup Language (HTML) is the industry standard for creating documents that will be displayed in browsers.
JavaScript (JS) is a simple programming language used to create network-based applications. JavaScript is compatible with the ECMAScript specification.

CSS: Cascading Style Sheets (CSS) is a styling language used to describe the presentation of web pages.


2.Skills for Common Development
 
To become a developer, you will need to learn a number of common skills, which include:
GIT (Version Control System) (Version Control System)
The HTTP/HTTPS Protocol
Terminal Application
Algorithms & Data Structures
Patterns in Design


3.React
You cannot become a react developer unless you first learn to react. For anyone who wants to become a React developer, learning the fundamentals as well as every other feature of React is critical. Also, remember to learn to react from the online web developer course offered by Geekster.


4. Create Tools
Build tools are programs or pieces of software that automate the creation of executable applications from source code. It includes code linking, compilation, and packaging into executable form. Webpack, parcel, and Rollup are examples of build tools.



**Conclusion**
 
We hope this article has provided you with a comprehensive list of tools and technologies for learning React. You may already be familiar with a few technologies, languages, or tools. 

You can easily progress now that you know which technology to learn next.  So, if you want to be a successful developer in the future, never stop learning!
How to Auto Apply Coupon Code in Magento 2
Tags: webdev, magento, magento2tutorials
Published: 2023-04-12 05:45:17

Magento 2 is a broadly used web based business stage that offers a large number of instruments and functionalities to help dealers in fostering their internet based store. Giving limits and coupon codes to clients is a pivotal figure making progress in web-based business as it can assist with expanding deals and upgrade consumer loyalty. 

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

Magento 2 offers the choice to both make coupon codes in Magento 2 as well as auto-apply them, making it helpful for traders to give limits to their clients in an issue free way.

Our blog entry expects to offer a far reaching guide on the most proficient method on **_how to auto apply coupon code in Magento 2_**, empowering dealers to easily give limits and special proposals to their clients. Robotizing this cycle can assist vendors with saving important time while guaranteeing that the right limits are applied to each request, which can fundamentally influence driving deals and at last upgrade the general client experience for online customers.

For more info, visit **_https://webguru.dev/how-to-auto-apply-coupon-code-in-magento-2/_**
Synthetic Textures & Filters
Tags: codepen
Published: 2023-04-12 05:44:22

<p>It is a  first filtration app, you can filter your images by giving validHttps links only in the input section and waiting for some time, it takes a lot of time to load. </p>

Go and check it once, I want the feedback. 

{% codepen https://codepen.io/safikumar00/pen/poxJpYL %}
Vue Reverse Job board
Tags: vue, career
Published: 2023-04-12 05:41:02

HI,

I am developing a Vue reverse job board. Its where companies reach out to you. 

You can create Developer profile and fill out information about yourself and about your projects. Then you will get contacted by companies if you seem fit for them. 

You can try it out at https://www.vuedevs.com/ 

Please give me feedback if you have time :D