Giter Site home page Giter Site logo

dotfiles's Introduction

Dotfiles

What is this?

As I am working between multiple machines, it took me days trying to set up my dev machine everytime I moved to a new computer. I wanted to centralize all my configurations and set up my dev tools quickly and automatically with just running a single script.

This dotfiles has various tools, plugins, key-bindings and configurations that I have written and improved or sourced over years. This dotfiles has tons of sensible and useful configurations and bindings for tmux, vim and zsh, some of them being must haves.

Dependencies

Currently this dotfiles depends on the following. If you have dependencies missing you will be asked to install it during installation.

Dependencies are automatically installed in osx

Mandatory

  1. NeoVim
  2. zsh shell

How to set up

The setup of dotfiles is done using the init.sh script.

    $ cd ~
    $ git clone https://github.com/adikari/dotfiles.git
    $ cd dotfiles
    $ ./init

Post setup

Calendar and Email sync requires Oauth tokens and have to be ran manually for the first time. After the initial token is received, it is refreshed automatically.

# get calendar token
vdirsyncer discover

# get email token
mailctl authorize microsoft <email address>

# google drive token
rclone config create gdrive@personal drive scope drive
rclone config # set password

# davmail
1. navigate to localhost:1080
2. enter username password and complete oauth setup

SSH and GPG keys

  1. GPG keys are in 1 password
op document list
op document get <public_key_id> --out-file public_key
op document get <private_key_id> --out-file private_key
gpg --import private_key
gpg --import public_key
gpg --edit-key [email protected] trust # set to 5 (ultimate trust)
  1. Get github ssh keys Create ~/.ssh/github_id_rsa and ~/.ssh/github_id_rsa.pub Copy the content of keys from 1 password then add it in the file Update the ssh key permissions
chmod 600 ~/.ssh/github_id_rsa
chmod 644 ~/.ssh/github_id_rsa.pub

Adding printer

  1. Open cups administration http://localhost:631/admin. Enter operating system username and password
  2. Add a new printer
Description:	Brother MFC-L2800DW
Location:	Office
Driver:	Brother MFC-L2710DW series, using brlaser v6 (grayscale, 2-sided printing)
Connection:	lpd://192.168.0.2/BINARY_P1
Defaults:	job-sheets=none, none media=iso_a4_210x297mm sides=two-sided-long-edge

Enrolling finger print

  1. Register right index finger
fprintd-enroll

# verify
fprintd-verify
  1. Register left index finger
fprintd-enroll -f left-index-finger

# verify
fprintd-verify -f left-index-finger

Connecting to VPN

  1. Firstly, copy the peer config and place it in /etc/wireguard/peer_name.conf
  2. Change the owner of /etc/wireguard to current user if it is not already owned by current user
  3. Enable the wg-quick systemd service sudo systemctl enable --now wg-quick@peer_name

dotfiles's People

Contributors

adikari avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dotfiles's Issues

cannot set up git config

If the git config could not be wrote, I get the error:

could not lock config file /home/vagrant/.gitconfig: No such file or directory

It should either discontinue set up of git if there is error or properly set it up.

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.