An open API service indexing awesome lists of open source software.

https://github.com/guemidiborhane/dotfiles

This hereby repository is the proof I have no idea what i'm doing, but i'm consistent
https://github.com/guemidiborhane/dotfiles

archlinux dotfiles dracula hyprland-config i3-config neovim nushell-config shell-scripts starship-config systemd tmux yadm

Last synced: 9 months ago
JSON representation

This hereby repository is the proof I have no idea what i'm doing, but i'm consistent

Awesome Lists containing this project

README

          

# Borhaneddine's dotfiles

## Installation

Using `wget`:

```bash
sh -c "$(wget -qO- https://guemidiborhane.github.io/build_home)"
```

or using `curl`:

```bash
sh -c "$(curl -fsSL https://guemidiborhane.github.io/build_home)"
```

### Enable gnome keyring

```bash
echo -ne "auth\toptional\tpam_gnome_keyring.so\nsession\toptional\tpam_gnome_keyring.so auto_start" | sudo tee -a /etc/pam.d/login
systemctl --user enable gcr-ssh-agent.socket
```

## Commands cheatsheet

### Fix teamviewer

```bash
echo -e '[Service]\nEnvironment=XDG_SESSION_TYPE=x11' | sudo tee -a /etc/systemd/system/getty@tty1.service.d/getty@tty1.service-drop-in.conf
```

### Sign previous commits.

```bash
git filter-branch --commit-filter 'git commit-tree -S "$@";' ..HEAD
```

### Which process is listening on specific port.

```bash
sudo netstat -nlp | grep :80
```

### Unlock luks.

```bash
echo -ne "SuperSecretPassphrase" > /lib/cryptsetup/passfifo
```

### Kill all zombie processes

```bash
ps -xaw -o state,ppid | grep Z | grep -v PID | awk '{ print $2 }' | xargs kill -9
```

### find vicious PHP files

```bash
find / -type f -regex '.*/*.php' | grep -P '/(?!autoload|settings|personal|mbstring|defaults|translit)([a-z0-9]{8}).php$' > suspicions.txt
```

### Rerun `bundle install` until it succeeds (useful in case of network issues)

```bash
sh -c 'while ! $(bundle check &> /dev/null); do bundle install --retry 10; sleep 1; done'
```

## Useful Links

- [FontAwesome Cheatsheet](https://fontawesome.bootstrapcheatsheets.com/)