Telegram Group & Telegram Channel
Probably the best script of 2024 for me

And again gh/<username>.keys (https://www.tg-me.com/us/oleg_log/com.oleg_log/5968)

#!/bin/bash

# Replace this with your GitHub username
GITHUB_USERNAME=$1
echo "Fetching for user $GITHUB_USERNAME"

# Fetch the public SSH keys from your GitHub account
GITHUB_KEYS=$(curl -s https://github.com/$GITHUB_USERNAME.keys)

# Check if the .ssh directory exists, if not create it
if [ ! -d "$HOME/.ssh" ]; then
echo "Creating ~/.ssh directory..."
mkdir -p "$HOME/.ssh"
chmod 700 "$HOME/.ssh"
fi

# Append the fetched GitHub public keys to the authorized_keys file
echo "Adding GitHub SSH keys to ~/.ssh/authorized_keys..."
echo "$GITHUB_KEYS" >> "$HOME/.ssh/authorized_keys"

# Set the correct permissions for the authorized_keys file
chmod 600 "$HOME/.ssh/authorized_keys"
echo "GitHub SSH keys have been added successfully!"



tg-me.com/oleg_log/6039
Create:
Last Update:

Probably the best script of 2024 for me

And again gh/<username>.keys (https://www.tg-me.com/us/oleg_log/com.oleg_log/5968)

#!/bin/bash

# Replace this with your GitHub username
GITHUB_USERNAME=$1
echo "Fetching for user $GITHUB_USERNAME"

# Fetch the public SSH keys from your GitHub account
GITHUB_KEYS=$(curl -s https://github.com/$GITHUB_USERNAME.keys)

# Check if the .ssh directory exists, if not create it
if [ ! -d "$HOME/.ssh" ]; then
echo "Creating ~/.ssh directory..."
mkdir -p "$HOME/.ssh"
chmod 700 "$HOME/.ssh"
fi

# Append the fetched GitHub public keys to the authorized_keys file
echo "Adding GitHub SSH keys to ~/.ssh/authorized_keys..."
echo "$GITHUB_KEYS" >> "$HOME/.ssh/authorized_keys"

# Set the correct permissions for the authorized_keys file
chmod 600 "$HOME/.ssh/authorized_keys"
echo "GitHub SSH keys have been added successfully!"

BY oleg_log


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/oleg_log/6039

View MORE
Open in Telegram


oleg_log Telegram | DID YOU KNOW?

Date: |

Start with a fresh view of investing strategy. The combination of risks and fads this quarter looks to be topping. That means the future is ready to move in.Likely, there will not be a wholesale shift. Company actions will aim to benefit from economic growth, inflationary pressures and a return of market-determined interest rates. In turn, all of that should drive the stock market and investment returns higher.

A project of our size needs at least a few hundred million dollars per year to keep going,” Mr. Durov wrote in his public channel on Telegram late last year. “While doing that, we will remain independent and stay true to our values, redefining how a tech company should operate.

oleg_log from us


Telegram oleg_log
FROM USA