teleren/devto huggingface dataset:
Hacktober 2021 results
Tags: opensource, javascript, hacktoberfest, webdev
Published: 2021-11-01 19:19:40

With Hacktober coming to an end, we would like to take a moment to appreciate the overwhelming support and contributions we've seen the past month. It was our debut in this year's fest, and we feel like we've kicked the door in with our powerful community.

## Hacktober 2021 community achievements

We are incredibly humbled by the participation of so many new and existing community members over this past month. As a young company, it is incredible to see how old, more experienced community members helped guide new ones getting started while others teamed up to find solutions and helped extend the plugin suite of Medusa.

In the end, the effort led to the production of almost 100 pull requests and three new plugins. Likewise, many new developers joined our community, and we are excited to see you build more with Medusa in the future.

A quick glimpse of the results achieved during this October:

- ~100% new Discord members
- 64 merged pull requests
- 21 pull requests in review

Plugins in development:

- Strapi
- Algolia
- Elastic
- ShipBob

We are grateful for all your contributions!

## **Time to give back**

**Swag.** As described in the [Hacktoberfest announcement article](https://dev.to/medusajs/medusa-hacktoberfest-2021-13eb), every contributor will receive special Medusa swag as an appreciation gift. Our small token of gratitude to all of you that took the time to participate in the Hacktober. The send-outs will happen during November - we cannot wait to send them out.

**Wall of appreciation.** Our [website](https://www.medusajs.com/) will soon feature a wall of appreciation displaying all Medusa contributors. There is no fix or feature too small for this wall, so no reason to hold back if you want to see yourself in there.

**Community chat.** At last, we wanted to invite you all to an in-person Zoom chat on Friday the 5th of November. Here we will gladly welcome everyone from our community to a chat about commerce, Medusa, and all things community-related. For more info, please follow along in our [Discord](https://discord.gg/F87eGuwkTp) during the following days.

![Medusa merch](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rgs81mhjdonw81gf7v6k.png)

### There is still an opportunity to be involved in Medusa development

The opportunity to contribute and get involved in the development process of Medusa is not limited to Hacktoberfest. We will keep welcoming new community members just as we've done the past month. You can follow our [contribution guide](https://github.com/medusajs/medusa/blob/master/CONTRIBUTING.md) to get started.

We strive to always have issues that are up for grabs so that everyone can take part. If you have your ideas or feature requests, you can find the entire Medusa team on our [Discord server](https://discord.gg/WCZFV5v3j4).

Hope to see you there!
How to Reset Password in Kali Linux 2021
Published: 2022-02-19 14:43:18

---
title: How to Reset Password in Kali Linux 2021
published: true
date: 2021-11-01 19:15:17 UTC
tags: 
canonical_url: https://codecaliper.me/how-to-reset-password-in-kali-linux-2021
---

Kali Linux is the most popular security operating system of today, and it is the operating system that most programmers use for penetration testing. Pen-testing is a practice in which people check their own systems and their own architectures for vulnerabilities. Debian-based, it is widely regarded as one of the best options for hackers. Kali Linux was developed by offensive security as a rewrite of Backtrack, a Linux distribution focused on security. Kali Linux is a distribution with many hacking and penetration tools that are current and are included as part of the distribution by default.

Kali Linux requires a minimum of 20GB of storage space and 1GB of RAM for its installation and operation. The operating system uses a number of tools that require graphics hardware acceleration.

**Reset Root Password**

If you have forgotten your Kali Linux system password all you need to do is follow the steps below.

1. Restart the system
2. Enter the GRUB menu and cancel the timeout with any key on the keyboard. So, the system won't boot into Kali. 
3. Select the 'Advanced options for Kali GNU/Linux' option and press 'E' on the keyboard.
4. Go to the line with 'linux' on the command line. Replace 'o' with 'w' in the Linux line so that it becomes 'rw\_single'. At the very end of this line, hit the space bar on your keyboard and type 'init=/bin/bash'.
5. Save the changes by pressing Fn + F10.
6. Enter 'passwd' into the command emulator and press Enter. 
7. Enter your new password next to the 'New Password' option and press Enter. Once you have retyped your new password, you will see the message 'password updated successfully'.
8. You can now return to the login screen and log back into your Kali Linux System.
I made an app to enjoy Halloween🎃🦇🕸
Tags: nextjs, typescript, aws
Published: 2021-11-01 19:00:22

Hey guys,

It was **Halloween** day, but in this self-restraint mode, it's hard to go out and enjoy dressing up in costumes.
So I made an app that lets you enjoy Halloween online!

Halloween has already passed, but you can even enjoy this app!

[![Image from Gyazo](https://i.gyazo.com/fe4f1b710173805406e395bf961f85eb.gif)](https://gyazo.com/fe4f1b710173805406e395bf961f85eb)

URL: https://ohmyface.ai/

## How to use

The usage is as shown in the following slide.

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

First, when you visit to https://ohmyface.ai/, you can choose a favorite style from this week's popularity ranking or the overall ranking.

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


This ranking is based on the number of styles converted, and is updated daily at 9pm (JTC).

Once you have selected a style, all you have to do is just upload the image you want!
The loading process will run automatically and the image will be converted.

Don't worry, the uploaded images are not retained by the server.

## Composition

The configuration is as follows.

Backend...python
Infrastructure...AWS (API gateway, Lambda, dynamo DB, s3)
Frontend...Next.js + TypeScript + Chakra UI

In order to develop the ranking, I created an API to post which style the image was converted in, along with a timestamp, then store the data in dynamo.

In order to aggregate the data, I create a Lambda function that returns the style data sorted by the number of conversions, and save the results in another table in dynamo.
That Lambda function is run once a day by EventBridge.

Then, I also created an API to access the dynamo table where the aggregate results are stored and retrieve the data, and call it from the client side to display the ranking order.

For the frontend, I used the usual Next.js + TypeScript, but this time I used [Chakra UI](https://chakra-ui.com/) for the first time.
It was very easy to use, and I'll use again for sure!

## That's it!

Halloween is over, but I think it's an app that can be enjoyed even after Halloween, so I'd be happy if you could play it!

## Contact

Please send me a message if you need.

yuiko.dev@gmail.com
https://twitter.com/yui_active
Capturing group misconception in Regex
Tags: regex
Published: 2021-11-01 18:47:31

### Capturing group misconception in Regex

---

<u>Groups can be two types</u> :

- <u>capturing</u> (used for backreference, *some particularly significant meaning internally*) |-- capturing groups might be labelled with names , but not mandatory ; 
- <u>**non**-capturing</u> (used for idiomatic organization , *none of particularly significant meaning internally*) : seems like many years capturing groups were used for organizing without intention to exploit **backref**erencing feature included : this means it was exploited as wrong tooling leaving backrefs behind the scene unused (unless someone clever enough but have not shared this idea with us, well till now... )

| | | |
| --- |:---:| ---:|
|     | ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1635789608891/2y-SgUa8S.png) |  |

Let's examine RegExp constructor a bit :

```javascript
new RegExp() // output : /(?:)/ as if ... 
new RegExp("(?:)") // ... implicitly done this way (default)

// however if done that way:..

new RegExp("()") // this becomes capturing if explicitly defined
```

Examples taken from [stefanjudis](https://www.stefanjudis.com/today-i-learned/backreferences-in-javascript-regular-expressions/) (*for educational purpose only*) :

**Example 1** (capturing with backreference)

```javascript
// capturing group has signature of () – a.k.a. parenthesis
const re = /(\w+)\s(\w+)/;
const str = 'Jane Smith';
const newstr = str.replace(re, '$2, $1');
console.log(newstr);  // Smith, Jane
```

>Please pay extra attention at possible signatures of backrefs
- for literal regex we would use `\1\2`
- for string regex we use "$1", "$2" etc.

**Example 2** (non-capturing : *let's say backreferencing is not intended to be used*) 

```javascript
// non-capturing group has signature of (?:)
const re = /(?:\w+)\s(\w+)/;
const str = 'Jane Smith';
let newstr = str.replace(re, '$2, $1');
console.log(newstr);  // $2, Jane
// to prevent dollar sign of $2 outputting just do the following :
newstr = str.replace(re, '$1');
console.log(newstr);  // Jane
```

**TL;DR** : if backref required e.g. for string replacement , follow capturing on Example 1 , otherwise use implicitly default non-capturing as shown in Example 2

> Congrats , you just learn very basics of groups, capturing & backreferencing !

---

If any typos found and (or) suggestions could be made, please leave it in the comment section below . Thank you and see you in the next one !
#2 Follow up on Kirby-Boilerplate
Tags: javascript, nextjs, react, opensource
Published: 2021-11-01 18:39:53

In case your miss the last post [click here](https://dev.to/fabiengreard/your-next-boilerplate-41fe)

TLDR; I updated [kirby-boilerplate](https://github.com/FabienGreard/kirby-boilerplate) an open source boilerplate using the latest :fire: tools :fire: for building a web app, with complete automated ci, cache. unit and e2e tests ready.

As a side hustle, I teach amazing people willing to be software engineers, I used Kirby as a resource (totally opinionated and optional) to help them build their project, this help me to focus on improving my boilerplate. 

There were 2 main issues: 

- People find it hard to start the boilerplate
- Hard to work with something else than GraphQL

And I have to admit, there was some bug or should I say unwanted features :D 

For the first issue, I added a bootstrap script to help newcomers to launch the project right after a git clone, also I reduce the number of scripts available making things easier and simpler to use.

Now comes the second one, some of my colleagues I work with in the past already mention they were using something called [react-query](https://react-query.tanstack.com/) for managing their request both in GraphQL and REST endpoints. So after a long dig into their API, I started to implement it and run some tests. 

Should I say now that I'm in complete love with what the react-query team did? not only it works (should I say very fracking well ?) It is incredible compressed 9.1 Kb (@apollo/client) vs 12.6 Kb (react-query).

I may even write a post soon about how managing cache is so much easier with react-query, no more `cache.write` .... madness with apollo. 

in case you want to check how react-query manage it [click here](https://react-query.tanstack.com/guides/updates-from-mutation-responses)

hence, this was the recent update on Kirby !.

I am looking for contributors and new ideas, shortly I will focus on adding a cli for setting things up.

So please, have a look at it and help me build the next true opensource boilerplate! [kirby-boilerplate](https://github.com/FabienGreard/kirby-boilerplate), because we are all tired of building over the same thing again and again.
Using Font Ligatures in VS Code
Tags: vscode, productivity
Published: 2021-11-01 18:36:40

---
title: Using Font Ligatures in VS Code
published: true
description: Font ligatures combine multiple characters into a single unique character. Some fonts provide ligatures specifically for software development.
canonical_url: https://worldofzero.com/posts/enable-font-ligatures-vscode/
tags:
  - vscode
  - productivity
//cover_image: https://dev-to-uploads.s3.amazonaws.com/i/l3iggkf8snkk158mm0fm.png
---

Font ligatures combine multiple characters into a single unique character. Some fonts provide ligatures specifically for software development.

![Font Ligatures in VS Code infographic](https://dev-to-uploads.s3.amazonaws.com/i/l3iggkf8snkk158mm0fm.png)

Some free fonts that support ligatures are:

| Font | Reference |
| ---- | --------- |
| Cascadia Code | [link](https://github.com/microsoft/cascadia-code) |
| Fira Code | [link](https://github.com/tonsky/FiraCode) |
| JetBrains Mono | [link](https://www.jetbrains.com/lp/mono/) |
| Iosevka | [link](https://github.com/be5invis/Iosevka) |
| Hasklig | [link](https://github.com/i-tu/Hasklig) |
| Monoid | [link](https://larsenwork.com/monoid/) |
| Victor Mono | [link](https://rubjo.github.io/victor-mono/) |

To enable font ligatures in Visual Studio Code you will need to edit the `settings.json` file. To do this open the VS Code settings (File -> Preferences -> Settings) select the Text Editor group and Font settings. Replace the name of the font with the font you would like to use. For example if you would like to use Cascadia Code then replace the font with `Cascadia Code`. You may include fallback fonts that will be used if the first font is not available. `Cascadia Code, Fira Code` will prioritize Cascadia Code but use Fira Code if Cascadia Code isn't available on the current machine.

Once you've configured the font you'll need to explicitly enable ligatures. This is a separate option and requires you to modify the `settings.json` file directly. You will need to add the `"editor.fontLigatures"` setting to your `settings.json` settings file. Once this is done your settings should include two lines that look something like this:

```json
{
  "editor.fontFamily": "*** Your ligature enabled font ***",
  "editor.fontLigatures": true,
  "...": "your other settings",
}
```

Once you've made these changes you should be ready to start taking advantage of ligatures in your code.

> Note: Different fonts may support a different set of ligatures.
Disaster Recovery Architecture
Published: 2021-10-29 09:13:35

Customers always asks to **build a resilient system** so that business loss can be avoided in case of disaster which may be due to any one of earthquakes or floods, technical failures such as power or network loss, or human actions such as inadvertent or unauthorized modifications. 
# Any event that prevents a workload or system from fulfilling its business objectives in its primary location is classified a disaster.
# Important factors that needs to be considered while building DRA, they are
- RTO (Recovery Time Object): The time it takes to restore the service to normal
- RPO (Recovery Point Objective): The duration for which data loss can be tolerated. This also decides the frequency of Snapshot or backup.
- Recurring costs for DR: Since the system availability would be required in case of disaster so there would be cost involved to support backup and separate environment as well. RPO and RTO decide the cost for backup and recovery.

Types of Architecture for DR in Cloud
1. Multi AZ (Availability Zones) multiple data centers in a region
2. Multi Regions within Geographical boundary
3. Hybrid Model - Cloud and on-premise Datacenter

Backend supporting services are not exposed over internet but uses private network for security and cost reduction.

DR Strategies
1. Backup and Restore (Cold Standby) - where RTO and RPO are in hours for restoring backup and warming it up. for sake understanding, it may cost $ (It is active-passive)
2. Serverless or Hibernation - where RTO and RPO are in 10s of minutes for scaling and warm up, it may cost $$. (It is active-passive)
3.  Warm Standby - where RTO and RPO are in minutes. always running but in smaller sizes and scales in case of events. it may cost $$$. (It is active-passive)
4. Multi-site active-active: where RTO and RPO are in real time. It is used for business critical applications. it may cost $$$$
Paradox of the week: Automating the boring parts of your work is fun!
Tags: python, automation, packaging, cli
Published: 2021-11-01 18:35:04

Sometimes you even learn something new along the way - read about how I automated the creation of table of contents in markdown files with a CLI tool in my new medium article!

https://medium.com/@cribbersix/building-a-python-cli-tool-to-extract-the-toc-from-markdown-files-ab5a7b9d07f2
Do you own a domain name without a purpose? Let me give you a project for it!
Tags: watercooler, discuss, webdev, startup
Published: 2021-11-01 18:28:39

In a rush? Head down to the comments and share a domain name you own without a purpose, I (and hopefully some others) will give you a fun side project idea for it!

## For those not in a rush!
I own quite a few domain names. I recently wrote about my emoji domain [👩‍💻👨‍💻.to](https://dev.to/inhuofficial/i-own-to-2lkc), I also [own a domain name purely for the fact it sits on the million dollar homepage](https://dev.to/inhuofficial/i-own-a-tiny-piece-of-internet-history-plus-a-little-puzzle-to-keep-you-busy-this-weekend-559) and is a part of internet history! 

I even bought a domain name a few years ago that I still think could be great for a codepen competitor - **codersplayground.co.uk**!

 Oh and don't forget [ultimatemot*******kingwebsite.com (<b>Warning, do not click this link if swearing offends you</b>)](https://ultimatemotherfuckingwebsite.com), which is probably the naughtiest domain I own and actually use!

Today, for the first time in a while, I bought a domain name that not only fit a big side project beautifully, but would also work for loads of different use cases.

It is probably the "best" (best when talking about commercial viability and an obvious use case) I have bought. In fact, I am that amazed it wasn't taken it prompted this whole article!

The domain is:

---

<center>[a2z.dev](https://a2z.dev)</center>

---

I will be writing loads about that domain as it will feature heavily in my content creation strategy over the next year, but it had me thinking about all the domains I have bought over the years that maybe weren't as great! 

Then I realised I can't be the only one with random domains (or really good domains that you are surprised weren't taken) sat idle and needing a purpose!

So that leads me to the question:

## How many of you have random domains with no purpose?
As I said I have several domains that are good (and some not so good ones!), but have no purpose at the moment.

**And I certainly can't be the only one.**

So put your unused domain name into the comments below and I will come up with a fun project and possibly a serious project as well that you could build around that domain name!

I want to see who has a) the best domain name (can you beat a2z.dev?) and b) the silliest domain name.

Hopefully a bit of fun coming up with ideas for how to use a domain name will turn into a silly side project, that then turns into something beautiful and massive, and we can all say that it started here and we helped make it happen! 😁

---

<center><strong>Add your domain name(s) below that you want a project for and I (and hopefully others) will come up with a killer idea!</strong></center> 

---
Jira CLI: New version adds support for on-premise jira installation
Tags: go, opensource, showdev, bash
Published: 2021-11-01 18:23:15

{% github ankitpokhrel/jira-cli %}

A new version of Jira CLI, v0.1.0, is now available with most requested support for the on-premise jira installation.

### What's Changed

- feat: On-premise/local jira installation is almost [fully supported](https://github.com/ankitpokhrel/jira-cli/issues/138) 🎉
- feat: Allow Tab to toggle focus between the sidebar and the contents screen
- feat: Command to generate UNIX style man pages for section 7
- fix: Cursor in terminal disappears if command exits with error
- Some minor enhancements, fixes and upgrades


Full change log can be found in the [release page](https://github.com/ankitpokhrel/jira-cli/releases/tag/v0.1.0).
Variable Hoisiting in javascript
Tags: todayilearned, discuss, javascript, watercooler
Published: 2021-11-01 18:17:48

Hey! So today I was reviewing some of the basic syntaxes of javascript and I came across javascript hoisting. It completely surprised me. I have used javascript before (mostly ES6 for variable declaration) but never came across hoisting (🤔 maybe I did but don't remember).

For anyone wondering hoisting in js is a default behavior where all variable declarations(those declared using the *var* keyword) are moved to the top of the scope before code execution

![variable hoisting illustration](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pu0bnw7onsmefcijndja.png)

So the advantage of this is that you can use a variable even before declaring it and you can declare it where ever you wish(within its given scope).

However with ES6 (*let* and *const*) this is prevented that is a variable must be declared before being used.
ActionForms.io just launched on AppSumo!
Tags: webdev, javascript, productivity, programming
Published: 2021-11-01 18:13:41


## Hello! Marc here.

We’ve made it to the big leagues!

**ActionForms.io just launched on AppSumo!**

What is AppSumo? It’s the leading digital marketplace for entrepreneurs. We’ve listed our product  [HERE](https://appsumo.com/actionformsio?utm_source=email)​

Check us out, **try our product**, and leave us an  **honest review**.

We want to grow and improve our product—and we can’t do it without you.

​

[ActionForms.io just launched on AppSumo! 🚀](https://appsumo.com/actionformsio?utm_source=email)