Skip to content

Instantly share code, notes, and snippets.

View kulcsarrudolf's full-sized avatar

Kulcsár Rudolf kulcsarrudolf

View GitHub Profile
@kulcsarrudolf
kulcsarrudolf / SKILL.md
Created April 20, 2026 05:04
Claude Code skill: set up SSH keys for multiple Git accounts (GitHub, Bitbucket, GitLab)
name setup-multi-git-ssh
description Set up SSH keys for multiple Git accounts in one shot. Ask the user for their account emails and labels, then generate keys, write ~/.ssh/config, guide them through adding each key to the right platform, and turn on commit signing. Use when the user says "set up my Git SSH keys", "I have two GitHub accounts", "I need to use Bitbucket and GitHub together", or sees errors like "Key is already in use" or "Please make sure you have the correct access rights".

Set up multiple Git accounts in one go

You are the agent. The user wants a working multi-account SSH setup with minimal effort. Ask for the account list, then do the work.

Step 1. Ask for the account list

@kulcsarrudolf
kulcsarrudolf / generate-ssh-config.sh
Created April 20, 2026 04:53
Generate ~/.ssh/config for multiple Git accounts (personal GitHub + work GitHub + Bitbucket)
#!/usr/bin/env bash
# Generate ~/.ssh/config for multiple Git accounts.
# Covers: personal GitHub, work GitHub, and a Bitbucket account.
# Adjust the key paths and host aliases to fit your setup.
set -euo pipefail
SSH_DIR="$HOME/.ssh"
CONFIG_FILE="$SSH_DIR/config"
import { useState } from "react";
import axios, { AxiosError } from "axios";
import config from "../config";
import moment from "moment";
import { useLoading } from "./useLoading";
import { useNavigate } from "react-router-dom";
interface ApiError {
code: number;
message: string;
@kulcsarrudolf
kulcsarrudolf / writeObjectToJson.js
Created June 14, 2022 13:45
writeObjectToJson.js
const fs = require("fs");
var Buffer = require("buffer/").Buffer;
const objectToJsonFile = async (targetDirectory, fileName, object) => {
const objectJSON = JSON.stringify(object);
const file = `${targetDirectory}/${fileName}.json`;
try {
const data = new Uint8Array(Buffer.from(objectJSON));
await fs.promises.writeFile(file, data);
{
"book": [
{
"title": "Mózes első könyve",
"toc2": "1Mózes",
"toc3": "1Móz",
"slug": "GEN",
"url": "/uj/GEN",
"part": "oszovetseg",
"chapter": [
@kulcsarrudolf
kulcsarrudolf / GenerateARangeOfNumbers.js
Created April 10, 2020 16:05
Use Recursion to Create a Range of NumbersPassed
//Create a Range of Numbers
function rangeOfNumbers(startNum, endNum) {
if (startNum === endNum) {
return [startNum];
}else {
const rangeArray = rangeOfNumbers(startNum, endNum-1);
rangeArray.push(endNum);
return rangeArray;
}
@kulcsarrudolf
kulcsarrudolf / FizzBuzzJava8.java
Last active March 5, 2020 08:45
FizzBuzz Java8
import java.util.stream.IntStream;
/*
* Write a program that prints the numbers from 1 to 1000. But for multiples of three print "Fizz"
* instead of the number and for the multiples of five print "Buzz". For numbers which are multiples
* of both three and five print "FizzBuzz".
*/
public class Main {
public static void main(String args[]) {
package com.rudolf.fizzbuzz;
/*
* Write a program that prints the numbers from 1 to 1000. But for multiples of three print "Fizz"
* instead of the number and for the multiples of five print "Buzz". For numbers which are multiples
* of both three and five print "FizzBuzz".
*/
//CHALLENGE ACCEPTED BY RUDOLF (kulcsarrudolf.com)
public class Main {