Skip to content

Instantly share code, notes, and snippets.

@rhoconlinux
rhoconlinux / mate-services-killer-etc-modprobe.d
Last active March 7, 2016 17:20
mate-services-killer-AHORRA MEMORIA MATE - INSTALLER
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.
# evbug is a debug tool that should be loaded explicitly
blacklist evbug
# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd
@rhoconlinux
rhoconlinux / remove-services-mate.sh
Last active March 7, 2016 17:20
mata services mate 1404
#!/bin/bash
sudo chmod a-x /usr/share/oneconf/oneconf-service
sudo chmod a-x /usr/share/oneconf/oneconf-query
sudo chmod a-x /usr/share/oneconf/oneconf-update
wget https://github.com/oz123/solarized-mate-terminal/archive/master.zip && unzip master.zip && rm master.zip
cd solarized-mate-terminal-master/
bash solarized-mate.sh light profile1
bash solarized-mate.sh light default
@rhoconlinux
rhoconlinux / mate-rc.local
Created March 5, 2015 15:30
rc.local@mate-desktop
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@rhoconlinux
rhoconlinux / ninja-update-2.sh
Last active August 29, 2015 14:16
ninja-update-2
#!/bin/bash
# Author: rhoconlinux, rhoconlinux.wordpress.com
# Credit for the spinner to Tasos Latsas https://github.com/tlatsas/bash-spinner
##########################spinner funcion starts
function _spinner() {
@rhoconlinux
rhoconlinux / dns-block.c
Last active March 7, 2016 17:23
dns-block.c para spotify
#define _GNU_SOURCE
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <string.h>
#include <dlfcn.h>
//#include <stdlib.h>
@rhoconlinux
rhoconlinux / lighttable.desktop
Last active August 29, 2015 14:10
lighttable.desktop
[Desktop Entry]
Version=1.0
Name=Light Table
GenericName=Text Editor
Exec=/opt/LightTable/LightTable
Terminal=false
Icon=light-table.png
Type=Application
Categories=GTK;Utility;TextEditor;Application;IDE;Development;
@rhoconlinux
rhoconlinux / hack-me-sublime.sh
Last active March 7, 2016 17:24
hack window show de sublime
#!/bin/bash
#getting sublime window
wmctrl -l -p | grep -e "- Sublime" > .hacking-sublime-pre.txt;
raw=$(cat .hacking-sublime-pre.txt)
#getting the sublime app code to identify simultaneous windows
echo $raw | sed 's/[^ ]* //' | sed 's/[^ ]* //' | sed 's/\s.*$//' > .hacking-sublime-apcode.txt;
apcode=$(cat .hacking-sublime-apcode.txt)
echo $apcode
@rhoconlinux
rhoconlinux / shortit.sh
Last active March 7, 2016 17:24
shortit
#!/bin/bash
curl -s --url http://ur1.ca/ -d longurl="$1" | sed -n -e '/Your ur1/!d;s/.*<a href="\(.*\)">.*$/\1/;p'
@rhoconlinux
rhoconlinux / color-picker.desktop
Last active March 7, 2016 17:26
color-picker.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[es_ES]=preferences-color
Name[es_ES]=color-picker
Exec=color-picker
Name=color-picker
Icon=preferences-color
@rhoconlinux
rhoconlinux / atraci-installer-v1-32bits.sh
Last active August 29, 2015 14:03
32 Bits Atraci Installer
#!/bin/bash
clear;
echo "Checkeando Instalaciones Previas e Instalando dependencias..."
rm -R $HOME/.installer-atraci/ ;
clear;
rm -R /tmp/.installer-atraci/ ;
clear;
echo "Eliminando instalaciones de Atraci en el sistema"
sudo rm /usr/share/applications/atraci.desktop;
sudo rm /usr/bin/atraci;