teleren/devto huggingface dataset:
Now you can run a code-server as a service.
Tags: vscode, linux, tutorial
Published: 2022-09-29 14:47:54

---
title: Now you can run a code-server as a service.
published: true
description: A service for code-server
tags: ["vscode", "linux", "tutorial"]
cover_image: https://images.unsplash.com/photo-1488590528505-98d2b5aba04b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8 
# Use a ratio of 100:42 for best results.
series: "Code-Server"
---

As I mentioned in my last [article](https://dev.to/blitz_cloud/vscode-is-now-everywhere-5g9d), I said that code-server lacks a service to run it in the background or at startup. I build a systemd service to solve this issue.

If you want to have the code-server running n the background just follow this steps:

- Create the systemd service with this command
```bash
sudo nano /etc/systemd/system/code-server.service
```
- Paste the code below.
```
[Unit]
Description=Code-Server Service
After=network.target

[Service]
Type=simple
Restart=always
User= yourUser
ExecStart=/usr/local/bin/code-server

[Install]
WantedBy=multi-user.target
```
- Start the service
```bash
sudo service code-server start
```
- Check the status 
```bash 
sudo service code-server status
```
- Optional enable the process at startup
```bash
sudo systemctl enable code-server
```
#### Now you should be able to take you safe development environment on your iPad or on your grandma slow computer,without being afraid that the server will stop.
How can I use the Notion API to automate Notion? API
Tags: notion, help, javascript, automation
Published: 2022-09-29 14:46:14

So, I've been trying to build my own task management system, and I've finally settled down at notion.

From what I understand of the Notion API, when code (that I have written) is triggered, the code goes and connects the "Integration" to the Notion "Database" and then proceeds to execute whatever code is in the file.

But what confuses me is since I want to automate stuff inside Notion itself, specifically, get the code to read a column from the database and add a specific tag to another column, I don't understand how I'm supposed to get the code to trigger from inside notion. I preferably don't want the code to keep running 24/7 in my laptop so that changes in the database can be detected, but at this point I have no idea how to trigger any code at all.

Any ideas/guides?
apple login
Tags: appwritehack, javascript
Published: 2022-09-29 14:23:18

password recovery on the iPhone its a really easy process but let's understand the whole concept so open the setting of the iPhone and click on forget apple id password reset for icloud now you can enter your email address now enter your email id so let's go on the icloud password recovery [password reset for icloud](https://www.mygeekshelp.com/apple-icloud-password-recovery/) using apple id enter your apple id now you will select quickly the email option apple will send a password recovery link on the email address now reset the icloud password now you can login to icloud account now recover from your  [apple icloud recovery](https://www.mygeekshelp.com/apple-icloud-password-recovery/) password just open iforget apple com and enter your apple id enter otp as apple will send you OTP on your from [icloud password reset](https://www.mygeekshelp.com/apple-icloud-password-recovery/) mobile number now set up new password all done now login iCloud account enjoy the services If all these do not help you in iCloud password recovery then i suggest you contact apple technical support The technicians are available round the clock to help their user just call the apple phone number  I think you are daily user of apple iPhone or laptop then having knowledge on the importance of apple id and password is a must sometimes people don't use apple id and password on a daily basis then some of them forget apple id if you also forget if you in with the same issue then don't worry you are in the right direction .
PGP - Encrypt/Decrypt file with Ruby on Rails (Part 3)
Tags: programming, ruby, rails, pgp
Published: 2022-09-29 14:23:01

In the previous two posts we have seen:

1. [Introduction Encryption and Decryption](https://dev.to/humbertoa6/pgp-encryptdecrypt-file-with-ruby-on-rails-part-3-3log)
2. [Create a Public/Private Key Pair](https://dev.to/humbertoa6/pgp-create-a-publicprivate-key-pairpart-2-4a7b)

In this tutorial we are going to explain how to encrypt and decrypt in Ruby on Rails with the [GPGME gem](https://rubygems.org/gems/gpgme).

## Summary
- GPGME provides an encryption, decryption, signing, signature verification and key management
- Encrypt data with GPGME gem
- Decrypt data with GPGME gem

Ruby gem GPGME (GnuPG Made Easy) is a library designed to make access to GnuPG easier for applications. **GPGME provides** a High-Level Crypto API for encryption, **decryption, signing, signature verification and key management**.

## Encrypt data with GPGME gem

1. Must be have an imported recipient's public key.
```ruby
crypto = GPGME::Crypto.new
GPGME::Key.import(File.open('recipient_public_key.pgp'))
```
2. Read file or data to encrypt
```ruby
plaintext = GPGME::Data.new(File.open('file.csv'))

#Our file contains following data:
#last_name, name, mobile_phone\nSmith,Chris,3336985726
```
3. Encrypt data with following options
  - Recipients: For which recipient do you want to encrypt this file.
  - Sign: Must be true, performs a combined sign and encrypt operation.
  - Signers: Sender of encrypt file.
```ruby
options = { sign: true, signers: 'sender@foo.com', recipients: 'recipient@foo.com' }
data = crypto.encrypt plaintext, options
```
4. Create and save encrypted file in gpg extension:
```ruby
f = File.open('encrypted_file.gpg', 'wb')
bytes_written = f.write(data)
f.close
```
Now we have a file with this name `encrypted_file.gpg` and we can send to the recipient into S3, SFTP, etc.

## Decrypt data with GPGME gem

1. Must be have an imported recipient's private key.
```ruby
crypto = GPGME::Crypto.new
GPGME::Key.import(File.open('recipient_private_key.pgp'))
```
2. Read and create Data instance of encrypted file
```ruby
cipthertext = GPGME::Data.new(File.open('encrypted_file.gpg'))
```
3. Decrypt data and print
```ruby
data = crypto.decrypt cipthertext, {}
puts data
#last_name, name, mobile_phone\nSmith,Chris,3336985726
```
PGP - Create a Public/Private Key Pair(Part 2)
Tags: programming, encrypt, decrypt, security
Published: 2022-09-29 14:19:30

As we mention in the previous [post](https://dev.to/humbertoa6/pgp-encryptdecrypt-file-with-ruby-on-rails-part-3-3log) PGP is a popular solution for encrypting, decrypting, signing, and verifying messages and files, often found in email communications and package repository identity verification (because security matters).

In this post we'are gonna create Public/Private key pair to to encrypt and decrypt data.

## Summary
- Private key is a secret key that allows you to decrypt the messages.
- Public key encrypts data for a specific receiver.
- Install gnupg.
- Generate Public/Private key pair.

Secret key cryptography is effective for communication over insecure channels as the piece of information or parameter used helps the information to encrypt and decrypt messages.

**Private key is a secret key that allows you to decrypt the messages** sent to you based on a public key. The private key can also be used to generate message and file signatures.

Public key converts to encrypt data and it's uses asymmetric algorithms. A person who has a **public key can encrypt the message intended for a specific receiver**. The receiver with the private key can only decode the message, which is encrypted by the public key. The public key is free to use. 

If Ana and John want to exchange a secret message, Ana (the sender) will encrypt the message using John's (the recipient) public key. When John receives the message, he will decrypt the message with his private key. No other parties can decrypt the message unless they have John's private key.

## How we can create GPG key pair keys?

1. Install gnupg as our GPG client

```shell
brew install gnupg
```

2. Generate a GPG key pair

```shell
gpg --full-generate-key
```

![Generate key pair GPG](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/98i3no1yz9tdy011vdns.png)

3. At the prompt, specify the **RSA(Rivest-Shamir-Adleman)** key(option 1) and press Enter.

4. At the prompt, specify the key size you want, or press Enter to accept the default.

5. Enter the length of time the key should be valid. Press Enter to specify the default selection.

6. Enter your user ID information.

7. Paste the text below, substituting in the GPG key ID you'd like to use. In this example, the GPG key ID 

8. Get Private key, signer(sender of encrypt file) should be an email example: foo@foo.com
```shell
gpg --output private_key.pgp --armor --export-secret-key foo@foo.com
```

9. Get Public key:

```shell
gpg --output public_key.pgp --armor --export foo@foo.com

```

10. Optional: You can encode in base64 your key pherhaps to save in local environment. Run following command to get the private key encoded in base64

```shell
base64 private_key.pgp
//Output example: LS0tLS1CRUdJTiBQR1AgUFJJVkFURSBLRVkgQkxPQ0stLS0tLQoKbFFjWUJHTWphV0VC...
```
PGP - Introduction Encryption and Decryption (Part 1)
Tags: programming, encrypt, decrypt, security
Published: 2022-09-29 14:17:43

## Summary

- Encryption converts plaintext into ciphertext.
- PGP is used for signing, encrypting, and decrypting information.
- Decryption converts encrypted data into original form.

In cryptography, **encryption is the process of encoding information**. This process converts the original representation of the information(plaintext) into an alternative form known as ciphertext. 

**Decryption is the conversion of encrypted data into original form**. It is generally a reverse process of encryption.

**Pretty Good Privacy (PGP)** is an encryption program that provides cryptographic privacy and authentication for data communication. **PGP is used for signing, encrypting, and decrypting data**(texts, e-mails, files, directories, and whole disk partitions and to increase the security of e-mail communications) and allow us send and receive files securely. 

PGP and similar software follow the OpenPGP, an open standard of PGP encryption software, standard (RFC 4880) for encrypting and decrypting data.

## Use case

Ana and John are two people that want to exchange messages
1. Ana wants to send a private message
2. John generates a public and a private key
3. John keeps the private key and send back to Ana his public key
4. Ana encrypts her message using John's public key
5. Ana sends to John the encrypted message
6. John decrypts the encrypted message with his private key

![Encryption and Decryption](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fcfzubil0bvkdr4eyn4i.png)



- **Important**: If John(recipient) wants to receive encrypted message, it must generate key pair.
Best Exam Dumps Websites Practice Questions Money Return Guarantee
Published: 2022-09-29 14:13:39

[Best Exam Dumps Websites](https://braindumps4certification.com/best-exam-dumps-websites/) pdf from your order right now, there is no limition for the download times so you can download BICSI EXAM DUMPS pdf as an entire lot as possible in your PC or mobileular devices. BICSI EXAM DUMPS Practice Questions with Free Updates Once you are making a purchase, you can experience 6-month free update to get the trendy BICSI EXAM DUMPS exercising questions. If the valid net internet site on line updates the EXAM DUMPS exam content material cloth and extrade the questions, our specialists will continuously maintain updated to ensure you get the trendy version in your EXAM DUMPS check training. one hundred% Money Return Guarantee On EXAM DUMPS Dumps The remarkable EXAM DUMPS dumps guarantee you a first rate achievement withinside the primary attempt. 

Click Here More Info >>>>> https://braindumps4certification.com/best-exam-dumps-websites/
A Cloud Resume Challenge : A cloud engineer's journey to 'living in the cloud' - Part 1
Published: 2022-09-29 14:03:48

**TL:DR** - This article is part of a series of articles that focus on my learning points from working on 'A Cloud Resume Challenge' by Forrest Brazeal. A multi-faceted projects for building competency as a cloud engineer. This first part is about setting up AWS accounts using cloudFormation templates.

**Introduction**

The end product of the Challenge is your resume presented as a website accessible by any one on the internet. In essence, your resume lives in the cloud.

I chose to use the AWS edition of the challenge(There's the Azure edition and also the Google edition). I already have experience working with AWS and thought it will be a good way to get more experience with AWS services.

**Setting up AWS accounts**
- In typical work scenarios, you'll have several work environments, e.g. dev, QA, SIT, prod environments
- The recommended best practice is to create separate AWS accounts for the different environments. This way, you create separate of concerns and reduce the blast radius of changes you make.  
- Also, you can simply delete an AWS account once done with it to prevent inadvertently accruing costs for resources that are no longer needed.

- In this project, I used org-formation template to easily set up AWS organization and AWS accounts within organization units. ([This article explains the advantage of using templates to quickly create accounts with cloudFormation templates](https://github.com/org-formation/org-formation-cli/blob/master/docs/articles/aws-organizations.md)) 


![CloudFormation template for creating AWS organization, OU, and accounts](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j2grtl9ldm0t6gmbwjdq.png)
Screenshot of CloudFormation template for creating AWS organization, OU, and accounts.

In part 2 of this series, I'll focus on setting up a stati website on S3 and importing infrastructure created in the AWS console into Terraform management. Its the DevOps way, so we have to get started with automation.
CFSS Consultation Services
Published: 2022-09-29 13:58:14

[CFSS consultation services](https://communityfirstconsultationservices.com/) are designed to help consumers develop a plan that will help them live independently. These services also help participants identify resources and connect them to the services they need. In New York City, for example, a team of CFSS advocates helps people living in Times Square write plans that reduce the need for law enforcement involvement.

CFSS consultation services are staffed by a coordinator who understands the requirements and processes of CDS. They communicate with clients, lead agencies, and a variety of stakeholders to ensure the most effective service possible. They also keep up with regulatory and legislative changes and provide best practices that can help CFSS programs operate smoothly.

Under CFSS, spouses and parents of minors can serve as support workers for their loved ones. They can also purchase independence aids. The CFSS budget model also allows people to be the employer of their own support workers, whose training is paid for by the state. A CFSS consultation services provider also provides education and training for support workers, including assistance in writing individual plans.

The delivery model for CFSS is split into two types: the agency model and the budget model. In each of these models, a Consultation Services provider helps the participant create a Service Delivery Plan and write the plan with them. This way, participants are in control of the care they receive and can buy the goods that they want.

The eligibility criteria for CFSS is similar to that of PCA. The two programs share the same main services: health-related tasks, observation of behavior, and assistance in purchasing goods and services. Participants who have used PCA will find their eligibility for CFSS much easier. They can also continue to use their PCA support worker to purchase goods that will help them live independently.

The CFSS program will replace the Consumer Support Grant and Personal Care Assistance programs. The new program will give participants more choice and freedom of choice in the way they live their lives. It will also create new opportunities for service providers and consumers. Through the new program, consumers can purchase items and support their families.

In Minnesota, the Department of Human Services is preparing to move from personal care assistance (PCA) to community first services and supports (CFSS). The new program will allow people to remain in their homes and communities. The new program will offer more self-direction options, including writing plans for their care. Furthermore, CFSS will allow people to purchase goods and services that will help them to live independently in their own homes.
DAY 9: Merge k Sorted Lists
Tags: java, codereview, leetcode
Published: 2022-09-29 13:57:26

Hey! It's day 9 of 10days coding challenge with I4G. Today's task was to write a code that can merge k sorted lists.

**Thought process:**
**Understanding of problem: **The task here requires us to merge k sorted lists into one. Each of the list is already sorted but needs to be merged into a single sorted list.
**Solution**: Since each list is already sorted, the problem is easier to tackle. There are several approaches to this problem such as divide and conquer, merging the list one by one, comparing each list one by one, using brute force and using priority queue. 
In my own solution here, I used priority queue. The node of each list was compared, and the minimum node was added to the queue, until the queue was not empty. Then the minimum node was extracted and stored in our result list. And the result list is return.

**Algorithm:**
- Create a priority queue.
- Add the first node from all the lists into the priority queue.
- Loop until the priority queue is not empty
- Get the minimum node from the queue and add it to our result list.
- Add the next node (if present) from the extracted node list.
- Return the resultant list.

Checkout the full code here: https://leetcode.com/submissions/detail/810988090/
Keep Your Presentation Simple: How a Pigeon Hijacked My Talk
Tags: speaking, aws, beginners, cloud
Published: 2022-09-29 13:48:50

I love discussing technical challenges on AWS using unconventional examples. 

My [session at re:Invent](https://cloudiamo.com/reinvent-2021/) was _"Drawing the New York City skyline with Amazon Aurora Serverless v2"_. I used [marathon runners](https://twitter.com/danilop/status/874947932331618305) to test Amazon Rekognition. I will challenge participants on [cycling the Tour de France](https://cloudiamo.com/2022/09/18/an-absurd-way-to-try-amazon-dynamodb-on-demand/) in a workshop next month.

Load tests using JMeter and shopping patterns are more meaningful but often not powerful enough to explain a new concept. Absurd examples might do better and keep the audience focused, the risk is to take the game too far.

**The idea**

A couple of months ago I agreed on a talk with the tentative title _"A Blue Tit, a Pigeon and Amazon Rekognition Streaming Video Events"_.

AWS added [Streaming Video Events](https://aws.amazon.com/rekognition/connected-home/), a feature of Amazon Rekognition to provide real-time alerts on live video streams. My wife had recently added a birdhouse to feed a small passerine bird but a pigeon decided to claim the space. 

![A Blue Tit, a Pigeon and Amazon Rekognition Streaming Video Events](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kpjrwtxi3bptigbcytbz.png)

What better option to test the new AWS service and see if it would do better than a camera with built-in motion detectors? Can Streaming Video Events differentiate between the two birds and rescue the nest for the little blue tit? Could a notification trigger an audio alarm?

**The failure**

I did a quick test to demo real-time alerts on live video streams and I waited for the conference this autumn. The talk was approved and I was ready to collect some more real data. But while I was committed to the talk, the birds were not. Pretty soon the small passerine found a new home and the pigeon lost interest in the birdhouse too. I was so busy overthinking the presentation that I missed the obvious. I had no data.

A pigeon as a dependency is a silly mistake, others might be more subtle but equally challenging. Doing a demo at re:Invent on [a service in preview](https://aws.amazon.com/about-aws/whats-new/2020/12/introducing-the-next-version-of-amazon-aurora-serverless-in-preview/) had its own risks, you cannot assume it is going to be GA by the time of the conference. The capabilities might change significantly too. For example, the preview of Aurora Serverless v2 was for the MySQL 5.7-compatible edition, a version that never made it to GA.

**The lesson**

Keep your idea and presentation simple. And don't feed the pigeons.
Looking for branding ideas to name an internal "currency" for a developer tool
Tags: brand
Published: 2022-09-29 13:37:06

Hi there,

We are working on an application and we are looking to introduce an internal currency/credit system so that users can exchange for calls to our services. Since some of the services are heavier than others, we want to point a "weight" or a price in each service. Ultimately, users will have a number of credits/coins that they can consume by calling different services.

In terms of the name, I tend to not like the term "coin" since it reminds me of crypto etc. Credits is also an idea but it also makes connections to pre purchased credits (githb and others). Do you agree?

Other ideas?

Gems?
Chips?

We would like to decide by tomorrow so any ideas are super welcome! 

cheers,

Nikolas
Introducing: tremor – the react library to build dashboards fast
Tags: react, opensource, news, showdev
Published: 2022-09-29 13:26:40

Hey everyone! Almost exactly 12 months ago we gathered the first ideas to create a library to build dashboards. After a lot of back and forth, we are happy to publish our **beta release** of **[tremor – the React library to build dashboards fast](https://tremor.so)**. With components like charts, callout, metric, or icons, we ship everything a developer needs to build a dashboard. In light of this, here are some highlights of the open-source library.

### Components to build dashboards
So, one of the things we really focused on was to distill typical dashboards into their single parts. We hope that the [resulting components](https://www.tremor.so/components) will help you in developing insightful dashboards. If you are missing any components, feel free to [reach out](https://github.com/tremorlabs/tremor). We are grateful for every feedback we receive.

<a href="https://www.tremor.so/" target="_blank">
![Code Terminal and final KPI Card](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nig2bbk70r2tlvj557il.png)
</a>

### Blocks to get a head start
On top of our library we provide templates, which we call [Blocks](https://www.tremor.so/blocks). With Blocks we enable developers to quickly create an analytical interface.

### Check out our demo dashboard
We have built a demo dashboard with our components, you can [check it out here](https://demo.tremor.so).

---

With our beta release we invite every developer to help us make tremor better. If you encounter any issues or have exciting ideas, feel free to [open an issue](https://github.com/tremorlabs/tremor) or [drop us a message](https://twitter.com/tremorlabs). We are looking forward to seeing what people do!

That's all for today.
– [Achi](https://twitter.com/a_mitrotasios), [Chris](https://twitter.com/kindlaar), and [Sev](https://twitter.com/severinlandolt)
Fun facts about React.
Tags: react, beginners, javascript, programming
Published: 2022-09-29 13:00:54

- React is a JavaScript library.
- React is built by Facebook.
- Released to the world in 2013. 
- React is Open source.
- Famous React Apps 
#1 Facebook
#2 Instagram
#3 Netflix
#4 New York Times
#5 Yahoo! Mail
#6 Khan Academy
#7 WhatsApp
#8 Vivaldi Browser.
- React in itself has a very small API, and you basically
need to understand 4 concepts to get started:
1. Components
2. JSX
3. State
4. Props