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 / 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
@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 (
@ugurozgen
ugurozgen / check_docker_container.sh
Created October 11, 2017 13:46 — forked from ekristen/check_docker_container.sh
Bash Script for Nagios to Check Status of Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Depending on your docker configuration, root might be required. If your nrpe user has rights
# to talk to the docker daemon, then root is not required. This is why root privileges are not
@ugurozgen
ugurozgen / build-git.sh
Last active July 13, 2019 06:09 — forked from pescobar/build-git.sh
compile git with openssl instead of gnutls
#!/usr/bin/env bash
# Clear out all previous attempts
rm -rf "/tmp/source-git/"
#before apt-get update source list under /etc/apt/sources.list
#deb-src http://archive.ubuntu.com/ubuntu trusty main restricted #Added by software-properties
#deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty restricted main universe multiverse #Added by software-properties
#deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates restricted main universe multiverse #Added by software-properties
#deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse #Added by software-properties

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: