GithubHelp home page GithubHelp logo

almoorthi / dotfiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frioux/dotfiles

0.0 2.0 0.0 3.81 MB

Perl 19.22% Shell 17.10% Python 17.40% JavaScript 0.90% Vim Script 43.42% Haskell 1.96%

dotfiles's Introduction

dotfiles Setup

touch ~/.frewmbot-local ~/.frewmbot-maintained

sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
mkdir -p ~/code
git clone git://github.com/frioux/dotfiles ~/code/dotfiles
cd ~/code/dotfiles
sudo ./packages.sh
./install.sh
sudo bash -c 'cat sysctl.conf >> /etc/sysctl.conf'
sudo cp xsession.desktop /usr/share/xsessions/xsession.desktop
sudo cp random.rules /etc/udev/rules.d/71-disable-random-entropy-estimation.rules
sudo cp ./pm/* /etc/pm/sleep.d/

Install mutt

git clone https://github.com/neomutt/neomutt
cd neomutt
./configure --enable-notmuch --lmdb --ssl --prefix=/opt && \
   make && \
   sudo make install install-doc

Install docker

wget -qO- https://get.docker.com/ | sh
sudo usermod frew -aG docker
sudo systemctl enable docker
sudo cp /lib/systemd/system/docker.service /etc/systemd/system

Then add -s overlay2 --live-restore to the command in the copied file

sudo systemd daemon-reload
sudo systemctl restart docker

Install Dropbox

Install

Configure Postfix

Create /etc/postfix/sasl_passwd:

... and /etc/postfix/transport:

[email protected]        smtp:[smtp.gmail.com]:587
[email protected] smtp:[smtp.gmail.com]:587

... and /etc/postfix/hosts:

@frew.co               [smtp.pobox.com]:587
@afoolishmanifesto.com [smtp.pobox.com]:587

And finally, change the config:

sudo sh -c 'cat ./main.cf >> /etc/postfix/main.cf'
sudo postmap /etc/postfix/{sasl_passwd,transport,hosts}
sudo chmod 400 /etc/postfix/{sasl_passwd,transport,hosts}{.db,}
sudo service postfix restart

Authorize Computer

Get app specific password from gmail, put in .netrc:

machine imap.gmail.com
login [email protected]
password $foo

machine smtp.gmail.com
login [email protected]
password $foo

machine google.com
login [email protected]
password $foo

And .git-smtp-password:

[sendemail]
   smtpPass = $foo

Put pause credentials in .pause:

user FREW
password DERP

Ensure permissions are correct:

chmod 600 ~/.netrc ~/.pause

Also set up Firefox Sync

Add / Replace SSH Keys

  • Generate Ed25519 Key: ssh-keygen -t ed25519 -o -a 100
  • Generate RSA Key: ssh-keygen -t rsa -b 4096 -o -a 100
  • Put Ed25519 Key on github
  • Put RSA Key on:
    • dbsrgits
    • gitmo
    • catagits
    • p5sagit
    • ZR
    • agm

services

sv-run-w.pl
sv-run-offlineimap

Misc Snippets

Record all traffic from a given host/port:

tcpdump -s 65535 -w tcp.dump host 10.6.6.1 and port 10114

Record all traffic involving a given host:

tcpdump -s 65535 -w tcp.dump src 10.6.6.1 or dst 10.6.6.1

Bind localhost:1234 to server.example.com:6667

ssh -L 1234:localhost:6667 server.example.com

dotfiles's People

Contributors

ferki avatar merrilymeredith avatar mfontani avatar wesq3 avatar

Watchers

 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.