Skip to content

Instantly share code, notes, and snippets.

@rhoconlinux
rhoconlinux / plank-preferences-installer.sh
Last active June 6, 2016 15:53
plank preferences installer
#!/bin/bash
cd /tmp
rm plank-preferences.dockitem;
plank-preferences.sh;
rm p-p-dockitem-c.sh;
rm $HOME/.local/share/applications/plank-preferences.desktop;
rm $HOME/.config/plank/dock1/launchers/plank-preferences.dockitem
clear
#launcher, desktop file
wget http://ur1.ca/k5kkz -O plank-preferences.desktop
@rhoconlinux
rhoconlinux / Icon-Set-Forge-Installer.sh
Created April 15, 2015 23:40
Icon-Set-Forge installer
#!/bin/bash
sudo rm -Rf /tmp/Icon-Set-Forge-master ;
sudo rm -Rf /usr/share/IconSetForge ;
sudo rm /usr/bin/iconsetforge ;
sudo apt-get install qmake-qt4 qt4-designer unzip -y
cd /tmp
wget https://github.com/mank319/Icon-Set-Forge/archive/master.zip
unzip master.zip
cd Icon-Set-Forge-master/Code
qmake-qt4
#!/bin/bash
# Author: rhoconlinux, http://rhoconlinux.wordpress.com
# ------
# Credit for the spinner > Tasos Latsas https://github.com/tlatsas/bash-spinner
##########################spinner funcion starts
@rhoconlinux
rhoconlinux / gnome-shell-restarter-deamon.sh
Created May 29, 2015 16:12
Deamon para reiniciar gnome-shell
#!/bin/bash
while true ;do
if [ -f .delete-to-reload-gnome-shell ] ;then
sleep 1;
else
touch ~/.delete-to-reload-gnome-shell;
gnome-shell --replace ;
fi
done;
@rhoconlinux
rhoconlinux / gnome-shell-restart.sh
Created May 29, 2015 16:15
gnome-shell restarter
#!/bin/bash
cd
rm .delete-to-reload-gnome-shell
@rhoconlinux
rhoconlinux / gnome-restarter-deamon.desktop
Created May 30, 2015 16:29
gnome-restarter-deamon en autorun
[Desktop Entry]
Name=gnome-restarter-deamon
GenericName=gnome-restarter-deamon
Comment=gnome-restarter-deamon
Icon=gnome-terminal
Exec=gnome-restarter-deamon
Terminal=false
Type=Application
Categories=System
@rhoconlinux
rhoconlinux / spotify-repo-install.sh
Last active October 22, 2015 12:40
spotify-repo-install
sudo sh -c 'echo "deb http://repository.spotify.com/ stable non-free" > /etc/apt/sources.list.d/spotify.list' && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 && sudo apt-get update && sudo apt-get install spotify-client -y --force-yes ; cd
@rhoconlinux
rhoconlinux / spotify-adkillermod.sh
Created June 25, 2015 14:25
spotify adkiller ninja install
sudo apt-get install x11-utils pulseaudio-utils libnotify-bin vlc unzip gcc -y && cd && rm -Rf ~/bin ; rm -Rf ~/.installer-spotify-ad-killer ; rm -R ~/.installer-spotify-ad-killer; rm -R ~/.installer-sopotify-adkiller-git; cd ~/.local/share/applications/ && rm Spo* -f ; mkdir -p ~/.installer-spotify-ad-killer && cd ~/.installer-spotify-ad-killer && wget https://github.com/SecUpwN/Spotify-AdKiller/archive/master.zip && unzip master.zip && cd Spotify-AdKiller-master && sed -i 's/INSTALLDIR="$HOME\/bin"/INSTALLDIR="\/usr\/local\/bin"/g' install.sh && cat install.sh | grep usr/ && sudo bash install.sh && mkdir -p $HOME/.config/Spotify-AdKiller/ && sudo chown -R $USER:$USER ~/.config/Spotify-AdKiller/ && cp -a ~/.installer-spotify-ad-killer/Spotify-AdKiller-master/Spotify-AdKiller.cfg $HOME/.config/Spotify-AdKiller/ && cat $HOME/.config/Spotify-AdKiller/Spotify-AdKiller.cfg | grep CUSTOM_MODE && sed -i 's/CUSTOM_MODE=""/CUSTOM_MODE="simple"/g' $HOME/.config/Spotify-AdKiller/Spotify-AdKiller.cfg ; echo "changed to
@rhoconlinux
rhoconlinux / ninja-apt.sh
Created June 28, 2015 17:08
ninja-apt para el blog
#!/bin/bash
# Author: rhoconlinux, http://rhoconlinux.wordpress.com
# ------
# Credit for the spinner > Tasos Latsas https://github.com/tlatsas/bash-spinner
##########################spinner funcion starts
@rhoconlinux
rhoconlinux / fix-swap.sh
Created July 7, 2015 10:52
swappiness fix
echo '# Decrease swap usage to a more reasonable level' | sudo tee --append /etc/sysctl.conf > /dev/null
echo 'vm.swappiness=5' | sudo tee --append /etc/sysctl.conf > /dev/null
echo '# Improve cache management' | sudo tee --append /etc/sysctl.conf > /dev/null
echo 'vm.vfs_cache_pressure=40' | sudo tee --append /etc/sysctl.conf > /dev/null
cat /etc/sysctl.conf