Skip to content

Instantly share code, notes, and snippets.

View ugurozgen's full-sized avatar

Uğur ÖZGEN ugurozgen

  • istanbul
View GitHub Profile
@ugurozgen
ugurozgen / multiple-ssh-keys-git.adoc
Created February 19, 2023 11:47 — forked from alejandro-martin/multiple-ssh-keys-git.adoc
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory:

@ugurozgen
ugurozgen / multiple-ssh-keys-git.adoc
Created February 19, 2023 11:47 — forked from alejandro-martin/multiple-ssh-keys-git.adoc
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory:

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@ugurozgen
ugurozgen / rtor.sh
Last active March 19, 2020 18:47
redis to redis easy migration ==> ./rtor.sh from.redis.com to.redis.com
#!/bin/bash
FROM=$1
TO=$2
npm i redis-dump -g
redis-dump -h $FROM > dump.txt
cat dump.txt | redis-cli -h $TO
hasCli() {
hasCurl=$(which curl)
if [ "$?" = "1" ]; then
echo "You need curl to use this script."
exit 1
fi
}
@ugurozgen
ugurozgen / tmux-cheat-sheet.md
Created February 14, 2020 08:09 — forked from michaellihs/tmux-cheat-sheet.md
tmux Cheat Sheet
@ugurozgen
ugurozgen / tmux-cheat-sheet.md
Created February 14, 2020 08:09 — forked from michaellihs/tmux-cheat-sheet.md
tmux Cheat Sheet
@ugurozgen
ugurozgen / validaion_test.go
Created August 10, 2018 13:17 — forked from Code-Hex/validaion_test.go
Go, inteface type validation (channel and pointer of empty struct)
package main
import (
"reflect"
"testing"
)
type TS struct {
id int
name string
for NODE in $(docker node ls --format '{{.Hostname}}'); do echo -e "${NODE} - $(docker node inspect --format '{{.Status.Addr}}' "${NODE}")"; done
@ugurozgen
ugurozgen / client.go
Created January 8, 2018 15:40 — forked from kenshinx/client.go
golang socket server & client ping-pong demo
package main
import (
"log"
"net"
"strconv"
"strings"
)
const (