Skip to content

Instantly share code, notes, and snippets.

View klaushardt's full-sized avatar

Philipp Klaushardt klaushardt

View GitHub Profile
@klaushardt
klaushardt / .vimrc
Created October 13, 2022 08:29
vimrc
" vimrc forked from https://gist.github.com/simonista/8703722
" Do not try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
@klaushardt
klaushardt / UseFullStuff.md
Last active January 21, 2024 22:10
Collected usefull Snippets

Unsorted usefull stuff collected from the interwebs

tmux detach other client

tmux a -d

use it in .ssh/config

Host servername
 HostName 192.168.1.123
@klaushardt
klaushardt / FirstThingsOnAServer.md
Last active December 11, 2023 07:47
First things to do on a Server

First Things on a Server

Add User and login

sudo useradd deploy
sudo passwd deploy
sudo usermod -aG sudo deploy
exit

Continue as deploy@server

Install essential packages and upgrade script

@klaushardt
klaushardt / gpg2-with-master-keypair.sh
Created January 7, 2019 11:32 — forked from steeb/gpg2-with-master-keypair.sh
GPG2 with master keypair
#debian install gpg2
sudo apt-get install -t experimental gnupg2 dirmngr
#verify versions
gpg2 --version
#gpg (GnuPG) 2.1.1
#libgcrypt 1.6.2
dirmngr --version
#dirmngr (GnuPG) 2.1.1

Keybase proof

I hereby claim:

  • I am klaushardt on github.
  • I am flipp (https://keybase.io/flipp) on keybase.
  • I have a public key ASCClk8846qwtq5QQmNw1NuT4p1mTddvzbY-_zWBUOZqaQo

To claim this, I am signing this object:

@klaushardt
klaushardt / GPG Security Best Practice.md
Created August 5, 2018 10:31 — forked from Integralist/GPG Security Best Practice.md
[GPG Security Best Practice] #gpg #security #encryption

Concept

https://alexcabal.com/creating-the-perfect-gpg-keypair/

  1. Create a regular GPG keypair. By default GPG creates one signing subkey (your identity) and one encryption subkey (how you receive messages intended for you).

  2. Use GPG to add an additional signing subkey to your keypair. This new subkey is linked to the first signing key. Now we have three subkeys.

  3. This keypair is your master keypair. Store it in a protected place like your house or a safe-deposit box. Your master keypair is the one whose loss would be truly catastrophic.

@klaushardt
klaushardt / .vimrc
Created July 6, 2018 18:46 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on