Coder Social home page Coder Social logo

sd-template's Introduction

Sensitive Dotfiles Template

Sensitive dotfiles are dotfiles which contain confidential information that must be kept safe and out of reach from all outsiders unless they have permission to access it.

This repository helps you to initialize a sensitive dotfiles repository managed by homeshick.

Prerequisites

Make sure you have homeshick installed.

Usage

This guide works with bash, zsh and fish.

  1. Provide your GitHub username and choose a name for your sensitive dotfiles repository:

    export GITHUB_USERNAME="username"
    export SENSITIVE_DOTFILES_REPO="sd"
  2. Clone this repository into $HOME/.homesick/repos/<NAME_OF_YOUR_SENSITIVE_DOTFILES_REPO>:

    git clone https://github.com/mamiu/sd-template $HOME/.homesick/repos/$SENSITIVE_DOTFILES_REPO
  3. Create a new private sensitive dotfiles GitHub repository with the name you chose in step 1.

    MAKE SURE THAT IT IS A PRIVATE REPOSITORY!!!
    Otherwise, everyone has access to your sensitive dotfiles, which could potentially lead to serious damage.

  4. Execute the initialization script in this repo:

    $HOME/.homesick/repos/$SENSITIVE_DOTFILES_REPO/init-sensitive-dotfiles.sh -u $GITHUB_USERNAME -r $SENSITIVE_DOTFILES_REPO
  5. Follow the script output to create a new deploy key in your sensitive dotfiles repository (GitHub Repository -> Settings -> Deploy keys -> Add deploy key)

  6. Track all the files you want to store in your sensitive dotfiles repository:

    # For each file:
    homeshick track $SENSITIVE_DOTFILES_REPO <FILENAME>

    E.g. homeshick track $SENSITIVE_DOTFILES_REPO ~/.ssh/id_rsa*

  7. Commit and push all sensitive dotfiles to your sensitive dotfiles repository on GitHub:

    homeshick cd $SENSITIVE_DOTFILES_REPO
    git add -A
    git commit -m "initialize sensitive dotfiles"
    git push -u origin main

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.