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
# Debian apt(8) completion -*- shell-script -*- | |
_apt() | |
{ | |
local cur prev words cword | |
_init_completion || return | |
local special i | |
for (( i=0; i < ${#words[@]}-1; i++ )); do | |
if [[ ${words[i]} == @(list|search|show|update|install|remove|upgrade|full-upgrade|edit-sources|dist-upgrade|purge) ]]; then |
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 | |
# Remember to run this script using the command "source ./filename.sh" | |
# Search these processes for the session variable | |
# (they are run as the current user and have the DBUS session variable set) | |
compatiblePrograms=( nautilus kdeinit kded4 pulseaudio trackerd ) | |
# Attempt to get a program pid | |
for index in ${compatiblePrograms[@]}; do |
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 | |
cat /opt/BitDefender-scanner/var/lib/scan/versions.dat.* | \ | |
awk '/bdcore.so.linux/ {print $3}' | \ | |
while read bdcore_so; do | |
touch /opt/BitDefender-scanner/var/lib/scan/$bdcore_so; | |
bdscan --update; | |
mv /opt/BitDefender-scanner/var/lib/scan/bdcore.so \ | |
/opt/BitDefender-scanner/var/lib/scan/bdcore.so.old; | |
rm /opt/BitDefender-scanner/var/lib/scan/bdcore.so; | |
ln -s /opt/BitDefender-scanner/var/lib/scan/$bdcore_so \ |
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 | |
DRIVER=`find /usr/lib -name fglrx_drv.so` | |
echo "Come on AMD!" | |
for token in $DRIVER;do | |
echo "Removing AMD logo from "$token | |
for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do | |
sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER |
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 | |
cd / ; | |
chmod 777 apps ; chown root:root apps ; | |
chmod 755 bin ; chown root:root bin ; | |
chmod 755 boot ; chown root:root boot ; | |
chmod 755 data ; chown root:root data ; | |
chmod 755 dev ; chown root:root dev ; | |
chmod 755 etc ; chown root:root etc ; | |
chmod 755 frontview ; chown root:root frontview ; |
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
# Plantronics headsets presents itself as an usb sound card, a mouse and a keyboard. | |
# This gives lockups of the mouse or constant mouse click actions. | |
# | |
# To make X11 ignore the keyboard and mouse features, download this xorg.conf file to | |
# /usr/share/X11/xorg.conf.d/50-plantronics.conf | |
# | |
# | |
Section "InputClass" | |
Identifier "Plantronics" | |
MatchVendor "Plantronics" |
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
#! /usr/bin/python | |
print "\n*********************************************************************" | |
print "Cisco IOU License Generator - Kal 2011, python port of 2006 C version" | |
import os | |
import socket | |
import hashlib | |
import struct | |
# get the host id and host name to calculate the hostkey | |
hostid=os.popen("hostid").read().strip() | |
hostname = socket.gethostname() |