Skip to content

Instantly share code, notes, and snippets.

View Firevvork's full-sized avatar
🥰

lr Firevvork

🥰
View GitHub Profile
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active July 20, 2025 03:52
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@cloudwu
cloudwu / print_r.lua
Created May 11, 2024 11:17
A function in Lua similar to PHP's print_r
local function keys(o)
local len = #o
local skeys = {}
local ukeys = {}
local n = 1
for k,v in pairs(o) do
local nk = math.tointeger(k)
if nk == nil or nk <= 0 or nk > len then
local sk = tostring(k)
if type(k) == "string" then
@cloudwu
cloudwu / handle.c
Last active November 14, 2024 04:21
Unique handle
#include "handle.h"
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#define HANDLE_USED 0x80000000
size_t
handle_size(int bits) {
int n = 1 << bits;
@CypherpunkSamurai
CypherpunkSamurai / spec.md
Last active July 21, 2025 07:35
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.