teleren/devto huggingface dataset:
SETUP (SFTP) Open SSH Server on Windows
Tags: sftp, openssh, windows, setup
Published: 2021-01-15 20:21:46

## **Requirements**
Windows Server 2019 or Windows 10 version 1809+

## **Install OpenSSH**

Press the Win + I keys to open the settings. Navigate to Apps -> Apps and Features -> Optional Features.

O the Installed features search for "OpenSSH" you will have the option to install the OpenSSH client or OpenSSH server.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/z9dtqhvcmdr1wnpq9mqr.png)

## **Configuring the SSH Server**

Press Win + R and type powershell; Run powershell as administrator, the following commands is responsible for having minimum consistency in the SSHD service:

###To start the SSHD service automatically, use the command:

```
Set-Service -Name sshd -StartupType 'Automatic'
```

###To setup the SFTP firewall port 22 Inbound, use the command:
```
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
```

## **SSH (RSA) Key Generation**

Two keys will ne generated for the client(private) and server(public). 

Run powershell as administrator, to generate a pair of RSA 2048 keys use the command:

```
ssh-keygen
```

Select a key file location and enter the password for the new private key. The password will be required for SSH authentication. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/2jb3pj8ues23oq5okyyp.png)

The keys will be created in the specified directory:
* id_rsa(private key)[client]
* id_rsa.pub(public key)[server]

## **SSH-Agent Service**

The ssh-agent is a key manager for SSH. It holds your keys and certificates in memory, unencrypted, and ready for use by ssh.

Run powershell as administrator, to startup the ssh-agent service use the command: 

```
Set-Service -Name ssh-agent -StartupType 'Automatic'
Start-Service ssh-agent
```

Run powershell as administrator, to include the private key to the ssh-agent database:

```
ssh-add "{path}\.ssh\id_rsa"
```



## **Check available ports for SFTP**

Run powershell as administrator, use the command:

```
netstat -na | Select-String "22"
```


## **Uninstall the SSH Server**

Run powershell as administrator, use the command:

```
Stop-Service sshd
```

```
Remove-NetFirewallRule -DisplayName "OpenSSH Server (sshd)"
```

```
Stop-Service ssh-agent
```
<!-- 
References:
https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse

http://woshub.com/using-ssh-key-based-authentication-on-windows/
-->
First-Rails-Project
Published: 2021-01-15 20:18:32

I was warned before starting a rails project for the first time that it would be easier to make knowing the background Sinatra knowledge and having already created a Sinatra application, but not to take all of the built-in code for granted. Being that I have gone through building a Rails application I now know what they meant. I will say that even though there were a lot of similarities between the two and that rails has so many wonderful built-in functions, when build it out from start to finish you quickly see just how much more complex it is. One thing that shows that complexity is how rails has a completely different file for just that routes you’ll need, leaving the controllers as plain ruby classed that holds our actions and turns them into ruby methods instead of having it all displayed in the controller.

 
Some of the things built in rails that made the process of building my project just a little more awesome were the error messages available through validations in my models, and the rails generators you could type out in the terminal. The validations helped me with not only not having to put the errors in my code but also with my indecisiveness of what I want my error to say. When it comes to the generators, I used the resource option for the most part, it gave me a controller, model, created a migration table, and gave me the basic routes for each command I used.

 
For each project that I do I feel that much closer to my goal of being able to call myself a master-coder . I can’t wait to take my simple applications and turn them into something big and beautiful I can be really proud of
How to build signed apk from android studio for flutter
Tags: flutter, android
Published: 2021-01-15 19:58:58

Step-1
In Android Studio's tab bar, click on Tools and then Flutter and then Open Android module in Android Studio if you don't find Android module in Android Studio, Open (open for editing in android studio)
Step 2
Open the project in a new window 
Step 3
Having opened the project, click on Build and then Generate Signed Bundle / APK ...
Step 4
Select Create new.. option to generate new Signed key (When you release your app First Time). But you can choose existing if you have already generated a signed key
Omnipresence of Bitcoin within Corporate Treasuries
Tags: bitcoin, money, cryptocurrency, investing
Published: 2021-01-19 08:31:52

---
title: Omnipresence of Bitcoin within Corporate Treasuries
published: true
date: 2021-01-15 19:57:31 UTC
tags: bitcoin,money,cryptocurrency,investing
canonical_url: https://medium.com/coinmonks/omnipresence-of-bitcoin-within-corporate-treasuries-7b7408788770
---

