Just a bunch of scripts.
-
git clone git@github.com:sylvainmetayer/bin.git ~/.bashrc.d
-
Update your
~/.bashrc
for file in $HOME/.bashrc.d/*.sh
do
source $file
done
- reload your terminal (
exit
orsource ~/.bashrc
)
Will delete old kernel on Fedora by keeping only the 2 most recent one.
- Require
yum-utils
Configure Network Access on VirtualBox.
- Require configuration inside the script to match your needs.
Return battery informations.
Return the content of the clipboard.
- Require
xclip
Use Gitignore to generate a .gitignore. Output to stdout.
Kill a process with a partial name.
Set the content of the clipboard. Mean to be use with a pipe.
Example : echo "test" | setclip
- Require
xclip
Show the available hostname of your ssh configuration.
Toggle the touchpad.
- Gnome only
Return the state of the touchpad (enabled/disabled)
- Gnome only
Disable the firewall. Set default rules to ACCEPT.
- require
iptables
Enable the firewall and set custom rules.
/!\ Test it before use, or you can be locked out of your own server !
- require
iptables
Show the 10 last access for every nginx site configured.
- require that your log files are named with the following convention
name.access.log
Show the last 10 errors for every nginx site configured.
- require that your log files are named with the following convention
name.error.log
Add a SSH key which can be used as deploy key with GitHub. It also add an entry in ssh's user config so the ssh key can be used without conflict with others keys.
-
Limit alt tab to current workspace
gsettings set org.gnome.shell.app-switcher current-workspace-only true
-
Do not group application when alt tab https://superuser.com/a/860001