Skip to content

guemidiborhane/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Borhaneddine's dotfiles

Installation

Using wget:

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

or using curl:

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

Enable gnome keyring

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

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.

git filter-branch --commit-filter 'git commit-tree -S "$@";' <COMMIT_HASH>..HEAD

Which process is listening on specific port.

sudo netstat -nlp | grep :80

Unlock luks.

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

Kill all zombie processes

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

find vicious PHP files

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)

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

Useful Links