Skip to content

Instantly share code, notes, and snippets.

View MalteHei's full-sized avatar
🕴️

Malte MalteHei

🕴️
View GitHub Profile
@MalteHei
MalteHei / authorize_key.sh
Last active March 2, 2023 11:04
Add Your Public SSH Key to a Machine for Passwordless Logins
SSH_DIR=~/.ssh
AUTH_KEYS_FILE=$SSH_DIR/authorized_keys
mkdir -p $SSH_DIR
chmod 700 $SSH_DIR
touch $AUTH_KEYS_FILE
chmod 600 $AUTH_KEYS_FILE
echo -n 'INSERT_YOUR_PUBLIC_KEY_HERE' >> $AUTH_KEYS_FILE
@MalteHei
MalteHei / migrate-npm-repo.py
Last active February 12, 2023 19:38 — forked from birolemekli/movedNexusRepo.py
Nexus NPM Migration
import requests
from requests.auth import HTTPBasicAuth
import os
import time
from getpass import getpass
import pprint as pp
currentNexus = "https://old-nexus.example.com"
newNexus = "https://new-nexus.example.com"
currentRepositoryName = "npm-old-private"