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 | |
new_window_id=`xprop -root | grep '_NET_ACTIVE_WINDOW(WINDOW)'| cut -d '#' -f 2` | |
old_window_id="" | |
close_wait=0 | |
while [ $close_wait -le 10 ] | |
do | |
if [ "$old_window_id" = "$new_window_id" ] | |
then | |
close_wait=$(($close_wait+1)) | |
else |
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
<? | |
/* FIND THESE LINES AND CHANGE THEM IN YOUR CONFIG FILE | |
/* Authentication type */ | |
$cfg['Servers'][$i]['auth_type'] = 'cookie'; | |
/* Server parameters */ |
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
DISKPART | |
LIST DISK | |
SELECT DISK 1 | |
CLEAN | |
CREATE PARTITION PRIMARY | |
SELECT PARTITION 1 | |
ACTIVE | |
FORMAT FS=NTFS | |
ASSIGN | |
EXIT |
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
[Desktop Entry] | |
Name=My App | |
GenericName=My App | |
Comment=No comment | |
Exec=/usr/bin/myapp %U | |
Terminal=false | |
Type=Application | |
StartupNotify=true | |
MimeType=image/jpeg | |
Icon=myapp |
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
function print_element { | |
while [ $cols -ge 1 ] | |
do | |
printf "$element" | |
cols=`expr $cols - 1` | |
done | |
} | |
function print_sentence { | |
cols=`tput cols` | |
size=`expr "$sentence" : '.*'` |
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 | |
echo -n "Enter Application name:" | |
read Name | |
if [ "$Name" = "" ] | |
then | |
echo "ERROR: Application name can't be empty" | |
exit 1 | |
fi | |
echo -n "Comment about Application:" | |
read Comment |
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 | |
# log is 1:2 | |
echo -n "how many episodes u wanna see: " | |
read count | |
while [ $count -ne 0 ] | |
do | |
log=`cat log` | |
expr "$log" : "\(.*\):.*" | |
series=`expr "$log" : "\(.*\):.*"` | |
episode=`expr "$log" : ".*:\(.*\)"` |
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
#include<stdio.h> | |
void bad_func(){ | |
printf("Hacked!!!\n"); | |
} | |
int main(int argc,char** argv){ | |
char buffer[100]; | |
strcpy(buffer,argv[1]); | |
return 0; | |
} |
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 | |
usage() | |
{ | |
cat <<EOF | |
Usage $0: | |
crypt-editor -help | |
crypt-editor [filename] | |
crypt-editor [editor] [filename] | |
crypt-editor [-k key] [filename] | |
crypt-editor [-k key] [editor] [filename] |
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 | |
while getopts "de:" OPTION | |
do | |
case $OPTION in | |
d) | |
# mailexe -d [original] [duplicate] | |
#decoding | |
base64 $2 > original | |
base64 $3 > duplicate |
OlderNewer