Git Product home page Git Product logo

dotfiles's Introduction

Dotfiles (Configuration files for GNU/Linux based OS)

Note: Since I have moved to NixOS, I am slowly translating and moving over all my dotfiles to nix in this repository.

Installation

Clone to ~/.dotfiles and later symlink the configurations required

# To clone without submodules:
# git clone https://github.com/lokesh1197/dotfiles ~/.dotfiles
git clone --recurse-submodules https://github.com/lokesh1197/dotfiles ~/.dotfiles

(outdated)

Run the below command in terminal. It clones the bare repository at $HOME/.cfg and creates a backup of conflicting files at .config-backup. You can read the source here.

curl -Lks http://bit.do/lokesh-dotfiles | sudo -u <username> /bin/bash

Run the below command if the above doesn’t work.

curl -Lks https://raw.githubusercontent.com/lokesh1197/dotfiles/master/.bin/install-dotfiles.sh | sudo -u <username> /bin/bash

Xmonad

  • Install GHC with stack
stack setup
  • Create `stack.yaml` file if it doesn’t exist
stack init
  • To build and install or update
stack install
  • To recompile and restart
xmonad --recompile
xmonad --restart

Mail management

References: xoauth2-setup

Using mutt-wizard (email account management), mbsync (sync maildir), msmtp (send mail), notmuch (mail indexer) and emacs (notmuch backend)

General Steps:

  1. Use mutt-wizard to generate mbsync and msmtp configuration
  2. Use mailsync command from mutt-wizard to sync mail
  3. Use emacs to view and send mails

Steps to handle oauth2:

  1. Install xoauth2 library for mbsync: clone cyrus-sasl-xoauth2 repository and build it
git clone https://github.com/moriyoshi/cyrus-sasl-xoauth2.git
cd cyrus-sasl-xoauth2
./autogen.sh && ./configure
# change pkglibdir to the location where sasl2 libraries are present in the Makefile
make
sudo make install
  1. Install mbsync using the above library: clone isync repository and build it
git clone https://git.code.sf.net/p/isync/isync
cd isync
./autogen.sh && ./configure && make
sudo make install
  1. Get the tokens using oauth2: clone M365-IMAP repository and follow the readme
git clone https://github.com/UvA-FNWI/M365-IMAP
cd M365-IMAP
pip install msal								# python dependency
python refresh_token.py					# to be used to get access token

Nvm (Node Version Manager)

  • To set default version, run nvm alias default <version>

Wireshark

Display filter

https -> ssl.handshake.type == 1 http -> http.request

http server name -> http.host https server name -> tls.handshake.extensions_server_name

Note

Currently disabled services:

  • cupsd, avahi-daemon: printer daemons
  • bluetoothd: bluetooth daemon

dotfiles's People

Contributors

lokeshmohanty avatar lokesh1197arc avatar

Watchers

James Cloos avatar  avatar

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.