Skip to content

Instantly share code, notes, and snippets.

View emildimitrov's full-sized avatar
🕶️

Emil Dimitrov emildimitrov

🕶️
View GitHub Profile
@emildimitrov
emildimitrov / cloudSettings
Last active June 4, 2020 13:54
vs code config
{"lastUpload":"2020-06-04T13:54:39.611Z","extensionVersion":"v3.4.3"}
@emildimitrov
emildimitrov / gpg-github-ssh-commit-signing.md
Last active September 18, 2022 15:48
Using GPG for GitHub authentication and commit signing

Using GPG for github ssh and commit signing

Generate master key

Master key will be used only for certification - signing certfiicates for subkeys. Sign, Encrypt, Authenticate will be delegated to subkey/s.

Run gpg --expert --full-generate-key

  • Choose RSA (set your own capabilities)
@emildimitrov
emildimitrov / dotfiles-bare-repo.md
Created September 18, 2022 17:17
Dotfiles bare repo setup

Dotfiles with bare git repository

Why bare repository

Traditional dotfiles management is relying on keeping you repository in sync with the OS dotfiles via symlinks which is not ideal. Bare repo is solving that, because it enables us to keep the tracked files (working tree) separate from the internals (.git folder) In our case the working tree will be $HOME and the internals will be in $HOME/projects/dotfiles.git

Setup

Add in your shell config the following

@emildimitrov
emildimitrov / simple-arch-install-guide.md
Created September 18, 2022 17:20
Arch linux install guide

Arch linux install guide

Easy arch linux setup for folks who want to keep it simple.

Prerequisites

  • UEFI firmware laptop/PC. This guid does not cover BIOS specific installation.
  • Internet connection. If you use cable make sure its plugged.
  • Flash drive.
@emildimitrov
emildimitrov / microservices-readme-standard.md
Last active September 18, 2022 17:52
Creating microservice readme

example-system-name

CircleCI Coverage Status

The idea for those badges is that the dev can quickly see the status of the tests & their coverage

Description

@emildimitrov
emildimitrov / config.module.ts
Last active January 22, 2023 19:12
Best nestjs config approach
import { Global, Module } from '@nestjs/common';
import { ConfigService } from './config.service';
@Global()
@Module({
providers: [ConfigService],
exports: [ConfigService],
})
export class ConfigModule {}