Skip to content

Instantly share code, notes, and snippets.

View projectoperations's full-sized avatar
💭
building learning and connections

projectoperations projectoperations

💭
building learning and connections
View GitHub Profile
@projectoperations
projectoperations / apache-web-server-docker.md
Created September 18, 2024 01:31 — forked from JoseAndresHV/apache-web-server-docker.md
How to create an Apache Web Server in a Docker Container

Apache Web Server in a Docker Container

1. Download Apache Server Image

docker pull httpd

2. Create a Container

Public requests port 8080port 80 on the Container
Map /home/user/website//usr/local/apache2/htdocs/

docker run -dit --name webserver -p 8080:80 -v /home/user/website/:/usr/local/apache2/htdocs/ httpd:latest
@projectoperations
projectoperations / Docker connect to remote server.md
Created September 9, 2024 02:50 — forked from kekru/Docker connect to remote server.md
Connect to another host with your docker client, without modifying your local Docker installation

Run commands on remote Docker host

This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.

Enable Docker Remote API

First be sure to enable the Docker Remote API on the remote host.

This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.

@projectoperations
projectoperations / grub_efi_loader.sh
Created September 3, 2024 15:24 — forked from rakeshtembhurne/grub_efi_loader.sh
Reinstall the GRUB boot loader to your Ubuntu installation in EFI mode this way (From live CD)
sudo mount /dev/sdXXX /mnt
sudo mount /dev/sdXX /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sdX
update-grub
# Note : sdX = disk | sdXX = efi partition | sdXXX = system partition
# 'Fixed' by replacing /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi with /boot/efi/EFI/arch/grubx64.efi
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
@projectoperations
projectoperations / README.md
Created August 10, 2024 13:52 — forked from springcomp/README.md
Installing Docker and Kubernetes for WSL2 without Docker Desktop

Overview

This file outlines the steps taken to install and run Docker on Windows (WSL2) without Docker Desktop. To mimic the existing experience, those steps will guide you through creating a separate Linux distribution to host the Docker engine.

Download and install Linux distro from tarball

Distribution Location
@projectoperations
projectoperations / devcontainer.json
Created August 10, 2024 03:24 — forked from kasuken/devcontainer.json
GitHub Codespaces devcontainer.json for Docusaurus
{
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu-20.04",
"settings": {
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
@projectoperations
projectoperations / create-docker-tls.sh
Created July 26, 2024 07:27 — forked from Stono/create-docker-tls.sh
Creating and setting up Docker for TLS
#!/bin/bash
# This script will help you setup Docker for TLS authentication.
# Run it passing in the arguement for the FQDN of your docker server
#
# For example:
# ./create-docker-tls.sh myhost.docker.com
#
# The script will also create a profile.d (if it exists) entry
# which configures your docker client to use TLS
#
@projectoperations
projectoperations / project.json
Created July 9, 2024 12:22 — forked from CESARDELATORRE/project.json
Sample project.json of ASP.NET Core 1.0 RTM supporting multiple frameworks
{
"dependencies": {
"Microsoft.AspNetCore.Mvc": "1.0.0",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
"Microsoft.Extensions.Configuration.FileExtensions": "1.0.0",
"Microsoft.Extensions.Configuration.Json": "1.0.0",
"Microsoft.Extensions.Logging": "1.0.0",
"Microsoft.Extensions.Logging.Console": "1.0.0",
@projectoperations
projectoperations / VScode-remote setup.sh
Created July 5, 2024 12:25 — forked from Udara-Dananjaya/VScode-remote setup.sh
Configure VSCode-remote SSH: Set up user access, VS Code, GIT, and OpenSSH for Ubuntu and Windows. Seamlessly edit remote files!
# Configure VSCode-remote SSH for Ubuntu and Windows
# Setup user account with SSH access on Ubuntu
sudo -s
adduser username
sudo usermod -aG sudo username
sudo ufw app list
sudo ufw allow OpenSSH
sudo ufw enable # Confirm with 'y'
sudo ufw status
@projectoperations
projectoperations / github_bitbucket_multiple_ssh_keys.md
Created June 30, 2024 06:55 — forked from yinzara/github_bitbucket_multiple_ssh_keys.md
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.