Skip to content

Instantly share code, notes, and snippets.

View nischay876's full-sized avatar

Nischay Sharma nischay876

View GitHub Profile
@rameerez
rameerez / add-new-website.sh
Last active June 12, 2024 23:56
Script to set up a new site with SSL cert in a Unix (Apache VirtualHost) server
#!/bin/sh
# Should be run as sudo
# Usage: add-new-website.sh domain -- script to set up a new site with SSL cert
# where:
# domain website domain without subdomains (ex: example.com)
if [ ! -z "$1" ]
then
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active July 22, 2024 10:35 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"