teleren/devto huggingface dataset:
Shipping Environment variables from AWS to Heroku
Tags: githubhack23, githubactions, aws, heroku
Published: 2023-05-08 13:09:48

## What I built 

I built a GitHub Action that sets Heroku environment variables from the AWS SSM Parameter Store. This Action was created to efficiently synchronize environment variables when using both AWS and Heroku.

### Category Submission: 
DIY Deployments

### App Link

{% embed https://github.com/iisyos/ssm-to-heroku-env-action %}

[marketplace](https://github.com/marketplace/actions/ssm-to-heroku-env-action)

### Screenshots 

N/A

### Description 

This action retrieves environment variables from the AWS SSM Parameter Store using the specified path input. For example, if you have set a parameter with the following CLI command and specified the path as '/test/', the action will retrieve the parameter stored under '/test/'.

```bash
aws ssm put-parameter \
    --name "/test/VALUE1" \
    --value "test1" \
    --type String \
    --region "ap-northeast-3"
```

Authentication with Heroku is done by writing the `email` and　`token`　in the `.netrc` file, as described in [Heroku CLI Authentication](https://devcenter.heroku.com/articles/authentication). You can get your token from [here](https://dashboard.heroku.com/account). Additionally, you need to set your app name in the `app`　input.

### Link to Source Code 

[repository](https://github.com/iisyos/ssm-to-heroku-env-action)

### Permissive License 

MIT

## Background (What made you decide to build this particular app? What inspired you?) 

Honestly, it was mainly about money. 🥺
Initially, I had the application running on AWS, but the cost of maintaining it was a bit high, so I decided to switch to Heroku. However, there was still a possibility that I would use AWS in the future, so I stopped the resources without deleting them. As the application scales, the number of environment variables will grow, and managing them becomes a challenge. Since they were originally managed in the AWS SSM Parameter Store, migrating them would be cumbersome. Therefore, I decided to create an infrastructure with AWS as the master and Heroku as a reference.

### How I built it (How did you utilize GitHub Actions or GitHub Codespaces? Did you learn something new along the way? Pick up a new skill?) 

I learned how to authenticate Heroku by writing emails and tokens in the `.netrc` file and the basics of AWS CLI.
I also learned the application of Interface and Class in TypeScript.
It was difficult to implement a generic interface.
Electric Boat Market 2022 - Industry Trends, Regional Developments and Competitive Landscape Analysis Report
Tags: automotiv, electricboat
Published: 2023-05-08 13:06:37

According to new research study on Electric Boat Market research report provides size, share, trends, analysis report contains all study material about market industry overview, growth, demand and forecast research in all over the world. The report also analyses the competitive structure of the Electric Boat and provides the profiles of major players operating in the market. Growth inducing factors, market restraints and recent developments have also been analyzed in the report in order to provide deeper knowledge about the industry.

To Get Sample Copy of Report, Click Here – https://www.theinsightpartners.com/sample/TIPRE00021992/
Fleuriste Levis · LeFleuriste.com™
Published: 2023-05-08 12:50:43

Fleuriste Levis · [LeFleuriste.com™](https://www.lefleuriste.com/fleuriste/levis)

[Fleuriste Levis](https://www.lefleuriste.com/fleuriste/levis). Livraison de fleurs rapide 7/7 jours. Commandez vos fleurs en ligne: LeFleuriste.com / Téléphone: 888-219-6911. Jusqu'à 25% de rabais. Top Fleuriste Levis depuis 1965.
Celebrities Fashion: The Ultimate Style Guide for Trendsetters
Published: 2023-05-08 12:48:33

Fashion has always been an essential part of celebrities' lives. From red carpet events to casual outings, they always make sure to leave a mark with their fashion choices. Celebrity fashion is not just about style but also about setting trends and inspiring people to experiment with their looks. In this article, we will dive into the world of celebrities' fashion, the dress that they [Worn on Tv](https://pittythings.com/worn-on-tv-make-money) and their style icons, and how you can incorporate their looks into your wardrobe. 

## **Celebrities Fashion**

Celebrities and fashion have always been intertwined. Whether they are attending an award show or running errands, celebrities always make a statement with their fashion choices. Their style not only influences the masses but also the fashion industry itself. In this article, we will explore the evolution of celebrity fashion, iconic celebrity fashion moments, and how you can incorporate their looks into your wardrobe.

**The evolution of celebrity fashion**

Celebrity fashion has come a long way over the years. In the early days of Hollywood, actresses were often styled by the studios they worked for. However, as time went on, celebrities started to take control of their own style. In the 1960s, icons like Audrey Hepburn and Brigitte Bardot set the stage for fashion in the following decades. In the 1980s, Madonna's punk-inspired fashion sparked a new trend that still influences fashion today. The 1990s saw the rise of supermodels like Cindy Crawford and Naomi Campbell, who brought minimalism and sportswear to the forefront. Today, social media has given celebrities a new platform to showcase their style and connect with their fans.

**Iconic celebrity fashion moments**

Throughout the years, there have been many iconic celebrity fashion moments that have left a lasting impression. From Princess Diana's "revenge dress" to Lady Gaga's meat dress, these moments have not only influenced fashion but have also become a part of pop culture. Other notable moments include Marilyn Monroe's white dress in "The Seven Year Itch" and Cher's Bob Mackie-designed costumes.

**Celebrity fashion on the red carpet**

The red carpet is where celebrities go all out with their fashion choices. From designer gowns to statement jewelry, they leave no stone unturned. Some of the most memorable red carpet moments include Lupita Nyong'o's blue Prada dress at the 2014 Oscars, Beyonce's sheer Givenchy dress at the 2015 Met Gala, and Rihanna's yellow Guo Pei gown at the 2015 Met Gala.

**Celebrity street style**

While the red carpet may be where celebrities go all out, their street style is where they show off their personal style. From casual looks to dressed-up outfits, celebrity street style is a source of inspiration for many. Some of the most stylish celebrities on the street include Kendall Jenner, Gigi Hadid, and Hailey Bieber.
Fleuriste Montreal · LeFleuriste.com™
Tags: fleuristemontreal, fleuriste
Published: 2023-05-08 12:47:03

Fleuriste Montreal · [LeFleuriste.com™](https://www.lefleuriste.com/fleuriste/montreal)

[Fleuriste Montreal](https://www.lefleuriste.com/fleuriste/montreal). Livraison de fleurs rapide 7/7 jours. Commandez vos fleurs en ligne: LeFleuriste.com / Téléphone: 888-219-6911. Jusqu'à 25% de rabais. Top Fleuriste Montreal depuis 1965.
New memory related fields in Yugabyte 2.17.3 pg_stat_activity
Tags: yugabyte, distributedsql
Published: 2023-05-08 12:41:14

On friday, may 5th 2023 Yugabyte released version 2.17.3.0 of the database. Version 2.17.3.0 is a pre-release version.

However, there is an exciting feature that will be extremely handy for understanding, tuning and troubleshooting the YSQL (PostgreSQL compatible) API: The `pg_stat_activity` PostgreSQL standard catalog table has gotten two new fields:
- allocated_mem_bytes
- rss_mem_bytes

## allocated_mem_bytes
The allocated_mem_bytes field shows the memory allocated by the memory allocator. PostgreSQL is setup in an extensible way, which includes the ability to choose a memory allocator, which for PostgreSQL is [ptmalloc](https://sourceware.org/glibc/wiki/MallocInternals), and for YSQL is [tcmalloc](https://github.com/google/tcmalloc). PostgreSQL has the ability to change the memory allocator, but by default uses the operating system memory allocator.

The memory shown in the allocated_mem_bytes field is the amount of memory the allocator has allocated for the postgres backend as well as our pggate addition to communicate with DocDB.

It is important to realise that the allocator gets involved after the process has forked from the postgres server process and has paged in all the required memory to run the process, so once the postgres "application" gets run and allocates memory for its processing.

The allocated_mem_bytes field can show memory that was previously allocated and in reality is freed, but still is part of the virtual memory allocation. One specific change we made in YugabyteDB for the backend tcmalloc allocator is to free aggressively to prevent memory oversubscription. If this specific case is happening, the rss_mem_bytes field will show a smaller amount of memory than the allocated_mem_bytes field.

## rss_mem_bytes
The rss_mem_bytes field shows the operating system level view of the memory usage, for which it is showing the RSS: the resident set size.

The resident set size are all the pages that are paged into the process' memory. Some of these pages can be shared with other processes, such as memory mapped pages.

The memory that the memory allocator (tcmalloc with YugabyteDB, ptmalloc for PostgreSQL) allocates is administered as RSS once the allocation gets read or written. 

In general, the rss_mem_bytes/resident set size will be larger than allocated_mem_bytes, because the linux level dealing with the executable and execution requires some memory too. But this not always be true.

## shared memory / buffer cache
Please mind that with YSQL there still is shared memory visible that is defined as shared memory for the database. This memory is not allocated using the a memory allocator.

This shared memory is used by some global database views, and with PostgreSQL is used to allocate the buffer cache. In YSQL, we do not use the postgres level buffer cache. Therefore you will find that almost nothing of this memory is paged in and therefore actually taking memory.

The amount of memory that is paged in will be visible in rss_mem_bytes, shared memory is totally outside of allocated_mem_bytes.
git-scm on Windows, GitHub contribution workflow
Tags: osdc, github, git
Published: 2023-05-08 12:34:41

How to add/edit files to GitHub from my Windows environment:
first - download notepad
second - download git-scm
//Do not forget to choose Notepad as the default editing program

I have added an organization as yaml file to
open-source-by-organizations site by the following instructions:

$ git clone https://github.com/OSDC-Code-Maven/open-source-by-organizations.git //
Cloning into 'open-source-by-organizations'
$ cd open-source-by-organizations/)
$ cat .git/config
$ git checkout -b organizations/add
Switched to a new branch 'organizations/add'
$ git status
On branch organizations/add
nothing to commit, working tree clean
$ cd data/organisations/
$ notepad jce.yaml
$ git remote -v
origin https://github.com/OSDC-Code-Maven/open-source-by-organizations.git
(fetch)
origin https://github.com/OSDC-Code-Maven/open-source-by-organizations.git
(push)
$ git push --set-upstream fork organizations/add
$ git add jce.yaml
$ git commit -m "add jce organization"
[organizations/add 0737ede] add jce organization
1 file changed, 5 insertions(+)
create mode 100644 data/organisations/jce.yaml
$ git rebase main
$ git push --force
Tailwind vs Bootstrap: Pros and Cons
Tags: tailwindcss, bootstrap, beginners, webdev
Published: 2023-05-08 12:30:30

In the world of web development, there are two front-end frameworks that stand out from the rest: Tailwind and Bootstrap. Both frameworks offer a range of features and components that make it easier for developers to create responsive and visually appealing websites. However, they have their own unique approaches and methodologies, which can make it difficult to choose between them. In this article, we will compare Tailwind and Bootstrap, examining their pros and cons to help you decide which one is the best fit for your next web development project.

Read the article on [Liki Blog](https://likims.com/blog/tailwind-vs-bootstrap-pros-and-cons).
Volunteer at a Tech Conference!
Published: 2023-05-08 12:28:59


![photo of volunteers at React Miami](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/257rx5dyfbvf4u9sx93j.jpeg)

I recently volunteered at the [React Miami](https://www.reactmiami.com/) conference. Volunteering made the conference experience better than if I had just attended! Let's talk about why and why YOU should volunteer at a conference 😃

### Network of Volunteers

Volunteering at a conference gets you around fellow volunteers. The volunteers are also in tech (usually), and you get to know them while volunteering together. If you're newer to tech (like me), or not sure if you'll know many people/make connections, volunteering shines as it builds you a network right off the bat!

Come curious, open-minded, and receptive to fellow volunteers and they'll introduce you to people they know. It snowballs from there! The volunteers for React Miami were incredible, hard working, and gregarious.

While every conference has it's own set of people, goals, and roles volunteers can fill, the people helping should be awesome.

### Sense of Purpose

Tech conferences are a hoot, but they can be a lot too! Folks party hard, sometimes a little too hard. Volunteering can keep you from going too far off the deep end, keeping you engaged with what's happening in the talks and/or with attendees.

I mainly helped check people into the conference I recently attended. This was important early on, lots of folks showed up right at the beginning. It was great to help and welcome them!

### Learn a Ton

React Miami featured amazing talks from people in many areas of tech. Being able to attend thanks to volunteering opened my eyes to so much. Video editing in the browser, metrics I hadn't heard of to measure web performance, and a demo of style queries, to name a few!

Learning continually is a pillar of a great technophile. Volunteer and use your free time to be a sponge and soak up all the transformative information you can absorb.

I haven't even broached the idea of traveling and volunteering at a conference you've been eyeing. There are lots of benefits, but these are the highlights for me. Shoutout to [Grammerhub](https://www.grammerhub.org/) for making it possible for me to volunteer.

Take the plunge, you'll thank yourself after you volunteer, particularly if you're newer in tech, trust me!
git-scm on Windows, GitHub contribution workflow
Tags: osdc, github, git
Published: 2023-05-08 12:27:53

_How to add/edit files to GitHub from my Windows environment:_
**first -** download [notepad] (https://notepad-plus-plus.org/downloads/) 
**second -** download [git-scm] (https://git-scm.com/downloads)
//_Do not forget to choose Notepad as the default editing program_

**I have added an organization as yaml file to [
open-source-by-organizations site ] (https://github.com/OSDC-Code-Maven/open-source-by-organizations) by the following instructions:**

$  git clone https://github.com/OSDC-Code-Maven/open-source-by-organizations.git //
_Cloning into 'open-source-by-organizations'_
$ cd open-source-by-organizations/)
$ cat .git/config
$ git checkout -b organizations/add
Switched to a new branch 'organizations/add'
$ git status
On branch organizations/add
nothing to commit, working tree clean
$ cd data/organisations/
$ notepad jce.yaml
$ git remote -v
origin  https://github.com/OSDC-Code-Maven/open-source-by-organizations.git
(fetch)
origin  https://github.com/OSDC-Code-Maven/open-source-by-organizations.git
(push)
$ git push --set-upstream fork organizations/add
$ git add jce.yaml
$ git commit -m "add jce organization"
[organizations/add 0737ede] add jce organization
 1 file changed, 5 insertions(+)
 create mode 100644 data/organisations/jce.yaml
$ git rebase main
$ git push --force

its time for PR waiting for me in the site
Set environment variables in docker
Tags: docker, dockercompose, javascript, react
Published: 2023-05-08 12:19:27

## How to use Env variables in Docker & docker-compose


---

## Dockerfile

### 1. ENV

Use `ENV` command to set env variable in Dockerfile.

```docker
ENV username=barryallen
echo $username // barryallen

# Build this image and run it as a container
docker build -t docker-env .

docker run docker-env
# logs "barryallen"
```

Environment variables defined with ENV command are persisted in multiple containers running the same image. These can be overridden using run command with -e flag.

```docker
# Use -e or --env to override env variables in Dockerfile via build command
docker run -e/--env "username=clark kent" docker-env

# Use --env-file to use .env file to override env variables in Dockerfile
docker run --env-file .env docker-env
```

Use this to override a variables in a specific container. Other containers running without -e flag still uses env variable defined in Dockerfile

### 2. ARG

Use `ARG` command to use dynamic values that are only necessary while building the image and not needed while running it as container

```docker
ARG location="Gotham City"

echo $location // Gotham City

# build the image & run in container
docker build -t docker-env .

docker run docker-env
# location will not be available as ENV variable in containers
```

This ARG variable can be dynamically passed in build command as 👇

```docker
docker build -t app-latest --build-arg "location=Watch Tower"
```

### 3. Use ARG as ENV

We can persist `ARG` variables by mapping them to `ENV` variables in Dockerfile.

```docker
ARG version
ENV VERSION=${version}
echo $VERSION

docker build -t docker-env . --build-arg "version=1.0.1"

docker run docker-env
# 1.0.1

```
---
## docker-compose

### 1. environment

```docker
docker-env:
    build:
        context: ./
    environment:
        - VERSION=1.0.0
```

You can set environment variables in a service’s containers with the `environment` attribute in your Compose file.

This works the same way as `docker run -e VARIABLE=VALUE docker-image`

### 2. env_file

```docker
docker-env:
    build:
        context: ./
    env_file: .env
```

Instead of hardcoding env variables in your compose file, you can add those keys in a .env file and provide it to `env_file` attribute.

This works the same way as `docker run --env-file=FILE docker-image`

When both `env_file` and `environment` are set for a service, values set by `environment` have precedence.

---
Thanks for reading!
cheers :) 
---
Checkout my other blogs

- [React Portals](https://dev.to/harireddy7/react-portals-intro-71e)
- [Yarn essentials](https://dev.to/harireddy7/yarn-essentials-1307)
- [Simple intro to SSH](https://dev.to/harireddy7/simple-intro-to-ssh-2mo5)
Automating Node.js Server Start-Up with Bash Script
Tags: javascript, beginners, bash, linux
Published: 2023-05-08 12:07:30

If you're tired of manually starting your server every time you work on your project, you might want to consider using a Bash script to automate the process. In this tutorial, I'll show you how to create a simple Bash script that you can use to start your server with just a few clicks.

## Prerequisites

Before we begin, make sure that you have the following:

- A Linux machine
- Node.js and Yarn installed on your machine
- A server project that you want to start using the script

## Step 1: Create the Bash script

Open a text editor of your choice and create a new file. You can name the file whatever you like, but make sure to give it a `.sh` extension to indicate that it's a Bash script. For example, you could name the file `start-server.sh`.

In the text editor, add the following code to the file:

```bash
#!/bin/bash

# Prompt the user to choose the server mode
echo "Enter the server mode you want to run:"
echo "1. Development"
echo "2. Production"
read -r mode

# Set the hyve-api directory path as a variable
API_DIR="/path/to/your/server/project"

# Set the server command based on the chosen mode
if [ "$mode" == "1" ]; then
    SERVER_COMMAND="yarn dev"
elif [ "$mode" == "2" ]; then
    SERVER_COMMAND="yarn start"
else
    echo "Invalid input. Please run the script again and choose a valid option."
    exit 1
fi

# Change to the server directory and start the server
cd "$API_DIR" || exit 1
eval "$SERVER_COMMAND"
```

In the code above, we're prompting the user to choose whether they want to run the server in development or production mode, and then setting the appropriate server command based on their choice. We're also setting the path to our server project as a variable so that we can easily change it later if needed.

## Step 2: Make the script executable

Before we can run the script, we need to make it executable. Open a terminal window and navigate to the directory where you saved the script. Then, enter the following command:

```bash
chmod +x start-server.sh
```

This command will give the script permission to execute.

## Step 3: Run the script

To run the script, simply double-click on the file. This will open terminal window and start the server according to the mode you choose earlier.

If you want to run the script from the terminal instead, navigate to the directory where you saved the script and enter the following command:

```bash
./start-server.sh
```

This will start the server according to the mode you chose earlier.

## Step 4: Customize the script for your project

If you want to use the script for your own project, you'll need to customize it by changing the `API_DIR` variable to the path of your project. You may also need to update the server commands if your project uses a different command to start the server.

Thanks for reading, I hope this helps and inspires you to build dope stuffs 🚀. Happy hacking!