hiperion@teddy:~$ mysql -u hiperion -p Enter password: ERROR 1045 (28000): Access denied for user 'hiperion'@'localhost' (using password: YES)
This file contains hidden or 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
| void imprime_linha_eli (eli linha_elim,int num_linha){ | |
| int x=0; | |
| if (linha_elim != NULL){ | |
| printf("\n\n"); | |
| while (linha_elim != NULL){ | |
| x=x+1; | |
| if(x == num_linha){ | |
| for (x=0; x<COLUNA; x++) | |
| { | |
| if (linha_elim->coluna[x]!=' '){ |
This file contains hidden or 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
| from scapy.all import * | |
| capture = rdpcap(sys.argv[1]) | |
| for packet in capture: | |
| if packet.haslayer(UDP) and packet.haslayer(IP) and packet.haslayer(Raw): | |
| if packet.getlayer(Raw).load == sys.argv[2]: | |
| start = packet.time | |
| if packet.getlayer(Raw).load == sys.argv[3]: | |
| end = packet.time |
This file contains hidden or 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 / -type f -size +20000k -exec ls -lh {} \; 2> /dev/null | awk '{ print $NF ": " $5 }' | sort -nrk 2,2 |
This file contains hidden or 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
| sudo fs_usage -w -f filesys mdworker | egrep "open" |
This file contains hidden or 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
| sudo mdutil -a -i off | |
| sudo mdutil -a -i on |
This file contains hidden or 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
| while (true); do nc -vv -z -w3 <REMOTEIP> <REMOTEPORT> > /dev/null && echo -e "\x07"; sleep 1; done |
This file contains hidden or 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
| require 'rubygems' | |
| require 'nokogiri' | |
| ATTRIBUTES = ['accelx', 'accely', 'accelz', 'altitude', | |
| 'depth', 'heading', 'lat', 'long', 'pitch', | |
| 'pitchrate', 'roll', 'rollrate', 'yawrate'] | |
| f = File.open(ARGV[0]) | |
| doc = Nokogiri::XML(f) | |
| f.close |
This file contains hidden or 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 | |
| url="http://rez.urbanspoon.com/b/widget/2086?background=ebf3fd&border=bbd4f1&header=000&link=0144a7&locale=en&source=selfhost&text=000" | |
| hash=`cat /tmp/state_bird` | |
| `curl $url | md5sum | awk '{print $1}' > /tmp/state_bird` | |
| newhash=`cat /tmp/state_bird` | |
| if [[ "$hash" != "$newhash" ]]; then echo "Reservations page just changed: http://statebirdsf.com/reservations/ - $newhash" | mail -s Reservations [email protected]; fi |
This file contains hidden or 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
| require 'rubygems' | |
| require 'mechanize' | |
| FIRST_NAME = 'FIRST_NAME' | |
| LAST_NAME = 'LAST_NAME' | |
| PHONE = 'PHONE' | |
| EMAIL = '[email protected]' | |
| PARTY_SIZE = 2 | |
| SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
OlderNewer