This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext | |
"dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# USAGE: udev-unmounter.sh MOUNTPT | |
# MOUNTPT is a mountpoint we want to unmount and delete. | |
MOUNTPT="$1" | |
if [ -z "$MOUNTPT" ]; then | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# USAGE: usb-automounter.sh DEVICE | |
# DEVICE is the actual device node at /dev/DEVICE | |
/usr/local/sbin/udev-auto-mount.sh ${1} & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: rtorrent | |
# Required-Start: $local_fs $remote_fs $network $syslog $netdaemons | |
# Required-Stop: $local_fs $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: rtorrent script using screen(1) | |
# Description: rtorrent script using screen(1) to keep torrents working without the user logging in | |
### END INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an example resource file for rTorrent. Copy to | |
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to | |
# uncomment the options you wish to enable. | |
# Sort the main view by name | |
view.sort_current = main,less=d.get_name= | |
view.sort_new = main,less=d.get_name= | |
view.sort = main | |
# Maximum and minimum number of peers to connect to per torrent. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo $@ | |
text="" | |
for i in $@ | |
do | |
text+=$i | |
text+="%20" | |
done | |
curl -k https://smsapi.free-mobile.fr/sendmsg\?user=userid\&pass=userpasswd\&msg=$text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autodetach on # autodetach on disconnect/close | |
startup_message off # disable intro msg | |
defscrollback 8000 # default scrollback buffer | |
vbell off # enable visual bell | |
#escape `` # replace C- escape sequence | |
#escape `e # double-tap backtick toggles screen windows | |
# reset escape key to the default | |
escape ^Aa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#append history file | |
shopt -s histappend | |
#check windows size | |
shopt -s checkwinsize | |
alias ls='ls' | |
alias ll='ls -salh' | |
alias java32='/opt/bin32-jre/jre/bin/java' | |
alias yaourtfull='yaourt -Syu --devel --aur' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# scan the network for device | |
# usage: sudo network_scan.sh | |
arp -a | grep 192 | grep -v 255 | perl -pe 's/\? \((.*)\) at ([^\s]*) on .*/\1 \2/g' | \ | |
awk '{print $1; print $2; system("nmap -O "$1" | grep Running")}' |
NewerOlder