Skip to content

Instantly share code, notes, and snippets.

@rhoconlinux
rhoconlinux / enable-hibernate.sh
Last active March 7, 2016 17:17
enable-hibernate.sh-INSTALLER
#!/bin/bash
cd /tmp/
wget https://gist.githubusercontent.com/rhoconlinux/4dabbc8ef0ae7926e823/raw/b7468c08d49d1d6cf0c535f1e25843d6ddfad9ff/com.ubuntu.desktop.pkla -O com.ubuntu.desktop.pkla
sudo mkdir -p /etc/polkit-1/localauthority/10-vendor.d/
mv com.ubuntu.desktop.pkla /etc/polkit-1/localauthority/10-vendor.d/
cd
clear
echo "Hibernate installed. Now logout & login to set it as active."
@rhoconlinux
rhoconlinux / com.ubuntu.desktop.pkla
Last active March 7, 2016 17:17
com.ubuntu.desktop.pkla para hibernate
[Enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
@rhoconlinux
rhoconlinux / spss.desktop
Last active March 7, 2016 17:18
spss.desktop
[Desktop Entry]
Name=SPSS
GenericName=SPSS
Comment=SPSS 21
Icon=spss
Exec=spss
Terminal=false
Type=Application
Categories=System
Name[es_ES]=SPSS
@rhoconlinux
rhoconlinux / spss-launcher.sh
Last active March 7, 2016 17:18
spss bin/trigger
#!/bin/bash
/opt/IBM/SPSS/Statistics/21/bin/stats -singleseat -nologo
@rhoconlinux
rhoconlinux / jdownloader.desktop
Created July 23, 2015 15:47
jdownloader 2 desktop launcher
[Desktop Entry]
Name=jdownloader
GenericName=jdownloader
Comment=Jdownloader 2
Icon=jdownloader
Exec=jdownloader
Terminal=false
Type=Application
Categories=System
Name[es_ES]=jdownloader
@rhoconlinux
rhoconlinux / get-all-gists
Last active March 7, 2016 17:19
bajar todos los gists
https://api.github.com/users/rhoconlinux/gists
@rhoconlinux
rhoconlinux / genymotion.desktop
Last active August 29, 2015 14:25
genymotion desktop launcher
[Desktop Entry]
Name=genymotion
GenericName=Genymotion
Comment=Genymotion Android VM
Icon=genymotion
Exec=genymotion
Terminal=false
Type=Application
Categories=System
Name[es_ES]=genymotion
@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
@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 / 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