This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
//struct | |
type carparts struct { | |
window int | |
doors int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here's a comprehensive documentation for setting up a Continuous Deployment (CD) pipeline using GitHub Actions for a production environment, utilizing self-hosted runners, Nginx configuration, and SSL certificates with Certbot. | |
Continuous Deployment Pipeline Documentation | |
Overview | |
This documentation outlines the process of building a Continuous Deployment (CD) pipeline using GitHub Actions for a production environment. The pipeline utilizes self-hosted runners, configures Nginx as the web server, and sets up SSL certificates using Certbot for secure HTTPS connections. | |
Prerequisites | |
Before proceeding with the setup, ensure that you have the following prerequisites: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Define the fixed username for the operations | |
USER="newuser" | |
REMOTE_HOST="52.23.172.182" # Replace with your remote host address | |
# Ensure the user exists | |
if ! id -u "$USER" >/dev/null 2>&1; then | |
sudo useradd -m "$USER" | |
echo "$USER:$USER" | sudo chpasswd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -ne 2 ]; then | |
echo "Please pass two parameters." | |
exit 1 | |
fi | |
FILEPATH="$1" | |
DESTINATION_PATH="$2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap'); | |
*{ | |
box-sizing: border-box; | |
margin-top: 5px; | |
margin-left: 10px; | |
margin-right: 10px; | |
margin-bottom: 5px; | |
background-color: #f2f2f2; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './App.css'; | |
import Api from './Api'; | |
import Nav from './components/navigation'; | |
import Options from './components/options'; | |
import News from './components/news'; | |
import TheLastest from './components/lastest'; | |
import Watchlist from './components/watchlist'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
export default function Watchlist(){ | |
return ( | |
<div className="watchlist"> | |
<div> | |
<h1> | |
Watchlist | |
</h1> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default [ | |
{ | |
id: 8, | |
arrival: "2mins ago", | |
link: "https://cointelegraph.com/news/wuhan-omits-nfts-from-metaverse-plan-amid-regulatory-uncertainty-in-china", | |
heading: "Wuhan omits NFTs from metaverse plan amid regulatory uncertainty in China", | |
source: "cointelegraph", | |
}, | |
{ | |
id: 9, |