Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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 / 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-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
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@rhoconlinux
rhoconlinux / plank-preferences.desktop
Last active August 29, 2015 14:18
plank-preferences desktop launcher
[Desktop Entry]
Name=plank-preferences
GenericName=Plank Preferences
Comment=Plank Preferences
Icon=plank
Exec=plank --preferences
Terminal=false
Type=Application
Categories=System
Name[es_ES]=plank-preferences
@rhoconlinux
rhoconlinux / plank-preferences-dockitem-creator.sh
Created April 12, 2015 00:36
plank preferences on-dock icon
#!/bin/bash
echo "Creating plank themer dockitem..."
USERNAME=$(whoami)
ABS_ADDR=/home/$USERNAME/.local/share/applications/plank-preferences.desktop
cd $HOME/.config/plank/dock1/
touch $HOME/.config/plank/dock1/launchers/plank-preferences.dockitem
echo \[PlankItemsDockItemPreferences\] >> $HOME/.config/plank/dock1/launchers/plank-preferences.dockitem
echo Launcher=$ABS_ADDR >> $HOME/.config/plank/dock1/launchers/plank-preferences.dockitem