Skip to content

Instantly share code, notes, and snippets.

View n1rjal's full-sized avatar

Nirjal Paudel n1rjal

View GitHub Profile
@n1rjal
n1rjal / sh
Created October 22, 2025 13:32
new_ubuntu
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Blue</h1>
<p>This is a Blue paragraph.</p>
@n1rjal
n1rjal / github-deploy-ssh.sh
Last active April 30, 2023 14:39
Use this to deploy to github
#!/bin/sh
# DEPLOYING FOR GITHUB
USER="ubuntu"
ABS_PATH="/home/$USER"
if [ -e "$ABS_PATH/.ssh/github_repo" ]; then
echo "Github repo exists! skipping"
else
ssh-keygen -b 2048 -t rsa -q -N "" -f $ABS_PATH/.ssh/github_repo
@n1rjal
n1rjal / project_startup.sh
Last active April 30, 2023 14:01
project_startup
# Example to run
# ./script.sh -u GITHUB_USERNAME -p NAME_OF_PROJECT -r REPO_NAME -e EMAIL -k SSH_PUBLIC_KEY
#
ABS_PATH="/home/ubuntu"
while getopts u:p:r:e:k: option