[![](https://cdn-images-1.medium.com/max/600/1*ON4IXIMRME3mWTgjGJkoJg.png)](https://medium.com/coinmonks/omnipresence-of-bitcoin-within-corporate-treasuries-7b7408788770?source=rss----721b17443fd5---4)

What do companies such as Square, MicroStrategy Inc, and Stone Ridge Holdings Group have in common? They’re all multibillion-dollar…

[Continue reading on Coinmonks »](https://medium.com/coinmonks/omnipresence-of-bitcoin-within-corporate-treasuries-7b7408788770?source=rss----721b17443fd5---4)
I made a recommendation system for Stack Overflow unanswered questions
Tags: showdev, python, project
Published: 2021-01-15 19:56:43

## Background

For me, contributing on Stack Overflow was a big step out of the comfort zone. There is already so much questions answered and so many experts there, that is not easy to find questions to answer. Anyways, I managed to make my contributions and got used to the flow of the site.

However, the activity is pretty constant, and it is easy to get lost in the amount of questions that you can’t answer, be it for lack of knowledge, time, energy or question quality. For this reason, I thought it would be cool to automate the process of searching and filtering questions, based on my previous answers. So that is what Answerable is: a recommendation system on unanswered questions on Stack Overflow.

## How it works

![preview](https://dev-to-uploads.s3.amazonaws.com/i/herwf9hrsro5b0pbfbpx.png)_Preview_

Answerable makes use of the [StackExchange API](https://api.stackexchange.com/) and StackOverflow RSS feeds to gather your answers on the site and use them to sort the new questions by similarity with the ones you've already answered. 

Optionally, it needs you to download certain information of your profile that can't be respectfully scraped, to improve the filtering of the feed.

## The documentation

You can find all the relevant information in the README and the wiki of the repository, along with the contributing guidelines.

## The code

You can find the repository in GitHub under the MIT License!

{% github MiguelMJ/Answerable no-readme %}
Non-Custodial Crypto Wallets: Six Types Explored
Tags: cryptocurrency, tezos, bitcoin, ethereum
Published: 2021-01-19 08:32:06

---
title: Non-Custodial Crypto Wallets: Six Types Explored
published: true
date: 2021-01-15 19:52:53 UTC
tags: cryptocurrency,tezos,bitcoin,ethereum
canonical_url: https://medium.com/coinmonks/non-custodial-crypto-wallets-six-types-explored-a8bc1187cf4a
---

[![](https://cdn-images-1.medium.com/max/1024/0*vgghmmyhBR6oUEnt.jpg)](https://medium.com/coinmonks/non-custodial-crypto-wallets-six-types-explored-a8bc1187cf4a?source=rss----721b17443fd5---4)

With Bitcoin attracting unprecedented interest and decentralised finance taking the crypto world by storm, it is a good time to expand…

[Continue reading on Coinmonks »](https://medium.com/coinmonks/non-custodial-crypto-wallets-six-types-explored-a8bc1187cf4a?source=rss----721b17443fd5---4)
Crio Winter of Doing
Published: 2021-01-15 19:42:05

Hello everyone my name is Akash Patel, computer science and engineering student at Gautam Buddha University, Greater Noida. I am an open source enthusiast. In this blog I'm going to describe about my Stage-1 journey of Crio-Winter of Doing.

![Crio-Winter of Doing](https://dev-to-uploads.s3.amazonaws.com/i/fnh7fbc17oylgbp9gsuc.png)

#### What is Crio-Winter of Doing?
Crio-Winter of Doing is a one of a kind program focused on bringing together budding engineering talent to work on challenging projects for the most exciting startups in the country. It is India’s largest tech externship program for developers.


#### What is an externship?
An externship is a short, unpaid, and informal internship where students spend anywhere from a single day to a few weeks getting 
exposure to what its like to work at a company. The word externship is a hybrid of “experience” and “internship”.

#### What I learnt in stage-1?

Following are the topic which I learnt practically in stage-1 of Crio-Winter of Doing.

#### HTTP : 	
HTTP stands for Hyper Text Transfer Protocol.
Communication between client computers and web servers is done by 
sending HTTP Requests and receiving HTTP Responses.

#### Rest: 
REST stands for REpresentational State Transfer.
An **API** is an application programming interface. It is a set of rules that allow programs to talk to each other. The developer creates the API on the server and allows the client to talk to it.

**REST** determines how the API looks like. It stands for “Representational State Transfer”. It is a set of rules that developers follow when they create their API.

#### Linux : 
Linux is an operating system. An operating system is software that manages all of the hardware resources associated with your desktop or laptop. To put it simply, the operating system manages the communication between your software and your hardware.

####AWS :
AWS (Amazon Web Services) as a secured cloud services platform that offers compute power, database storage, content delivery and various other functionalities. To be more specific, it is a large bundle of cloud based services.

#### GIT : 
Git is a distributed version-control system for tracking changes in any set of files, originally designed for coordinating work among programmers cooperating on source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows.

Also best thing about Crio-Winter of Doing is that is have a huge community on slack where all the members are very helpful and they are always ready to help.
Basic Hooks in React - useContext()
Tags: react, webdev, javascript, beginners
Published: 2021-01-15 19:38:30

This blog post continues the series about [React Hooks](https://reactjs.org/docs/hooks-reference.html ).

Here we are exploring one of basic and important hooks in React - **useContext()**.

## What is useContext()?

**useContext()** is JavaScript function, which lets you read the **context** and subscribe to its changes in *functional component*.  

If you are not familiar with React Context object, I suggest you  to read about [Context API](https://dev.to/olenadrugalya/managing-state-with-react-context-4h2h) first before you proceed further with the article.

## How and when use useContext()

To use this hook, you need to import it first from React library like this:

```react
import {useContext} from 'react';
```
You can use this hook without import as well like this - `React.useContext()`, for me it's just more convenient to import and destructure first this function and then use it when need in the code.

Than we call useContext() function, which accepts **context** object as argument and returns **current context value**:

```react
const contextValue = useContext(MyContext);
```
The **context** object should be created above the useContext() hook before the hook is called (or imported from another file).  

We use useContext() in functional component the same way as we would use Context API, except that the hook works with a MyContext.Provider and MyContext.Consumer component in one call.

Let's consider we are building app where we have a button and by clicking on it the status of authentication is changed from Yes to No. 

First we need to create Context:
```react
// Creating the context object and passing the default values. 

export const authContext = React.createContext({status:null,login:()=>{}}); 
```

Now we import Context to our file and use it's values anywhere we find it necessary:
```react
import {AuthContext} from './authContext';
import {useContext} from 'react';

export const Auth = () =>{

const auth = useContext(AuthContext); 

return ( 
    <> 
      <h1>Are you authenticated?</h1> 
      {auth.status ?  <p>Yes you are</p> :  <p>No you are not</p> 
} 
      <button onClick={auth.login}>Click To Login</button> 
    </> 
  ); 
}
```

## Conclusion
The React hook useContext() provides you with a functionality to avoid props drilling in the components tree and use Context object in functional component in one call.

Thank you for reading my blog. Feel free to connect on [LinkedIn](https://www.linkedin.com/in/olenadrugalya/) or [Twitter](https://twitter.com/OlenaDrugalya) :)

<a href='https://ko-fi.com/J3J42JOOA' target='_blank'><img height='12' width=30% style='border:0px;height:12px;' src='https://cdn.ko-fi.com/cdn/kofi1.png?v=2' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
Next Level Next.js
Tags: nextjs, react, graphql
Published: 2021-01-15 19:31:51

Hey everyone! I've been working on a fullstack Next.js course (GraphQL, Apollo, TypeScript, Tailwind, Mapbox, Firebase Auth, lots more!).

It includes 29 videos and over 8 hours of content, and its goal is to make any frontend/backend developer building a complete app from nothing to deployed.

Check it out! https://courses.leighhalliday.com/next-level-next-js
Jan 15: DEV Daily Discovery
Tags: discuss, bestofdev
Published: 2021-01-15 19:25:55

Hey folks!

This is the second post in this daily series. I _already_ missed a day, but still intend to publish this post every day!!

***

Please make a comment to this thread with a DEV post that you think deserves to be read more broadly. If it's your own post that's fine.

It could be recent, or it could be classic.

And then read through the thread and ❤️ posts where you like. I'm hoping that the wisdom of the crowds can help unearth some great content every day.

The feed already works this way, but I think this could be a fun way to complement the feed for a different kind of discovery.

Use the post's link liquid tag to display it fully, i.e.:

```liquid
{% link https://dev.to/devteam/for-empowering-community-2k6h %}
```

And feel free to add why you want to want to give it more love.

Don't worry about whether you've picked the best post, let the readers decide if it should rise to the top.
best-of-web-python: A ranked list of awesome Python libraries for web development
Tags: python, webdev, django, githunt
Published: 2021-01-15 19:16:11

[![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/8474tdmn1wcv3mwx5i1z.gif)](https://github.com/ml-tooling/best-of-web-python)

We've curated a list of the **best Python libraries for web-development**! With awesome utilities for Django, Flask, FastAPI, an much more.

The list is fully automated via GitHub Actions, so it will never get outdated. Every week it collects metadata from GitHub and package managers, calculates quality scores to rank projects inside categories, and identifies trending projects.

{% github ml-tooling/best-of-web-python no-readme %}

📫  For updates on trending projects, new additions and detailed comparisons, follow us on [Twitter](https://twitter.com/mltooling) or subscribe to our weekly [newsletter](https://mltooling.substack.com/subscribe).
TIL: the Git -p flag!
Tags: git, bloggolf, todayilearned, commandline
Published: 2021-01-15 19:03:17

Today I learned about the `-p` flag in git and now I want to use it everywhere!

According to the man page:

```
$ man git-add

...
-p, --patch
Use the interactive patch selection interface to chose which changes to commit. See git-add(1) for details
...
```

You can use the `-p` flag with `checkout`, `add`, `commit`

![Git Patch!!!!!](https://dev-to-uploads.s3.amazonaws.com/i/sdunby7qyg13pqr4f0go.gif)

![How cool](https://media.giphy.com/media/JSjjhv0tuiTGW6peHb/giphy.gif)
MLH Local Hack Day: Build
Tags: majorleaguehacking, mlh, localhackday
Published: 2021-01-15 18:59:57

Hello everyone. I am Shaurya Guliani, A sophomore pursuing B.Tech in Computer Science Engineering from Amity University, Noida, Uttar Pradesh. I am currently participating in MLH Local Hack Day: Build 2021 in a Guild known as "EquiCode". 

I got to know about Local Hack Day from few of my friends in college who pushed me into participating. It was my first competition of this kind and to be honest, I was a little scared too as I didn't knew a thing about such competition. Every knowledge I had was confined to the college curriculum which never came out in any competition but it was with the help of my friends, who helped me at every step and the organizers, who kept organizing workshops during the event, that I learnt such amazing thing and met such amazing people from all over the globe.

I started the week as an amateur knowing only little basics about programming languages such as C and C++, not knowing many things about Tech and will be ending it with many new techniques and skill up my sleeves. Also met a lot of new friends on the way. It's fascinating that some people you never knew before can become such good friends of yours just because of working together as a team.

The Local Hack Day was a fascinating experience for me and as it will be over soon, I am already excited for Local Hack day: Share.

 #MLH #majorLeagueHacking #LocalHackDay
What was your win this week?
Tags: discuss, weeklyretro
Published: 2021-01-15 18:57:47

---
title: What was your win this week?
published: true
description: Got to all your meetings on time? Started a new project? Fixed a tricky bug?
tags: discuss, weeklyretro
cover_image: https://cl.ly/188e843c2985/download/Image%202019-02-15%20at%202.36.37%20PM.png
---

Happy Friday!


**Looking back on your week — what was something you're proud of?**

All wins count — big or small 🎉

Examples of 'wins' include:

- Starting a new project
- Landing a new job
- Getting recognized for your hard work... or whatever else might spark joy ❤️

---

Have a great weekend!

![Friday joy](https://media.giphy.com/media/d2ZfzmOhBzYm92FO/giphy.gif)
Bash: writing a simple pod checker
Tags: kubernetes, bash, linux, funny
Published: 2021-01-15 18:52:52

> I was working with Kubernetes and I just want to check my pods in the current workspace, in a funny way  😅, I will use bash for just one reason, it's the Linux native languages no need for other languages and libraries


Actually, I was inspired by a cool tool called **popeye**, you can find it [here](https://github.com/derailed/popeye). 

Make sure you have **Kubectl** installed and an existing cluster as well, here is my implementation 

* **Define your favorite colors**

```bash
blanc="\033[1;37m"
gray="\033[0;37m"
magento="\033[0;35m"
red="\033[1;31m"
green="\033[1;32m"
amarillo="\033[1;33m"
azul="\033[1;34m"
rescolor="\e[0m"
```

You can find more about colors in bash [here](https://misc.flogisoft.com/bash/tip_colors_and_formatting).

* **Get list pods into an Array**

```bash
listPods=$(kubectl get po | awk 'NR>1{print $1}')
#echo "$listPods"
readarray  arr <<<  $listPods
```
`NR>1` will skip the first line and `print $1` will print the first words (separated by a space) on all lines.

* **Looping over the array and check the status**

```bash
ok=0
notok=0
echo -e "\nSit Down and Wait  \U1F602 :\n"
for i in ${arr[@]}
do 
echo -ne "$i ... " 
status=$(kubectl get po $i | grep $i | awk '{print $3}')
	if [[ ! $status =~ ^Running$|^Completed$  ]]  ; then
		echo -e "\e[1;31mOh Shit !"$rescolor""
        notify-send "Pods Health" "$i was  FUCKED" -t 10000 
        let notok=notok+1
	else
		echo -e "\e[1;32mOK!"$rescolor""
        #notify-send "Pod $i Is Good :)"
      let ok=ok+1
	fi
done
```

The `ok` and `notok` are used to count the number of the running/not running pods , the `${arr[@]}` prints out the whole array, the `notify-send` will create a notification on your system is one of the pods are **f**ked up** .

* **Print out the summary**

```bash
echo -e "\nSTATS:\n"
echo "+---------------+---------------+"
printf  "|$green%-15s$rescolor|$red%-15s$rescolor|\n" "Healthy Pods" "Unhealthy Pods"
echo "+---------------+---------------+"
printf  "|%-15s|%-15s|\n" "$ok" "$notok"
echo "+---------------+---------------+"
echo -e "\n"
```

* **Run the script**

Download the scripts with `CURL` : 
```bash
curl https://raw.githubusercontent.com/hatembentayeb/podschecker/master/podschecker.sh --output podschecker.sh
chmod +x podschecker.sh
```

* **Demo** 

![PodHealth.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1610725608108/yrhW96uAh.gif)

Repository: https://github.com/hatembentayeb/podschecker
Original blog: https://hatembentayeb.hashnode.dev/bash-writing-a-simple-pod-checker

**The scripts don't do much but it was a result of a boring 3 hours on this pandemic**  🥲
Day13 : 100DaysOfCode

Tags: 100daysofcode, kotlin, productivity, programming
Published: 2021-01-15 18:45:51

completed daily scrum at intern(kotlin-android dev)
continued with learning spring boot...

..few leetcode sums, studied max product subarray algo.
gave a coding round for a hackathon , was able to do 2 full nd 3 partial sums out of 5.
We got selected in the first round as well.

added some new stuffs onto my system :)


You can Follow me->
https://github.com/singhtaran1005
https://www.linkedin.com/in/taranpreet-singh-chabbra-27517918a/
Neumorphism Social Media Menu Bar Using HTML and CSS
Tags: neumorphism, html, css, webdev
Published: 2021-01-15 18:45:38

In this article, I am going to show you how to create a Neumorphism social media menu bar using only HTML and CSS code. If you don't know what [Neumorphism design](https://www.backlinkn.com/search/label/Neumorphism) is, in a word it is a modern form of Skeuomorphism design.

 This makes any element more beautiful and clear. So such designs have gained much more popularity nowadays. It's just a game of colors yes you heard right. It can brighten any element with the help of color as you can see in the picture above. There are six social icons in the [social media menu](https://www.foolishdeveloper.com/2021/01/Neumorphism-social-button.html) created for this article. It is designed with complete CSS code. You can easily change the [icons on social media](https://www.foolishdeveloper.com/2021/01/Neumorphism-social-button.html) here. Some special hover effects have been added to it. As a result, when you click on the buttons, they will move slightly inwards. As a result, these buttons seem more original.

 The video tutorial and necessary source code for making it are available at the link given below. You can easily find out step by step by following the [video tutorial below](https://www.youtube.com/watch?v=x_Tvb4GRmaI). You can use the link below to download the required code.

[Demo and Download Code](https://www.foolishdeveloper.com/2021/01/Neumorphism-social-button.html)

{% youtube x_Tvb4GRmaI %}