Git Product home page Git Product logo

dotfiles's Introduction

+# Instructions

git clone https://github.com/oriolagobat/dotfiles
cd dotfiles
chmod +x pre-install.sh
chmod +x post-install.sh
./pre-install.sh

Then, after the system has restarted, run the following command:

./post-install.sh

TODO

  • Set up gpg
    • Get my pub.key: tar -xzf gpg-datadir.tar.gz .gnupg/my_keys/pub.key
    • gpg --import pub.key
    • gpg --edit-key "email from gpg key" -> trust -> 5
  • Set up ssh with github: ssh-keygen -t ed25519-sk -C "email", and add to github
  • Set wallpaper
  • Set git user.email to the gpg email
  • Set git signing key to the public gpg id
  • Set up yubikey for sign-in:
mkdir ~/.config/Yubico
pamu2fcfg >> ~/.config/Yubico/u2f_keys  # For each key
echo "auth required pam_u2f.so cue [cue_prompt=Tap the Yubikey to sudo]" > /etc/pam.d/sudo
echo "auth required pam_u2f.so cue [cue_prompt=Tap the Yubikey to unlock]" > /etc/pam.d/i3lock
echo "auth required pam_u2f.so cue [cue_prompt=Tap the Yubikey to login]" > /etc/pam.d/login
echo "auth required pam_u2f.so cue [cue_prompt=Tap the Yubikey to login]" > /etc/pam.d/system-login

Usefull commands

  • ssh -oHostKeyAlgorithms=+ssh-dss @ -p
  • tar -czvf .tar.gz # Compress
  • tar -xzvf .tar.gz # Decompress
  • git rebase --signoff --root # Resign all commits
  • pandoc file.md | lynx -stdin # Preview md files from cli
  • gpg-connect-agent "key serial number" "learn --force" /bye # Link yubikey with same pgp keys to work on linux
  • shuf -i 10-99 -n 1 # Generate one random number between 10 and 100

dotfiles's People

Contributors

oriolagobat avatar

Watchers

 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.